query-367879069de1b6be7d70aa67b27504ec

rq turtle/ttl

Bubble chart of all elements by atomic mass

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT DISTINCT ?element ?elementLabel (SAMPLE(?mass) AS ?oneMass)
{
  ?element wdt:P31  wd:Q11344 ;   # element
           wdt:P2067 ?mass .      # mass
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de" }
}
GROUP BY ?element ?elementLabel
ORDER BY DESC(?oneMass)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?element"):::projected v3("?mass"):::projected v4("?oneMass") c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal c2(["wd:Q11344"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P2067"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"sample(?mass)"/] v3 --o bind1 bind1 --as--o v4