query-0d2b1c6f216c60697adea2c66db6ae46
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 DISTINCT ?Ort ?OrtLabel ?GOV ?regiowikiAT WHERE {
?Ort (wdt:P131+) wd:Q42497;
(wdt:P31/(wdt:P279*)) wd:Q486972;
wdt:P2503 ?GOV.
OPTIONAL { ?Ort wdt:P6228 ?regiowikiAT }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?GOV"):::projected
v1("?Ort"):::projected
v3("?regiowikiAT"):::projected
a1((" "))
c5(["wd:Q486972"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c9(["bd:serviceParam"]):::iri
c2(["wd:Q42497"]):::iri
v1 --"wdt:P131"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v1 --"wdt:P2503"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P6228".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end