query-2c6e562aa2715814813f2e07eddf5475

rq turtle/ttl

d'un inondation au Canada

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#>
# Stations < 10km d'un inondation au Canada
#defaultView:Map
SELECT DISTINCT ?station ?coordonn_es_g_ographiques WHERE {
  ?inondation wdt:P31 wd:Q8068.
  ?inondation wdt:P17 wd:Q16.

  ?inondation wdt:P625 ?inonLoc # Inondation location
  SERVICE wikibase:around {
    ?station wdt:P625 ?location .
    bd:serviceParam wikibase:center ?inonLoc .
    bd:serviceParam wikibase:radius "10" . # within 10 km radius
  } .
   # is close from a Wx station
  FILTER EXISTS { ?station wdt:P31/wdt:P279* wd:Q190107 } .

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?station wdt:P625 ?coordonn_es_g_ographiques. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?coordonn_es_g_ographiques"):::projected v3("?inonLoc") v2("?inondation") v4("?location") v1("?station"):::projected a1((" ")) c4(["wd:Q8068"]):::iri c6(["wd:Q16"]):::iri c3(["wd:Q190107"]):::iri c9(["bd:serviceParam"]):::iri c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal c12(["10"]):::literal f0[[" "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P31"--> e0a1 e0a1 --"wdt:P279"--> e0c3 e0v1("?station"):::projected e0a1((" ")):::projected e0c3(["wd:Q190107"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 f0 --> c2 f0 --> c3 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P31"--> c4 v2 --"wdt:P17"--> c6 v2 --"wdt:P625"--> v3 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v1 --"wdt:P625"--> v4 c9 --"wikibase:center"--> v3 c9 --"wikibase:radius"--> c12 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c9 --"wikibase:language"--> c15 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v5 end