query-22092f4e08bab1387662207e7e2f1276
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 (xsd:decimal(REPLACE(str(?itemLabel),"route impériale ","")) as ?num) ?num_rn {
?item wdt:P31 wd:Q56582861 .
?item wdt:P1366 ?item_rn .
?item_rn wdt:P1824 ?rn .
BIND(xsd:decimal(REPLACE(str(?rn),"N","")) as ?num_rn)
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } .
} ORDER BY ?num_rn
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?item_rn")
v5("?num")
v5("?num_rn"):::projected
v4("?rn")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q56582861"]):::iri
c8(["fr"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P1366"--> v3
v3 --"wdt:P1824"--> v4
bind0[/"http://www.w3.org/2001/XMLSchema#decimal(replace(str(?rn),'N',''))"/]
v4 --o bind0
bind0 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"http://www.w3.org/2001/XMLSchema#decimal(replace(str(?itemLabel),'route impériale ',''))"/]
null --o bind1
bind1 --as--o v5