query-0209758d11bba6de2f5ab576b71dffbc
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?unit ?unitLabel
WHERE
{
?item p:P2873/psv:P2873 ?value.
?value wikibase:quantityUnit ?unit.
FILTER(?unit != wd:Q7727)
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("?item"):::projected
v1("?unit"):::projected
v3("?value")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?unit != 'wd:Q7727'"]]
f0 --> v1
v2 --"p:P2873"--> a1
a1 --"p:statement/value/P2873"--> v3
v3 --"wikibase:quantityUnit"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end