Hello,
[think this come up before, but can't find a recent thread that directly relates to this]
Are there any plans directly relate entities in Wikidata with categories in Wikidata – and avoid the duplication between all the different page languages?
For example this book:
And the English Wikipedia page is a member of this category:
Which has this Wikidata ID associated with it:
Currently we could resolve it using the following, slightly convoluted workflow:
- Get Wikidata ID and resolve to 1 (or more) Wikipedia language pages
- For each Wikipedia page, lookup a list of categories and gather together
- From each category lookup a Wikidata ID for that category page
- Remove duplicate Wikidata IDs
- Lookup each of the Wikidata IDs in Wikidata to get title/description
Going from a Wikidata Category to a list of Wikidata entities could be done in a similar way.
Is there a better way of doing this now or the near future?
nick.