query-9a2422d3437e4391dd5a98d7da94d76b

rq turtle/ttl

Stations du NB avec obs horaire [1975,2000]

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Stations NB obs horaires entre [1975, 2000]
#defaultView:Map
SELECT ?item ?itemLabel ?coord ?starttime ?endtime WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q190107.
  ?item wdt:P131 wd:Q1965 .
  ?item wdt:P6339 wd:Q59657010 .
  ?item p:P6339 ?daily_obs .
  ?daily_obs pq:P580 ?starttime.
  ?daily_obs pq:P582 ?endtime.
  FILTER (?starttime < "1975-01-02T00:00:00Z"^^xsd:dateTime) .
  FILTER (?endtime > "2000-01-01T00:00:00Z"^^xsd:dateTime) .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?item wdt:P625 ?coord. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?coord"):::projected v4("?daily_obs") v1("?endtime"):::projected v3("?item"):::projected v2("?starttime"):::projected a1((" ")) c7(["wd:Q1965"]):::iri c9(["wd:Q59657010"]):::iri c5(["wd:Q190107"]):::iri c14(["bd:serviceParam"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?endtime > '2000-01-01T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 f1[["?starttime < '1975-01-02T00:00:00Z^^xsd:dateTime'"]] f1 --> v2 v3 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c5 v3 --"p:direct/P131"--> c7 v3 --"p:direct/P6339"--> c9 v3 --"p:P6339"--> v4 v4 --"p:qualifier/P580"--> v2 v4 --"p:qualifier/P582"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P625".-> v5 end