query-c5aab41a8068964f601636708d84b21a

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?property ?propertyLabel ?value ?valueLabel ?unit ?unitLabel

WHERE {
   {
  SELECT ?item ?property ?value ?unit
  WHERE {
     {
  SELECT ?statement WHERE { 
      ?statement prov:wasDerivedFrom/pr:P248 wd:Q105645500 .
  }
  LIMIT 2000
}    ?item ?p ?statement .
    ?property wikibase:claim ?p . 
    ?statement ?a ?value .
    ?item ?b ?value .  
    OPTIONAL {?statement ?psv_statement_predicate ?psv_statement .
    ?statement_predicate_property wikibase:statementValue ?psv_statement_predicate.
    ?psv_statement wikibase:quantityUnit ?unit}
  }
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } 
} 
ORDER BY DESC(?itemLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?a") v8("?b") v3("?item"):::projected v1("?itemLabel"):::projected v4("?p") v5("?property"):::projected v10("?psv_statement") v9("?psv_statement_predicate") v2("?statement") v11("?statement_predicate_property") v12("?unit"):::projected v7("?value"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c3(["wd:Q105645500"]):::iri v2 --"prov:wasDerivedFrom"--> a1 a1 --"pr:P248"--> c3 v3 -->v4--> v2 v5 --"wikibase:claim"--> v4 v2 -->v6--> v7 v3 -->v8--> v7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -->v9--> v10 v11 -."wikibase:statementValue".-> v9 v10 --"wikibase:quantityUnit"--> v12 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end