query-b2876921902b0fe548393da289c1929f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel_en ?official_language ?itemLabel_ol WHERE {
?item wdt:P30 wd:Q15 ;
wdt:P37 ?officiallanguage ;
wdt:P31 wd:Q6256 .
?officiallanguage wdt:P424 ?langcode .
?item rdfs:label ?itemLabel_ol . FILTER(lang(?itemLabel_ol)=?langcode)
?item rdfs:label ?itemLabel_en . FILTER(lang(?itemLabel_en)='en')
?officiallanguage rdfs:label ?official_language . FILTER(lang(?official_language)='en')
}
ORDER BY ?itemLabel_en ?official_language
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?item"):::projected
v1("?itemLabel_en"):::projected
v3("?itemLabel_ol"):::projected
v4("?langcode")
v2("?official_language"):::projected
v6("?officiallanguage")
c6(["wd:Q6256"]):::iri
c3(["wd:Q15"]):::iri
f0[["?official_language = 'en'"]]
f0 --> v2
f1[["?itemLabel_en = 'en'"]]
f1 --> v1
f2[["?itemLabel_ol = ?langcode"]]
f2 --> v3
f2 --> v4
v5 --"wdt:P30"--> c3
v5 --"wdt:P37"--> v6
v5 --"wdt:P31"--> c6
v6 --"wdt:P424"--> v4
v5 --"rdfs:label"--> v3
v5 --"rdfs:label"--> v1
v6 --"rdfs:label"--> v2