Project:SPARQL/examples: Difference between revisions

Jump to navigation Jump to search
 
Line 26: Line 26:


SELECT ?entry ?lemma ?language ?lex_cat_wikidata ?des_by_source_P1343  
SELECT ?entry ?lemma ?language ?lex_cat_wikidata ?des_by_source_P1343  
?form_representation ?spelling_variant
?form1_representation ?form1_spelling_variant
?sense1_gloss_de ?sense1_gloss_en ?sense1_gloss_es ?sense1_gloss_it
?sense1_gloss_de ?sense1_gloss_en ?sense1_gloss_es ?sense1_gloss_it
WHERE {
WHERE {
BIND("Q5218" AS ?language) #assigning Q5218 = Quechua Wikidata as the language
BIND("Q5218" AS ?language) #assigning Q5218 = Quechua Wikidata as the language
BIND("qu-x-Q7260479" AS ?spelling_variant) #Assigning the language-code for the form
BIND(?form_representation AS ?form1_representation) #assigning form_representation of puno quechua to form1_representation
BIND("qu-x-Q7260479" AS ?form1_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
BIND("Q125537856" AS ?des_by_source_P1343) #Assigning Q125537856 = Runasimi Vocabulary as the source
# Wikidata property: described by source = P1343
# Wikidata property: described by source = P1343
?entry a ontolex:LexicalEntry;  
?entry a ontolex:LexicalEntry;  
       wikibase:lemma ?lemma;
       wikibase:lemma ?lemma;
Line 41: Line 43:
               qpq:P17 qwb:Q116; #Q116 = Cusco-Collao (aiu) Qichwabase
               qpq:P17 qwb:Q116; #Q116 = Cusco-Collao (aiu) Qichwabase
             ].  
             ].  
OPTIONAL {
  ?entry ontolex:lexicalForm ?form1 .
  ?form1 ontolex:representation ?wform1;
        wikibase:grammaticalFeature [rdfs:label ?wf1_gram_feature_label] .
        FILTER(LANG(?featureLabel)="es")
}
OPTIONAL {
OPTIONAL {
   ?entry ontolex:sense ?sense1_de .
   ?entry ontolex:sense ?sense1_de .
Bureaucrats, emailconfirmed, Administrators
2,427

edits

Navigation menu