Page MenuHomePhabricator

Category graph is missing lots of categories
Closed, DuplicatePublic

Description

I’ve only looked at this sporadically so far, but the category graph in the Wikidata Query Service seems to be missing a lot of categories. For example:

SELECT * WHERE {
  SERVICE <https://query.wikidata.org/bigdata/namespace/categories/sparql> {
    BIND(<https://commons.wikimedia.org/wiki/Category:Wikimedia_Foundation_projects> AS ?category)
    ?category mediawiki:subcategories ?subcategories.
    ?subcategory mediawiki:isInCategory ?category.
  }
}

That’s only six subcateries, rather than the 25 indicated by the mediawiki:subcategories triple (which matches the number on the category page).