query-25f0cf78cf74a3b7d2536211658c46ed
Autoroutes in service
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#>
SELECT DISTINCT ?item ?itemLabel ?url ?value {
?item wdt:P16 wd:Q3456602 .
?item wdt:P6262 ?value .
FILTER(STRSTARTS(?value,"routes:")) .
FILTER(!(STRENDS(?value,"(Projet)")|| STRENDS(?value,"(Ancien_numéro)") || STRENDS(?value,"(Ancien_tronçon)") || STRENDS(?value,"(Ancien_projet)"))) .
BIND(IRI(REPLACE(?value,"routes:","https://routes.fandom.com/wiki/")) AS ?url) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } .
} ORDER BY ?value
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?url"):::projected
v1("?value"):::projected
c10(["bd:serviceParam"]):::iri
c7(["wd:Q3456602"]):::iri
c12(["fr"]):::literal
f0[["not (ends-with(?value,'(Projet)') || (ends-with(?value,'(Ancien_numéro)') || (ends-with(?value,'(Ancien_tronçon)') || ends-with(?value,'(Ancien_projet)'))))"]]
f0 --> v1
f1[["starts-with(?value,'routes:')"]]
f1 --> v1
v2 --"wdt:P16"--> c7
v2 --"wdt:P6262"--> v1
bind2[/"replace(?value,'routes:','https://routes.fandom.com/wiki/')"/]
v1 --o bind2
bind2 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end