query-cc1dc4481f7ea8bb22be327f369f184e
Missing descriptions in Dagbani available in English
SELECT ?item ?itemLabel ?itemLabel_dag WITH { SELECT ?item WHERE { ?item wdt:P106 wd:Q937857 . filter not exists { ?item schema:description ?itemDesc_dag . filter(lang(?itemDesc_dag)="dag") } } LIMIT 200 } AS %RESULTS { INCLUDE %RESULTS optional {?item rdfs:label ?itemLabel_dag . filter(lang(?itemLabel_dag)="dag")} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Missing descriptions in Dagbani available in English
SELECT ?item ?itemLabel ?itemLabel_dag {
{
SELECT ?item WHERE {
?item wdt:P106 wd:Q937857 .
filter not exists { ?item schema:description ?itemDesc_dag . filter(lang(?itemDesc_dag)="dag") }
} LIMIT 200
} optional {?item rdfs:label ?itemLabel_dag . filter(lang(?itemLabel_dag)="dag")}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?itemDesc_dag")
v1("?itemLabel_dag"):::projected
c7(["bd:serviceParam"]):::iri
c4(["wd:Q937857"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?itemDesc_dag = 'dag'"]]
e0f0 --> e0v1
e0v2 --"schema:description"--> e0v1
e0v2("?item"):::projected
e0v1("?itemDesc_dag"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?itemDesc_dag = 'dag'"]]
f1 --> v2
v3 --"schema:description"--> v2
v3 --"wdt:P106"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end