query-eb9a8281251ba1b7863f6be390e68441
only return senses for certain languages. I'm doing this fairly stupid right now: 'en', 'en-GB', 'eo', 'ja', 'nl', 'ru', 'tlh' pointing to a specific entity and then filters for languages that a user has in their babel. in my case (P5137)item for this sense My application aquires all senses that have
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT DISTINCT ?sense WHERE {
?lexeme rdf:type ontolex:LexicalEntry;
ontolex:sense ?sense;
dct:language ?language;
wikibase:lemma ?lemma.
?sense wdt:P5137 wd:Q42804.
?language wdt:P218 ?lcode.
FILTER (CONTAINS("en|en-GB|eo|ja|nl|ru|tlh", ?lcode))
}
ORDER BY (LCASE(?language))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?language")
v2("?lcode")
v5("?lemma")
v3("?lexeme")
v4("?sense"):::projected
c8(["wd:Q42804"]):::iri
c3(["ontolex:LexicalEntry"]):::iri
f0[["contains('en|en-GB|eo|ja|nl|ru|tlh',?lcode)"]]
f0 --> v2
v3 --"a"--> c3
v3 --"ontolex:sense"--> v4
v3 --"dct:language"--> v1
v3 --"wikibase:lemma"--> v5
v4 --"wdt:P5137"--> c8
v1 --"wdt:P218"--> v2