query-15d98b83dfe0746336552098cc5107d9
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#>
#defaultView:Map{"hide": ["?coord"]}
SELECT DISTINCT ?subj ?subjLabel ?place ?placeLabel ?layer ?coord
# re-use results
WHERE {
{
{
SELECT DISTINCT ?subj WHERE {
?subj ((wdt:P19|wdt:P551|wdt:P20|wdt:P1321|wdt:P937)/(wdt:P131*)) wd:Q11943.
}
} ?subj wdt:P19 ?place.
?place wdt:P625 ?coord.
BIND("Geburtsort" AS ?layer)
} UNION {
{
SELECT DISTINCT ?subj WHERE {
?subj ((wdt:P19|wdt:P551|wdt:P20|wdt:P1321|wdt:P937)/(wdt:P131*)) wd:Q11943.
}
} ?subj wdt:P20 ?place.
?place wdt:P625 ?coord.
BIND("Sterbeort" AS ?layer)
} UNION {
{
SELECT DISTINCT ?subj WHERE {
?subj ((wdt:P19|wdt:P551|wdt:P20|wdt:P1321|wdt:P937)/(wdt:P131*)) wd:Q11943.
}
} ?subj wdt:P551 ?place.
?place wdt:P625 ?coord.
BIND("Wohnsitz" AS ?layer)
} UNION {
{
SELECT DISTINCT ?subj WHERE {
?subj ((wdt:P19|wdt:P551|wdt:P20|wdt:P1321|wdt:P937)/(wdt:P131*)) wd:Q11943.
}
} ?subj wdt:P937 ?place.
?place wdt:P625 ?coord.
BIND("Wirkungsort" AS ?layer)
} UNION {
{
SELECT DISTINCT ?subj WHERE {
?subj ((wdt:P19|wdt:P551|wdt:P20|wdt:P1321|wdt:P937)/(wdt:P131*)) wd:Q11943.
}
} ?subj wdt:P1321 ?place.
?place wdt:P625 ?coord.
BIND("Bürgerort" AS ?layer)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v5("?layer"):::projected
v2("?place"):::projected
v1("?subj"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wd:Q11943"]):::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;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
subgraph union6[" Union "]
subgraph union6l[" "]
style union6l fill:#abf,stroke-dasharray: 3 3;
subgraph union7[" Union "]
subgraph union7l[" "]
style union7l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P937"--> a5
end
subgraph union7r[" "]
style union7r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1321"--> a5
end
union7r <== or ==> union7l
end
end
subgraph union6r[" "]
style union6r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> a5
end
union6r <== or ==> union6l
end
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P551"--> a5
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> a5
end
union4r <== or ==> union4l
end
a5 --"wdt:P131"--> c7
v1 --"wdt:P1321"--> v2
v2 --"wdt:P625"--> v3
bind0[/"'Bürgerort'"/]
bind0 --as--o v5
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
subgraph union8[" Union "]
subgraph union8l[" "]
style union8l fill:#abf,stroke-dasharray: 3 3;
subgraph union9[" Union "]
subgraph union9l[" "]
style union9l fill:#abf,stroke-dasharray: 3 3;
subgraph union10[" Union "]
subgraph union10l[" "]
style union10l fill:#abf,stroke-dasharray: 3 3;
subgraph union11[" Union "]
subgraph union11l[" "]
style union11l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P937"--> a4
end
subgraph union11r[" "]
style union11r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1321"--> a4
end
union11r <== or ==> union11l
end
end
subgraph union10r[" "]
style union10r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> a4
end
union10r <== or ==> union10l
end
end
subgraph union9r[" "]
style union9r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P551"--> a4
end
union9r <== or ==> union9l
end
end
subgraph union8r[" "]
style union8r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> a4
end
union8r <== or ==> union8l
end
a4 --"wdt:P131"--> c7
v1 --"wdt:P937"--> v2
v2 --"wdt:P625"--> v3
bind1[/"'Wirkungsort'"/]
bind1 --as--o v5
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
subgraph union12[" Union "]
subgraph union12l[" "]
style union12l fill:#abf,stroke-dasharray: 3 3;
subgraph union13[" Union "]
subgraph union13l[" "]
style union13l fill:#abf,stroke-dasharray: 3 3;
subgraph union14[" Union "]
subgraph union14l[" "]
style union14l fill:#abf,stroke-dasharray: 3 3;
subgraph union15[" Union "]
subgraph union15l[" "]
style union15l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P937"--> a3
end
subgraph union15r[" "]
style union15r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1321"--> a3
end
union15r <== or ==> union15l
end
end
subgraph union14r[" "]
style union14r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> a3
end
union14r <== or ==> union14l
end
end
subgraph union13r[" "]
style union13r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P551"--> a3
end
union13r <== or ==> union13l
end
end
subgraph union12r[" "]
style union12r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> a3
end
union12r <== or ==> union12l
end
a3 --"wdt:P131"--> c7
v1 --"wdt:P551"--> v2
v2 --"wdt:P625"--> v3
bind2[/"'Wohnsitz'"/]
bind2 --as--o v5
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
subgraph union16[" Union "]
subgraph union16l[" "]
style union16l fill:#abf,stroke-dasharray: 3 3;
subgraph union17[" Union "]
subgraph union17l[" "]
style union17l fill:#abf,stroke-dasharray: 3 3;
subgraph union18[" Union "]
subgraph union18l[" "]
style union18l fill:#abf,stroke-dasharray: 3 3;
subgraph union19[" Union "]
subgraph union19l[" "]
style union19l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P937"--> a2
end
subgraph union19r[" "]
style union19r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1321"--> a2
end
union19r <== or ==> union19l
end
end
subgraph union18r[" "]
style union18r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> a2
end
union18r <== or ==> union18l
end
end
subgraph union17r[" "]
style union17r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P551"--> a2
end
union17r <== or ==> union17l
end
end
subgraph union16r[" "]
style union16r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> a2
end
union16r <== or ==> union16l
end
a2 --"wdt:P131"--> c7
v1 --"wdt:P20"--> v2
v2 --"wdt:P625"--> v3
bind3[/"'Sterbeort'"/]
bind3 --as--o v5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union20[" Union "]
subgraph union20l[" "]
style union20l fill:#abf,stroke-dasharray: 3 3;
subgraph union21[" Union "]
subgraph union21l[" "]
style union21l fill:#abf,stroke-dasharray: 3 3;
subgraph union22[" Union "]
subgraph union22l[" "]
style union22l fill:#abf,stroke-dasharray: 3 3;
subgraph union23[" Union "]
subgraph union23l[" "]
style union23l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P937"--> a1
end
subgraph union23r[" "]
style union23r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1321"--> a1
end
union23r <== or ==> union23l
end
end
subgraph union22r[" "]
style union22r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> a1
end
union22r <== or ==> union22l
end
end
subgraph union21r[" "]
style union21r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P551"--> a1
end
union21r <== or ==> union21l
end
end
subgraph union20r[" "]
style union20r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> a1
end
union20r <== or ==> union20l
end
a1 --"wdt:P131"--> c7
v1 --"wdt:P19"--> v2
v2 --"wdt:P625"--> v3
bind4[/"'Geburtsort'"/]
bind4 --as--o v5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end