query-2a170ec0bf317ec6e9ac1772a87d89bc
Voies de LyonRues du 3eme arrondissement de Lyon avec lat+lon pour export et conversion en gpx
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 ?voie ?image ?coord ?lat ?long ?loc ?locLabel ?layer ?voieLabel WHERE {
{ ?voie (wdt:P31/(wdt:P279*)) wd:Q79007. }
UNION
{ ?voie (wdt:P31/(wdt:P279*)) wd:Q174782. }
UNION
{ ?voie (wdt:P31/(wdt:P279*)) wd:Q16544740. }
UNION
{ ?voie (wdt:P31/(wdt:P279*)) wd:Q3840711. }
UNION
{ ?voie (wdt:P31/(wdt:P279*)) wd:Q13634881. }
MINUS { ?voie wdt:P582 ?dateDeFin. }
?voie wdt:P131 wd:Q3348.
OPTIONAL { ?voie wdt:P18 ?image. }
BIND(IF(?image = "", "yes", "no") AS ?layer)
OPTIONAL { ?voie wdt:P625 ?coord. }
OPTIONAL { ?voie p:P625 ?statement. }
OPTIONAL { ?statement psv:P625 ?coordinate . }
OPTIONAL { ?coordinate wikibase:geoLatitude ?lat . }
OPTIONAL { ?coordinate wikibase:geoLongitude ?long .}
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;
v6("?coord"):::projected
v8("?coordinate")
v3("?dateDeFin")
v4("?image"):::projected
v9("?lat"):::projected
v5("?layer"):::projected
v11("?loc"):::projected
v10("?long"):::projected
v7("?statement")
v2("?voie"):::projected
v1("?voieLabel"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c5(["wd:Q16544740"]):::iri
c4(["wd:Q174782"]):::iri
c3(["wd:Q79007"]):::iri
c7(["wd:Q13634881"]):::iri
c20(["fr"]):::literal
c18(["bd:serviceParam"]):::iri
c6(["wd:Q3840711"]):::iri
c10(["wd:Q3348"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a5
a5 --"p:direct/P279"--> c7
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a4
a4 --"p:direct/P279"--> c6
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a3
a3 --"p:direct/P279"--> c5
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c4
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
end
union0r <== or ==> union0l
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P582"--> v3
end
v2 --"p:direct/P131"--> c10
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P18".-> v4
end
bind1[/"if(?image = '','yes','no')"/]
v4 --o bind1
bind1 --as--o v5
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P625".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P625".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v7 -."p:statement/value/P625".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v8 -."wikibase:geoLatitude".-> v9
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v8 -."wikibase:geoLongitude".-> v10
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P131".-> v11
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c18 --"wikibase:language"--> c20
end