query-965bef96b26013d87fd269276cd47baa

rq turtle/ttl

Wrongly uppercasedChurches

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:Q1370598 ; rdfs:label ?itemLabel .
    FILTER (lang(?itemLabel) = "fr"). 
    FILTER regex (?itemLabel, "^(Ancien|Abbatiale|Abbaye|Basilique|Cathédrale|Chapelle|Cimetière|Cloître|Couvent|Monastère|Nécropole|Oratoire|Prieurale|Église|Eglise)").
}
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:Q1370598"]):::iri f0[["regex(?itemLabel,'^(Ancien|Abbatiale|Abbaye|Basilique|Cathédrale|Chapelle|Cimetière|Cloître|Couvent|Monastère|Nécropole|Oratoire|Prieurale|Église|Eglise)')"]] 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