query-ada4b167ba2853724ba258a2fc4b3347
Si je fais
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?aeroport ?aeroportLabel ?coords WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
OPTIONAL { ?aeroport wdt:P625 ?coords . }
?aeroport p:P31 [wikibase:rank ?rank ; ps:P31 wd:Q94993988 ] .
values ?rank { wikibase:PreferredRank wikibase:NormalRank }
}
Query found at
- https://www.wikidata.org/w/index.php?title=Topic:Vmtwyxt79bp61y58&topic_showPostId=vmu0uy0vbwlk501v#flow-post-vmu0uy0vbwlk501v
- https://www.wikidata.org/wiki/Topic:Vmtwyxt79bp61y58
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?aeroport"):::projected
v2("?coords"):::projected
v4("?rank")
a1((" "))
c2(["bd:serviceParam"]):::iri
c8(["wd:Q94993988"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P625".-> v2
end
a1 --"wikibase:rank"--> v4
a1 --"p:statement/P31"--> c8
v1 --"p:P31"--> a1
bind0[/VALUES ?rank/]
bind0-->v4
bind00(["wikibase:PreferredRank"])
bind00 --> bind0
bind01(["wikibase:NormalRank"])
bind01 --> bind0