query-f292d28e90006c31599925a9500a7905

rq turtle/ttl

NB stations ordered by service entry date SELECT ?item ?itemLabel ?coord ?date_de_mise_en_service WHERE { ?item (wdt:P31/wdt:P279*) wd:Q190107. ?item wdt:P131 wd:Q1965.

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } OPTIONAL { ?item wdt:P625 ?coord. } OPTIONAL { ?item wdt:P729 ?date_de_mise_en_service. } } ORDER BY DESC(?date_de_mise_en_service)

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#>
# NB stations ordered by service entry date 
SELECT ?item ?itemLabel ?coord ?date_de_mise_en_service WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q190107.
  ?item wdt:P131 wd:Q1965.

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?item wdt:P625 ?coord. }
  OPTIONAL { ?item wdt:P729 ?date_de_mise_en_service. }
}
ORDER BY DESC(?date_de_mise_en_service)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coord"):::projected v1("?date_de_mise_en_service"):::projected v2("?item"):::projected a1((" ")) c3(["wd:Q190107"]):::iri c5(["wd:Q1965"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P131"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P729".-> v1 end