query-2b8d6d3a3ae6fcbb080473efdd859271
Propertiesinstance of (P31)subclass of (P279)date of official opening (P1619)inception (P571)start time (P580)length (P2043)longest span (P2787)
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 psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT (ROUND(?normalizedLengthMeter) AS ?length) (ROUND(?normalizedLongestSpanMeter) AS ?span) ?opening ?inception ?start ?itemLabel ?item WHERE {
?item wdt:P31/wdt:P279* wd:Q12280.
?item p:P2043/psn:P2043/wikibase:quantityAmount ?normalizedLengthMeter.
OPTIONAL { ?item p:P2787/psn:P2787/wikibase:quantityAmount ?normalizedLongestSpanMeter. }
OPTIONAL { ?item wdt:P1619 ?opening. }.
OPTIONAL { ?item wdt:P571 ?inception. }.
OPTIONAL { ?item wdt:P580 ?start. }.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
ORDER BY DESC( ?normalizedLengthMeter )
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?inception"):::projected
v2("?item"):::projected
v7("?length")
v1("?normalizedLengthMeter"):::projected
v3("?normalizedLongestSpanMeter"):::projected
v4("?opening"):::projected
v8("?span")
v6("?start"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c15(["de"]):::literal
c3(["wd:Q12280"]):::iri
c13(["bd:serviceParam"]):::iri
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v2 --"p:P2043"--> a2
a2 --"p:statement/value-normalized/P2043"--> a3
a3 --"wikibase:quantityAmount"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P2787".-> a4
a4 --"p:statement/value-normalized/P2787"--> a5
a5 --"wikibase:quantityAmount"--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P1619".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P571".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P580".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind0[/"numeric-round(?normalizedLengthMeter)"/]
v1 --o bind0
bind0 --as--o v7
bind1[/"numeric-round(?normalizedLongestSpanMeter)"/]
v3 --o bind1
bind1 --as--o v8