query-48757d05debaed5901fcfb80dc237409
Propertiesinstance of (P31)located in the administrative territorial entity (P131)coordinate location (P625)connecting line (P81)image (P18)end time (P582)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?station ?stationLabel ?article ?lgaLabel ?connectingLineLabel ?image ?coords WHERE {
?station wdt:P31 wd:Q55488 .
?station wdt:P131* wd:Q3206 .
?station wdt:P131 ?lga .
OPTIONAL{
?article schema:about ?station .
?article schema:isPartOf <https://en.wikipedia.org/>
} .
OPTIONAL{ ?station wdt:P625 ?coords } .
OPTIONAL{ ?station wdt:P81 ?connectingLine } .
OPTIONAL{ ?station wdt:P18 ?image } .
MINUS { OPTIONAL{ ?station wdt:P582 ?endDate } } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?stationLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article"):::projected
v6("?connectingLine")
v5("?coords"):::projected
v8("?endDate")
v7("?image"):::projected
v3("?lga")
v2("?station"):::projected
v1("?stationLabel"):::projected
c4(["wd:Q3206"]):::iri
c7([https://en.wikipedia.org/]):::iri
c13(["bd:serviceParam"]):::iri
c2(["wd:Q55488"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P131"--> c4
v2 --"wdt:P131"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v2
v4 --"schema:isPartOf"--> c7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P81".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v7
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P582".-> v8
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end