query-3505516398e4eb7ec4cbae5ea2723f83

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 bd: <http://www.bigdata.com/rdf#>
select ?inst ?instLabel ?instDescription ?count ?search
where {
   {
  select ?inst (count(*) as ?count)
  where { [] wdt:P31 ?inst . }
  group by ?inst
  order by desc(?count)
  limit 1000
}  # filter (?inst not in (wd:Q8054)) # unlist protein (WHY?!?)
  bind(uri(concat("https://www.wikidata.org/w/index.php?title=Special%3ASearch&ns0=1&search=haswbstatement%3AP31%3D", strafter(str(?inst), "http://www.wikidata.org/entity/"))) as ?search)
  service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
order by desc(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?count"):::projected v2("?inst"):::projected v3("?search"):::projected a1((" ")) c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal a1 --"wdt:P31"--> v2 bind1[/"count(*)"/] bind1 --as--o v3 bind2[/"concat('https://www.wikidata.org/w/index.php?title=Special%3ASearch&ns0=1&search=haswbstatement%3AP31%3D',substring-after(str(?inst),'http://www.wikidata.org/entity/'))"/] v2 --o bind2 bind2 --as--o v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end