query-ad5ade13b93f5d9bf090200013ecfc0a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel ?height ?unitLabel where
{
values ?item {wd:Q42}
?item p:P2048 [ps:P2048 ?height; psv:P2048 [wikibase:quantityUnit ?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;
v2("?height"):::projected
v1("?item"):::projected
v3("?unit")
a1((" "))
a2((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q42"])
bind00 --> bind0
a1 --"p:statement/P2048"--> v2
a2 --"wikibase:quantityUnit"--> v3
a1 --"p:statement/value/P2048"--> a2
v1 --"p:P2048"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end