query-ee9fe79946ed1e32521f3c0c251ae277
defaultView:Map
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
SELECT DISTINCT ?voie ?voieLabel ?image ?coord ?loc ?locLabel ?layer WHERE {
?voie (wdt:P31/wdt:P279*) wd:Q79007.
{
?voie wdt:P131 ?arr.
?arr wdt:P131 wd:Q456.
}
OPTIONAL { ?voie wdt:P18 ?image. }
BIND(IF(?image="", "yes", "no") AS ?layer)
OPTIONAL { ?voie wdt:P625 ?coord. }
OPTIONAL { ?voie wdt:P131 ?loc. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
ORDER BY DESC(?voieLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?arr")
v6("?coord"):::projected
v4("?image"):::projected
v5("?layer"):::projected
v7("?loc"):::projected
v2("?voie"):::projected
v1("?voieLabel"):::projected
a1((" "))
c5(["wd:Q456"]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q79007"]):::iri
c11(["fr"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> v3
v3 --"wdt:P131"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v4
end
bind0[/"if(?image = '','yes','no')"/]
v4 --o bind0
bind0 --as--o v5
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end