query-39648f1b27461a15338ec2f2f1c967b0
Locations of bridges in Lithuania
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#>
#title:Locations of bridges in Lithuania
#defaultView:Table
SELECT ?item ?itemLabel ?itemDescription ?length ?crossesLabel ?municLabel ?coord WHERE {
?item (wdt:P31/(wdt:P279*)) wd:Q12280;
wdt:P17 wd:Q37;
wdt:P625 ?coord;
OPTIONAL { ?item wdt:P177 ?crosses }
OPTIONAL { ?item wdt:P131 ?munic }
OPTIONAL { ?item wdt:P2043 ?length }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC (?length)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v4("?crosses")
v2("?item"):::projected
v1("?length"):::projected
v5("?munic")
a1((" "))
c3(["wd:Q12280"]):::iri
c5(["wd:Q37"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
v2 --"wdt:P625"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P177".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2043".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end