query-5bbbabb2dcbcbf9bffc6bb8d2a5d294b
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 ?item ?itemLabel ?value ?unitLabel ?N_value ?N_unitLabel where {
?item wdt:P31 wd:Q8502. # mountains
?item p:P2048 ?statement . # height statement
?statement psv:P2048 ?statement2 . # values as entered
?statement2 wikibase:quantityAmount ?value .
?statement2 wikibase:quantityUnit ?unit .
?statement psn:P2048 ?statement3 . # normalised values
?statement3 wikibase:quantityAmount ?N_value .
?statement3 wikibase:quantityUnit ?N_unit .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?N_unit")
v7("?N_value"):::projected
v1("?item"):::projected
v2("?statement")
v3("?statement2")
v6("?statement3")
v5("?unit")
v4("?value"):::projected
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q8502"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:P2048"--> v2
v2 --"p:statement/value/P2048"--> v3
v3 --"wikibase:quantityAmount"--> v4
v3 --"wikibase:quantityUnit"--> v5
v2 --"p:statement/value-normalized/P2048"--> v6
v6 --"wikibase:quantityAmount"--> v7
v6 --"wikibase:quantityUnit"--> v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end