query-0f6f7522d315388b6764e4377e790fbb
KIRU-, KDRS- und KIVBF-Verbandsmitglieder als Karte
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#>
#defaultView:Map
# KDRS-KIRU-KIVBF-Verbandsmitglieder
SELECT ?item ?itemLabel ?ags ?herald ?coords ?population ?layer
WHERE
{
{?item wdt:P463 wd:Q1780330;
OPTIONAL { ?item wdt:P439 ?ags.}.
OPTIONAL { ?item wdt:P94 ?herald.}.
OPTIONAL { ?item wdt:P625 ?coords.}.
OPTIONAL { ?item wdt:P1082 ?population.}.
bind ("KIRU" as ?layer)}
union
{?item wdt:P463 wd:Q28936918;
OPTIONAL { ?item wdt:P439 ?ags.}.
OPTIONAL { ?item wdt:P94 ?herald.}.
OPTIONAL { ?item wdt:P625 ?coords.}.
OPTIONAL { ?item wdt:P1082 ?population.}.
bind ("KDRS" as ?layer)}
union
{?item wdt:P463 wd:Q1780328;
OPTIONAL { ?item wdt:P439 ?ags.}.
OPTIONAL { ?item wdt:P94 ?herald.}.
OPTIONAL { ?item wdt:P625 ?coords.}.
OPTIONAL { ?item wdt:P1082 ?population.}.
bind ("KIVBF" as ?layer)}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?ags"):::projected
v4("?coords"):::projected
v3("?herald"):::projected
v1("?item"):::projected
v7("?layer"):::projected
v5("?population"):::projected
c12(["de"]):::literal
c10(["bd:serviceParam"]):::iri
c7(["wd:Q28936918"]):::iri
c2(["wd:Q1780330"]):::iri
c8(["wd:Q1780328"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P463"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P439".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P94".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1082".-> v5
end
bind0[/"'KIVBF'"/]
bind0 --as--o v7
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P463"--> c7
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P439".-> v2
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P94".-> v3
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1082".-> v5
end
bind1[/"'KDRS'"/]
bind1 --as--o v7
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P463"--> c2
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P439".-> v2
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P94".-> v3
end
subgraph optional10["(optional)"]
style optional10 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end
subgraph optional11["(optional)"]
style optional11 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1082".-> v5
end
bind2[/"'KIRU'"/]
bind2 --as--o v7
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end