query-759e693f239becbeaf33ef27fc61e8ac

rq turtle/ttl

Get airports which have an ICAO set to select ?item where { ?item wdt:P31/wdt:P279* wd:Q1248784 . ?item p:P239 [rdf:type wdno:P239] . # this is the bit that gets the }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX p: <http://www.wikidata.org/prop/>
# Get airports which have an ICAO set to <no value>
select ?item where {
  ?item wdt:P31/wdt:P279* wd:Q1248784 . 
  ?item p:P239 [rdf:type wdno:P239] .                        # this is the bit that gets the <no value>
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) a2((" ")) c3(["wd:Q1248784"]):::iri c5(["p:novalue/P239"]):::iri v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 a2 --"a"--> c5 v1 --"p:P239"--> a2