query-235c479c8fd7c8e9e64a73f2049a636d
Dédoublonnage aérodromes prrrrt
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?pays ?paysLabel ?item ?itemLabel ?itemDescription ?sitelink
WHERE {
?item (wdt:P31/wdt:P279*) wd:Q62447.
optional{ ?item wdt:P17 ?pays}
MINUS { ?item wdt:P625 ?coord. }
MINUS { ?item wdt:P576 _:b2. } # remove items with P576 (dissolved, abolished or demolished) as a main property
MINUS { ?item wdt:P582 _:b3. } # remove items with P582 (end date) as a main property
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q695850. } # exclude military airports
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q1311670. } # exclude railways stations
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q7373622. } # exclude Royal Air Force
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q502074. } # exclude héliports
MINUS { ?item wdt:P31/wdt:P279* wd:Q2265915.} # exclude vol à voile/gliders
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q44665966. } # exclude airports being build
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q782667. } # exclude motorways where plane can land
MINUS { ?item a wdno:P17.} # exclude airports that aren't physically based in a country
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,ms". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord")
v1("?item"):::projected
v2("?pays"):::projected
a2((" "))
a3((" "))
a1((" "))
a4((" "))
a5((" "))
a6((" "))
a7((" "))
a8((" "))
a9((" "))
a10((" "))
c10(["wd:Q7373622"]):::iri
c12(["wd:Q2265915"]):::iri
c14(["wd:Q782667"]):::iri
c16(["wdno:P17"]):::iri
c3(["wd:Q62447"]):::iri
c18(["bd:serviceParam"]):::iri
c9(["wd:Q1311670"]):::iri
c8(["wd:Q695850"]):::iri
c13(["wd:Q44665966"]):::iri
c20(["#91;AUTO_LANGUAGE#93;,en,ms"]):::literal
c11(["wd:Q502074"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v2
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P625"--> v3
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P576"--> a2
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P582"--> a3
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a4
a4 --"wdt:P279"--> c8
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a5
a5 --"wdt:P279"--> c9
end
subgraph minus5["MINUS"]
style minus5 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a6
a6 --"wdt:P279"--> c10
end
subgraph minus6["MINUS"]
style minus6 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a7
a7 --"wdt:P279"--> c11
end
subgraph minus7["MINUS"]
style minus7 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a8
a8 --"wdt:P279"--> c12
end
subgraph minus8["MINUS"]
style minus8 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a9
a9 --"wdt:P279"--> c13
end
subgraph minus9["MINUS"]
style minus9 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a10
a10 --"wdt:P279"--> c14
end
subgraph minus10["MINUS"]
style minus10 stroke-width:6px,fill:pink,stroke:red;
v1 --"a"--> c16
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c18 --"wikibase:language"--> c20
end