query-5128a8b9c6a510fa88ae75b75fe2bdb2

rq turtle/ttl

is

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?prop ?propLabel ?regex
WHERE {
    ?prop p:P2302 ?stmt .
    ?stmt ps:P2302 wd:Q21502404 .
    ?stmt pq:P1793 ?regex .
    FILTER(REGEX(?regex, ".*[Aa]-[Ff].*")) .
    FILTER(!REGEX(?regex, ".*(A-Fa-f|a-fA-F).*")) .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?prop"):::projected v1("?regex"):::projected v3("?stmt") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q21502404"]):::iri f0[["not regex(?regex,'.*(A-Fa-f|a-fA-F).*')"]] f0 --> v1 f1[["regex(?regex,'.*#91;Aa#93;-#91;Ff#93;.*')"]] f1 --> v1 v2 --"p:P2302"--> v3 v3 --"p:statement/P2302"--> c5 v3 --"p:qualifier/P1793"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end