query-37c66c61cb2558f35a25a004a13410c0
Map of voyages
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Map of places where the person have been
# defaultView:Timeline
#defaultView:Map
SELECT ?place ?placeLabel ?time ?start ?end ?coor WHERE {
wd:Q312499 p:P551 [ps:P551 ?place]
OPTIONAL { wd:Q312499 p:P551 [ps:P551 ?place; pq:P585 ?time] }
OPTIONAL { wd:Q312499 p:P551 [ps:P551 ?place; pq:P580 ?start] }
OPTIONAL { wd:Q312499 p:P551 [ps:P551 ?place; pq:P582 ?end] }
?place wdt:P625 ?coor.
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;
v5("?coor"):::projected
v4("?end"):::projected
v1("?place"):::projected
v3("?start"):::projected
v2("?time"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c9(["bd:serviceParam"]):::iri
c2(["wd:Q312499"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"p:statement/P551"--> v1
c2 --"p:P551"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:statement/P551".-> v1
a2 --"p:qualifier/P585"--> v2
c2 --"p:P551"--> a2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:statement/P551".-> v1
a3 --"p:qualifier/P580"--> v3
c2 --"p:P551"--> a3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
a4 -."p:statement/P551".-> v1
a4 --"p:qualifier/P582"--> v4
c2 --"p:P551"--> a4
end
v1 --"p:direct/P625"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end