query-b2776dec19243cbcf7f1fecc83e12a89

rq turtle/ttl

Finde Umlaute in Labels SELECT ?item ?itemLabel ?altLabel WHERE {
?item wdt:P1080 wd:Q81738 . ?item rdfs:label ?itemLabel . OPTIONAL { ?item skos:altLabel ?altLabel . FILTER(LANG(?altLabel) = "[AUTO_LANGUAGE]") } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } FILTER(LANG(?itemLabel) = "[AUTO_LANGUAGE]"). FILTER(REGEX(?itemLabel, "[äüöúáóéëÆÉíû]+")) . } 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 skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Finde Umlaute in Labels
SELECT ?item ?itemLabel ?altLabel
WHERE {  
    ?item wdt:P1080 wd:Q81738 .
    ?item rdfs:label ?itemLabel .
    OPTIONAL { ?item skos:altLabel ?altLabel .  FILTER(LANG(?altLabel) = "[AUTO_LANGUAGE]") }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
    FILTER(LANG(?itemLabel) = "[AUTO_LANGUAGE]"). 
    FILTER(REGEX(?itemLabel, "[äüöúáóéëÆÉíû]+")) .
}
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?altLabel"):::projected v3("?item"):::projected v1("?itemLabel"):::projected c4(["wd:Q81738"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["regex(?itemLabel,'#91;äüöúáóéëÆÉíû#93;+')"]] f0 --> v1 f1[["?itemLabel = '#91;AUTO_LANGUAGE#93;'"]] f1 --> v1 v3 --"wdt:P1080"--> c4 v3 --"rdfs:label"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."skos:altLabel".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end