query-b249a46e37f54b8e1126403199c3e2f3
Bouzinac
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?base_a_rienne_militaire ?base_a_rienne_militaireLabel ?coordonn_es_g_ographiques ?layer
WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
?base_a_rienne_militaire wdt:P31 wd:Q695850 .
?base_a_rienne_militaire wdt:P17 ?pays
VALUES ?pays { wd:Q884 wd:Q423 }
BIND(IF(?pays = wd:Q884, "South Korean airbase", "North Korean airbase") AS ?layer)
OPTIONAL { ?base_a_rienne_militaire wdt:P625 ?coordonn_es_g_ographiques. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?base_a_rienne_militaire"):::projected
v4("?coordonn_es_g_ographiques"):::projected
v3("?layer"):::projected
v3("?pays")
c2(["bd:serviceParam"]):::iri
c6(["wd:Q695850"]):::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
v1 --"wdt:P31"--> c6
v1 --"wdt:P17"--> v3
bind0[/VALUES ?pays/]
bind0-->v3
bind00(["wd:Q884"])
bind00 --> bind0
bind01(["wd:Q423"])
bind01 --> bind0
bind1[/"if(?pays = 'wd:Q884','South Korean airbase','North Korean airbase')"/]
v3 --o bind1
bind1 --as--o v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end