query-0687056ba5f5e3cfacac6759d2bc8f73
still in use
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#>
# Every MSC station still in use
#defaultView:Map
SELECT ?item ?itemLabel ?coord
WHERE {
?item (wdt:P31/wdt:P279*) wd:Q190107.
?item wdt:P127 wd:Q349450.
OPTIONAL { ?item wdt:P3999 ?closureDate }
FILTER(# Closure date is not set
!BOUND(?closureDate)
)
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;
v1("?closureDate")
v3("?coord"):::projected
v2("?item"):::projected
a1((" "))
c3(["wd:Q190107"]):::iri
c5(["wd:Q349450"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not bound(?closureDate)"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P127"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P3999".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v3
end