query-82f6512378bc290b6d74eb7ddd9d4789
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?unit ?scriptLabel ?langLabel WHERE {
?item p:P558 ?statement .
?statement ps:P558 ?unit .
OPTIONAL{?statement pq:P282 ?script}
OPTIONAL{?statement pq:P407 ?lang}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v5("?lang")
v4("?script")
v2("?statement")
v3("?unit"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
v1 --"p:P558"--> v2
v2 --"p:statement/P558"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P282".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P407".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end