query-cf65d3e0aa96ee5b29c05f6da29f230c
All lemmas with senses in a language SELECT ?l ?lemma ?gloss WHERE { ?l a ontolex:LexicalEntry ; dct:language ?language ; wikibase:lemma ?lemma . ?language wdt:P218 'fa'. # ?l ontolex:sense ?sense . # Filter for senses # ?sense skos:definition ?gloss. # Filter for gloss # FILTER ( lang(?gloss) = "hu" ) # Filter for gloseses in "fa" } ORDER BY ?lemma
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
# All lemmas with senses in a language
SELECT ?l ?lemma ?gloss WHERE {
?l a ontolex:LexicalEntry ; dct:language ?language ;
wikibase:lemma ?lemma .
?language wdt:P218 'fa'.
# ?l ontolex:sense ?sense . # Filter for senses
# ?sense skos:definition ?gloss. # Filter for gloss
# FILTER ( lang(?gloss) = "hu" ) # Filter for gloseses in "fa"
}
ORDER BY ?lemma
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?l"):::projected
v3("?language")
v1("?lemma"):::projected
c2(["ontolex:LexicalEntry"]):::iri
c6(["fa"]):::literal
v2 --"a"--> c2
v2 --"dct:language"--> v3
v2 --"wikibase:lemma"--> v1
v3 --"wdt:P218"--> c6