query-ccdaf6ef53a5e2898c1594175383950f

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 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 ?height
WHERE
{
  ?item wdt:P31/wdt:P279* wd:Q11303 . # ?item is a skyscraper
  ?item p:P2048 ?height_statement.
  ?height_statement a wikibase:BestRank.
  ?height_statement psv:P2048 ?height_value.
  ?height_value wikibase:quantityUnit wd:Q11573. # Unit is meter 
  ?height_value wikibase:quantityAmount ?height.
  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; v4("?height"):::projected v2("?height_statement") v3("?height_value") v1("?item"):::projected a1((" ")) c6(["wikibase:BestRank"]):::iri c9(["wd:Q11573"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q11303"]):::iri v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v1 --"p:P2048"--> v2 v2 --"a"--> c6 v2 --"p:statement/value/P2048"--> v3 v3 --"wikibase:quantityUnit"--> c9 v3 --"wikibase:quantityAmount"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end