query-6f9f02ca3f60a0405e7909749b665206

rq turtle/ttl

title: Search in labels with regex SELECT ?item ?itemLabel WHERE { ?item wdt:P17 wd:Q40; rdfs:label ?itemLabel; FILTER (LANG(?itemLabel) = "de"). FILTER regex(?itemLabel, ".östereich.", "i"). SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" } . } limit 500

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Search in labels with regex
SELECT ?item ?itemLabel WHERE {
   ?item wdt:P17 wd:Q40;
   rdfs:label ?itemLabel;
   FILTER (LANG(?itemLabel) = "de"). 
   FILTER regex(?itemLabel, ".*östereich.*", "i").
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" } .
} limit 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemLabel"):::projected c10(["#91;AUTO_LANGUAGE#93;,de"]):::literal c8(["bd:serviceParam"]):::iri c5(["wd:Q40"]):::iri f0[["regex(?itemLabel,'.*östereich.*','i')"]] f0 --> v1 f1[["?itemLabel = 'de'"]] f1 --> v1 v2 --"wdt:P17"--> c5 v2 --"rdfs:label"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end