query-5fa513119bf8b255a1f2f8130b2291b2
title: label de missing SELECT DISTINCT ?item ?itemLabel ?itemDescription ?labelDe ?labelAt ?labelEn WHERE { ?item wdt:P17 wd:Q40 . ?item wdt:P625 []. # with coordinates minus { ?item rdfs:label ?labelDe . FILTER(LANG(?labelDe) = 'de') . } minus { ?item rdfs:label ?labelAt . FILTER(LANG(?labelAt) = 'de-at') . } OPTIONAL { ?item rdfs:label ?labelEn . FILTER(LANG(?labelEn) = 'en') . } }
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#>
#title: label de missing
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?labelDe ?labelAt ?labelEn WHERE {
?item wdt:P17 wd:Q40 .
?item wdt:P625 []. # with coordinates
minus {
?item rdfs:label ?labelDe .
FILTER(LANG(?labelDe) = 'de') .
}
minus {
?item rdfs:label ?labelAt .
FILTER(LANG(?labelAt) = 'de-at') .
}
OPTIONAL {
?item rdfs:label ?labelEn .
FILTER(LANG(?labelEn) = 'en') .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?labelAt"):::projected
v3("?labelDe"):::projected
v1("?labelEn"):::projected
a1((" "))
c3(["wd:Q40"]):::iri
v2 --"wdt:P17"--> c3
v2 --"wdt:P625"--> a1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?labelDe = 'de'"]]
f1 --> v3
v2 --"rdfs:label"--> v3
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
f3[["?labelAt = 'de-at'"]]
f3 --> v4
v2 --"rdfs:label"--> v4
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end