query-111f5a8cd1b55a43d89eaf25cc13a36f
Die 294 Landkreise Deutschlands mit Kreisschlüssel und Kreisklasse
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 ?district ?key ?districtLabel ?classLabel WHERE {
?district wdt:P31 ?class .
?district wdt:P440 ?key .
?class wdt:P279 wd:Q106658 .
FILTER NOT EXISTS {?district wdt:P576 ?dissolved}
SERVICE wikibase:label{bd:serviceParam wikibase:language "de"}
}
ORDER BY ?key
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?class")
v3("?dissolved")
v2("?district"):::projected
v1("?key"):::projected
c5(["wd:Q106658"]):::iri
c9(["de"]):::literal
c7(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P576"--> e0v2
e0v2("?dissolved"):::projected
e0v1("?district"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P576"--> v3
v2 --"wdt:P31"--> v4
v2 --"wdt:P440"--> v1
v4 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end