query-7d4a7af4b9946757c4e38a2df8b92b73
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#>
#title:Luoghi di nascita e di morte degli allievi della Scuola Normale Superiore su mappa
#defaultView:Map{ "markercluster": true}
SELECT ?persona ?personaLabel ?luogo ?luogoLabel ?coord ?layer
WHERE {
{ ?persona wdt:P69 [ wdt:P361 wd:Q672416 ] .
OPTIONAL { ?persona wdt:P19 ?luogo . ?luogo wdt:P625 ?coord . bind("nascita" as ?layer)} }
UNION
{ ?persona wdt:P69 [ wdt:P361 wd:Q672416 ] .
OPTIONAL { ?persona wdt:P20 ?luogo . ?luogo wdt:P625 ?coord . bind("morte" as ?layer)} }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v5("?layer"):::projected
v2("?luogo"):::projected
v1("?persona"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c2(["wd:Q672416"]):::iri
c10(["it"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a2 --"wdt:P361"--> c2
v1 --"wdt:P69"--> a2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P20".-> v2
v2 --"wdt:P625"--> v3
bind0[/"'morte'"/]
bind0 --as--o v5
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P361"--> c2
v1 --"wdt:P69"--> a1
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P19".-> v2
v2 --"wdt:P625"--> v3
bind1[/"'nascita'"/]
bind1 --as--o v5
end
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end