query-461830720a6b15270e51802b36ab2a5d
TODO
Use at
- https://query.wikidata.org/sparql
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#>
#Villages québécois ayant des noms de saints et de saintes
#defaultView:Map
SELECT DISTINCT ?item ?itemL ?coords ?layer WHERE {
?item wdt:P31/wdt:P279* wd:Q3327873 ;
wdt:P625 ?coords ;
rdfs:label ?itemL filter (lang(?itemL) = "fr") .
FILTER (STRSTARTS(?itemL, "Saint")) .
BIND(SUBSTR(?itemL,1,6) AS ?layer).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coords"):::projected
v2("?item"):::projected
v1("?itemL"):::projected
v4("?layer"):::projected
a1((" "))
c5(["wd:Q3327873"]):::iri
f0[["starts-with(?itemL,'Saint')"]]
f0 --> v1
f1[["?itemL = 'fr'"]]
f1 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P625"--> v3
v2 --"rdfs:label"--> v1
bind2[/"substring(?itemL,'1^^xsd:integer','6^^xsd:integer')"/]
v1 --o bind2
bind2 --as--o v4