Project:SPARQL/examples: Difference between revisions

(formatting)
Line 15: Line 15:
==Puno Quechua Lexical entries ==
==Puno Quechua Lexical entries ==
<sparql tryit="1">
<sparql tryit="1">
#Puno Quechua Lexical entries
#This is a list of Puno Quechua Lexical entries  
#This is a list of Puno Quechua Lexical entries  
PREFIX qwb: <https://qichwa.wikibase.cloud/entity/>
PREFIX qwb: <https://qichwa.wikibase.cloud/entity/>
Line 24: Line 25:
PREFIX qno: <https://qichwa.wikibase.cloud/prop/novalue/>
PREFIX qno: <https://qichwa.wikibase.cloud/prop/novalue/>


SELECT ?entry ?lemma ?language ?lexical_category ?lex_cat_wikidata ?described_in
SELECT ?entry ?lemma ?language ?lex_cat_wikidata ?des_by_source_P1343
?form_representation ?spelling_variant  
?form_representation ?spelling_variant  
?sense_gloss_de ?sense_gloss_en ?sense_gloss_es ?sense_gloss_it
?sense_gloss_de ?sense_gloss_en ?sense_gloss_es ?sense_gloss_it
Line 31: Line 32:
BIND("qu-x-Q7260479" AS ?spelling_variant) #Assigning the language-code for the form
BIND("qu-x-Q7260479" AS ?spelling_variant) #Assigning the language-code for the form
BIND("Q24905" AS ?lex_cat_wikidata) #Assignning Q24905 = Verb Wikidata as the lexical category
BIND("Q24905" AS ?lex_cat_wikidata) #Assignning Q24905 = Verb Wikidata as the lexical category
BIND("Q125537856" AS ?des_by_source_P1343) #Assigning Q125537856 = Runasimi Vocabulary as the source
# Wikidata property: described by source = P1343
?entry a ontolex:LexicalEntry;  
?entry a ontolex:LexicalEntry;  
       wikibase:lemma ?lemma;
       wikibase:lemma ?lemma;
       wikibase:lexicalCategory qwb:Q99 ; #Category Q99 = V.tr Qichwabase
       wikibase:lexicalCategory qwb:Q99 ; #Category Q99 = V.tr Qichwabase
       wikibase:lexicalCategory [rdfs:label ?lexical_category] ;      
       wikibase:lexicalCategory [rdfs:label ?lexical_category] ;    
       qp:P16 [qps:P16 ?form_representation;
       qp:P16 [qps:P16 ?form_representation;
               qpq:P17 qwb:Q116; #Q116 = Cusco-Collao (aiu) Qichwabase
               qpq:P17 qwb:Q116; #Q116 = Cusco-Collao (aiu) Qichwabase
Bureaucrats, emailconfirmed, Administrators
2,426

edits