query-3a88a036aff1bff836c0684bc80244f0

rq turtle/ttl

Instance completeness statement to find all the classes whom wikidata seem to know it knows all the instances. This is an interesting query so I put it here : (P1114)quantity I did not realised it until know but its know possible with the query service and the  ⟩Canton de Nantes⟨  Search fully partioned by  ⟩Nantes⟨  ⟩7⟨  (P1114)quantity  ⟩Canton de Nantes⟨ 

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select (count(?instances) as ?count) ?class ?number_of_instances {
  # this query computes all the classes Wikidata seems to know all the instances 
  ?instances wdt:P31/wdt:P279* ?class .
  ?class wdt:P1114 ?number_of_instances .
} group by ?class ?number_of_instances having (?number_of_instances = ?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?class"):::projected v5("?count") v3("?instances"):::projected v1("?number_of_instances"):::projected a1((" ")) f0[["?number_of_instances = ?count"]] f0 --> v1 f0 --> v5 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> v4 v4 --"wdt:P1114"--> v1 bind2[/"count(?instances)"/] v3 --o bind2 bind2 --as--o v5