query-f9a32c869d2de82e84df1ba2bc9b28a7

rq turtle/ttl

ISQ Base Quantities

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select
  ?quantity
  (sample(?label) as ?label)
  (sample(?desc) as ?desc)
  (sample(?symbol) as ?symbol)
  (sample(?unit) as ?unit)
  (sample(?dim) as ?dim)
where {
  ?quantity wdt:P279 wd:Q30337748 .  # ISQ base quantity
  optional { ?quantity rdfs:label ?label . filter (lang(?label) = "de") }
  optional { ?quantity schema:description ?desc . filter (lang(?desc) = "de") }
  optional { ?quantity wdt:P7973 ?symbol . }
  optional { ?quantity wdt:P8111 / wdt:P5061 ?unit . filter (lang(?unit) = "en") }
  optional { ?quantity wdt:P4020 ?dim . }
} group by ?quantity

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?desc"):::projected v7("?dim"):::projected v7("?label"):::projected v4("?quantity"):::projected v7("?symbol"):::projected v7("?unit"):::projected a1((" ")) c4(["wd:Q30337748"]):::iri v4 --"wdt:P279"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v7 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:description".-> v7 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P7973".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P8111".-> a1 a1 --"wdt:P5061"--> v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P4020".-> v7 end bind5[/"sample(?label)"/] v7 --o bind5 bind5 --as--o v7 bind6[/"sample(?desc)"/] v7 --o bind6 bind6 --as--o v7 bind7[/"sample(?symbol)"/] v7 --o bind7 bind7 --as--o v7 bind8[/"sample(?unit)"/] v7 --o bind8 bind8 --as--o v7 bind9[/"sample(?dim)"/] v7 --o bind9 bind9 --as--o v7