query-30ab18481944c540c33f178459d65873
TODO
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 psv: <http://www.wikidata.org/prop/statement/value/>
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 ?tunnel ?tunnelLabel ?natureLabel ?longueur_psv ?unit_psvLabel ?longueur_psn ?unit_psnLabel WHERE {
?tunnel (wdt:P31/wdt:P279*) wd:Q44377.
OPTIONAL { ?tunnel p:P2043/psv:P2043 ?longueurnode_psv .
?longueurnode_psv wikibase:quantityAmount ?longueur_psv .
?longueurnode_psv wikibase:quantityUnit ?unit_psv .
}
OPTIONAL { ?tunnel p:P2043/psn:P2043 ?longueurnode_psn .
?longueurnode_psn wikibase:quantityAmount ?longueur_psn .
?longueurnode_psn wikibase:quantityUnit ?unit_psn .
}
FILTER(BOUND(?longueur_psn))
OPTIONAL { ?tunnel wdt:P31 ?nature. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?longueur_psn)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?longueur_psn"):::projected
v4("?longueur_psv"):::projected
v6("?longueurnode_psn")
v3("?longueurnode_psv")
v8("?nature")
v2("?tunnel"):::projected
v7("?unit_psn")
v5("?unit_psv")
a1((" "))
a2((" "))
a3((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q44377"]):::iri
f0[["bound(?longueur_psn)"]]
f0 --> v1
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P2043".-> a2
a2 --"p:statement/value/P2043"--> v3
v3 --"wikibase:quantityAmount"--> v4
v3 --"wikibase:quantityUnit"--> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P2043".-> a3
a3 --"p:statement/value-normalized/P2043"--> v6
v6 --"wikibase:quantityAmount"--> v1
v6 --"wikibase:quantityUnit"--> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P31".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end