query-9f4efd14af9231563ab3bcdd4a37e10e
Map of birthplaces of people who have been elected to the Internet Hall of Fame
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT ?person ?personLabel ?birthplaceLabel ?coord ?lat ?lon ?image WHERE {
?person wdt:P166 wd:Q6055547.
OPTIONAL {?person wdt:P18 ?image}.
?person wdt:P19 ?birthplace
OPTIONAL {?birthplace wdt:P625 ?coord. }
OPTIONAL {
?birthplace p:P625 ?statement.
?statement psv:P625 ?node.
?node wikibase:geoLatitude ?lat.
?node wikibase:geoLongitude ?lon.
}
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("?birthplace")
v4("?coord"):::projected
v2("?image"):::projected
v7("?lat"):::projected
v8("?lon"):::projected
v6("?node")
v1("?person"):::projected
v5("?statement")
c2(["wd:Q6055547"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P166"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P18".-> v2
end
v1 --"p:direct/P19"--> v3
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P625".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:P625".-> v5
v5 --"p:statement/value/P625"--> v6
v6 --"wikibase:geoLatitude"--> v7
v6 --"wikibase:geoLongitude"--> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end