query-a84a1fce58a34dc77942892418dc872b

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
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 ?quantity ?quantityLabel ?quantitySymbols ?wlQuantity ?source ?sourceLabel ?itemNumber where {
  ?quantity wdt:P279+ wd:Q71550118 .                    # quantity
  ?quantity p:P1343 [
    ps:P1343 ?source ;
    pq:P958 ?itemNumber ;
  ] .
  ?source wdt:P629 / wdt:P361 wd:Q568496 .              # any edition of any part of ISO 80000
  optional { ?quantity wdt:P7431 ?wlQuantity . }
  service wikibase:label { bd:serviceParam wikibase:language "en" . }
  optional {
    select ?quantity (group_concat(?quantitySymbol; separator = ", ") as ?quantitySymbols) where {
      ?quantity wdt:P416 ?quantitySymbol .
    } group by ?quantity
  }
} order by ?itemNumber

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?itemNumber"):::projected v2("?quantity"):::projected v5("?quantitySymbol") v6("?quantitySymbols"):::projected v3("?source"):::projected v4("?wlQuantity"):::projected a1((" ")) a2((" ")) c13(["en"]):::literal c2(["wd:Q71550118"]):::iri c8(["wd:Q568496"]):::iri c11(["bd:serviceParam"]):::iri v2 --"p:direct/P279"--> c2 a1 --"p:statement/P1343"--> v3 a1 --"p:qualifier/P958"--> v1 v2 --"p:P1343"--> a1 v3 --"p:direct/P629"--> a2 a2 --"p:direct/P361"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P7431".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P416".-> v5 bind1[/"?quantitySymbol"/] v5 --o bind1 bind1 --as--o v6 end