query-8b238c1cb754f27993ee45a21ee8b782
Airport codes with regex check for three letters
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dummy0Label
WHERE {
?item wdt:P238 ?dummy0 .
FILTER regex (?dummy0, "[A-Z]{3}")
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dummy0")
v2("?item"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
f0[["regex(?dummy0,'#91;A-Z#93;{3}')"]]
f0 --> v1
v2 --"wdt:P238"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end