query-fe89edf53dff7bc7b8df64f47b5d28d7

rq turtle/ttl

get P1813 in ENGLISH

SELECT distinct ?item ?itemLabel ?itemDescription ?shortname WHERE {
?item (wdt:P31/wdt:P279*) wd:Q644371 . # is airport ?item wdt:P1813 ?shortname . # has shortname FILTER(LANG(?shortname) = 'en') . # only english SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
########################
# get P1813 in ENGLISH
########################
SELECT distinct ?item ?itemLabel ?itemDescription ?shortname
WHERE {    
  ?item (wdt:P31/wdt:P279*) wd:Q644371 .  # is airport
  ?item wdt:P1813 ?shortname .            # has shortname
  FILTER(LANG(?shortname) = 'en') .       # only english
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} 
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?itemLabel"):::projected v2("?shortname"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q644371"]):::iri f0[["?shortname = 'en'"]] f0 --> v2 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v3 --"wdt:P1813"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end