query-a42bbe15660ee044fe3cafb72dcbabec
Bubble chartsHere is a query breaking the focus list down by disease special subject:
Use at
- https://query.wikidata.org/sparql
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#>
#ScienceSource focus list (WD:SSFL) disease subjects by medical specialty
#defaultView:BubbleChart
SELECT ?spec ?specLabel ?count
WHERE
{
{
SELECT ?spec (COUNT(?item) AS ?count)
WHERE {
?item wdt:P31 wd:Q12136 .
?item wdt:P1995 ?spec .
?SSpaper wdt:P5008 wd:Q55439927 .
?SSpaper wdt:P921 ?item .
}
GROUP BY ?spec
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY DESC(?count)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?SSpaper")
v5("?count"):::projected
v2("?item")
v3("?spec"):::projected
c8(["bd:serviceParam"]):::iri
c5(["wd:Q55439927"]):::iri
c10(["en"]):::literal
c2(["wd:Q12136"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P1995"--> v3
v4 --"wdt:P5008"--> c5
v4 --"wdt:P921"--> v2
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end