query-4145e1d25f3041d72439ababa9f9b323
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?OpenStreetMap_Relations_ID WHERE {
?item wdt:P31 wd:Q3624078.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
OPTIONAL { ?item wdt:P402 ?OpenStreetMap_Relations_ID. }
MINUS { ?item wdt:P31 wd:Q3024240 } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?OpenStreetMap_Relations_ID"):::projected
v1("?item"):::projected
c6(["de"]):::literal
c8(["wd:Q3024240"]):::iri
c2(["wd:Q3624078"]):::iri
c4(["bd:serviceParam"]):::iri
v1 --"wdt:P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P402".-> v2
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c8
end