query-af70bf16f5f056e6fce0aa07a2032c09
)). logs • contribs • talk (Jheald… and has a scary number of hits : 856741 It was inspired by looking at the results of the last one (thanks A query to find the most problematic maybeclasses is more reassuring
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select (count(?item) as ?num) ?maybeclass where {
?item wdt:P31 ?maybeclass;
wdt:P279 ?maybeclass .
# SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} group by ?maybeclass
order by desc(?num)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?maybeclass"):::projected
v4("?num")
v2 --"wdt:P31"--> v3
v2 --"wdt:P279"--> v3
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4