query-08f9466e94ef57370b23bbb34052a009

rq turtle/ttl

TODO

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#>
SELECT ?airport ?iata ?serves ?servesLabel ?serves_area ?serves_areaLabel ?coords WHERE {
  ?airport (wdt:P31/(wdt:P279*)) wd:Q1248784;
    wdt:P238 ?iata;
    wdt:P625 ?coords.
    {?airport wdt:P931 ?serves.
    OPTIONAL {?serves wdt:P131 ?serves_area . } }
    UNION {?airport wdt:P131 ?serves_area . } 
  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; v1("?airport"):::projected v3("?coords"):::projected v2("?iata"):::projected v4("?serves"):::projected v5("?serves_area"):::projected a1((" ")) c3(["wd:Q1248784"]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P238"--> v2 v1 --"wdt:P625"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P131"--> v5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P931"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P131".-> v5 end end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end