query-24d170589a3ddeba81047afac17df914
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 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#>
#defaultView:Map
SELECT ?ville ?villeLabel ?coord ?directionLabel WHERE {
VALUES ?route { wd:Q1624187 } .
?route p:P609 ?s .
?s ps:P609 ?ville .
?ville wdt:P625 ?coord .
OPTIONAL { ?s pq:P560 ?direction }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coord"):::projected
v5("?direction")
v1("?route")
v2("?s")
v3("?ville"):::projected
c6(["bd:serviceParam"]):::iri
c8(["fr"]):::literal
bind0[/VALUES ?route/]
bind0-->v1
bind00(["wd:Q1624187"])
bind00 --> bind0
v1 --"p:P609"--> v2
v2 --"p:statement/P609"--> v3
v3 --"p:direct/P625"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P560".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end