query-0e98c887f629f65abbe77c870f66e3d6

rq turtle/ttl

Roads

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ( CONCAT(lcase(substr(?itemLabel,1,1)), substr(?itemLabel,2)) as ?nom ) WHERE {
    ?item wdt:P31/wdt:P279* wd:Q83620 ; rdfs:label ?itemLabel .
    FILTER (lang(?itemLabel) = "fr"). 
    FILTER regex (?itemLabel, "^(Allée|Autoroute|Avenue|Boulevard|Chemin|Cours|Impasse|Place|Pont|Quai|Route|Rue|Square|Tunnel|Voie) ").
}
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemLabel"):::projected v3("?nom") a1((" ")) c5(["wd:Q83620"]):::iri f0[["regex(?itemLabel,'^(Allée|Autoroute|Avenue|Boulevard|Chemin|Cours|Impasse|Place|Pont|Quai|Route|Rue|Square|Tunnel|Voie) ')"]] f0 --> v1 f1[["?itemLabel = 'fr'"]] f1 --> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 v2 --"rdfs:label"--> v1 bind2[/"concat(lower-case(substring(?itemLabel,'1^^xsd:integer','1^^xsd:integer')),substring(?itemLabel,'2^^xsd:integer'))"/] v1 --o bind2 bind2 --as--o v3