query-f74285c93da41145881c8757e3243b19

rq turtle/ttl

to the ?itemLabel line sorts it out: FILTER (LANG (?itemLabel) = "fr"): because you are getting one row for each ?itemLabel which Montbrison possesses ... the item has a "Montbrison" label for many distinct languages. Adding Touam@. This gives (P1448)official name I don’t really know if this property is widely used, but there is also a language independant property for the names in their native language :

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 ?item ?name ?coord WHERE {
  ?item wdt:P31 wd:Q484170.
  # ?item rdfs:label ?itemLabel.
  ?item wdt:P625 ?coord.
  ?item wdt:P1448 ?name.
  FILTER(REGEX(?name, "(rison)$"))
}limit 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coord"):::projected v2("?item"):::projected v1("?name"):::projected c3(["wd:Q484170"]):::iri f0[["regex(?name,'(rison)$')"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P625"--> v3 v2 --"wdt:P1448"--> v1