query-1944bb783dddfb724ef6b1fa46a71992
Propertiesinstance of (P31)category combines topics (P971)is a list of (P360)applies to jurisdiction (P1001)located in the administrative territorial entity (P131)contains the administrative territorial entity (P150)heritage designation (P1435)
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 ?item ?itemLabel WHERE {
{
{
?item wdt:P31 wd:Q4167836.
?item wdt:P971 wd:Q11691318.
?item wdt:P971 ?territory.
} UNION {
?item wdt:P31 wd:Q13406463.
?item wdt:P360 wd:Q11691318 .
?item wdt:P1001 wd:Q1055 .
}
} UNION {
?adminTree (wdt:P131)* wd:Q1055 .
?adminTree (wdt:P150)* ?territory .
?item wdt:P131 ?territory
{
?item wdt:P1435 wd:Q11691318
} UNION {
?item wdt:P1435 wd:Q358
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
} ORDER BY ( ?itemLabel )
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?adminTree")
v2("?item"):::projected
v1("?itemLabel"):::projected
v3("?territory")
c16(["de"]):::literal
c5(["wd:Q13406463"]):::iri
c12(["wd:Q358"]):::iri
c14(["bd:serviceParam"]):::iri
c2(["wd:Q4167836"]):::iri
c8(["wd:Q1055"]):::iri
c4(["wd:Q11691318"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P131"--> c8
v4 --"wdt:P150"--> v3
v2 --"wdt:P131"--> v3
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1435"--> c12
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1435"--> c4
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c5
v2 --"wdt:P360"--> c4
v2 --"wdt:P1001"--> c8
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c2
v2 --"wdt:P971"--> c4
v2 --"wdt:P971"--> v3
end
union2r <== or ==> union2l
end
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end