query-fb9061e3e8ba394c6c2507824e24b7d3

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Counting disease annotations
#defaultView:BubbleChart
SELECT ?disease ?diseaseLabel ?count
WHERE 
{
  {
    SELECT ?disease (COUNT(?annotation) AS ?count)    
WHERE {
        ?annotation wdt:P15 ?disease.
        ?annotation wdt:P16 "infectiousdiseases" .
       }
  GROUP BY ?disease
  HAVING (?count > 1)        
  }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY DESC(?count)
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?annotation") v4("?count"):::projected v3("?disease"):::projected c6(["bd:serviceParam"]):::iri c4(["infectiousdiseases"]):::literal c8(["en"]):::literal f0[["?count > '1^^xsd:integer'"]] f0 --> v4 v2 --"wdt:P15"--> v3 v2 --"wdt:P16"--> c4 bind2[/"count(?annotation)"/] v2 --o bind2 bind2 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end