query-84039e62a5313d25650ef88b16016092

rq turtle/ttl

TODO

Use at

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(REPLACE(str(?itemLabel),"route impériale ",""),"route royale ","")) as ?num) ?num_rn {
?item wdt:P31 wd:Q56582861 .
OPTIONAL {
?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

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?item_rn") v6("?num") v5("?num_rn"):::projected v4("?rn") c6(["bd:serviceParam"]):::iri c2(["wd:Q56582861"]):::iri c8(["fr"]):::literal v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; 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 end 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(replace(str(?itemLabel),'route impériale ',''),'route royale ',''))"/] null --o bind1 bind1 --as--o v6