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: http://www.wikidata.org/wiki/Q3235393https://www.wikidata.org/wiki/Q3235393 http://en.wikipedia.org/wiki/Half_of_a_Yellow_Sunhttps://en.wikipedia.org/wiki/Half_of_a_Yellow_Sun
And the English Wikipedia page is a member of this category: http://en.wikipedia.org/wiki/Category:War_novelshttps://en.wikipedia.org/wiki/Category:War_novels
Which has this Wikidata ID associated with it: http://www.wikidata.org/wiki/Q8170055https://www.wikidata.org/wiki/Q8170055
Currently we could resolve it using the following, slightly convoluted workflow:
1. Get Wikidata ID and resolve to 1 (or more) Wikipedia language pages 2. For each Wikipedia page, lookup a list of categories and gather together 3. From each category lookup a Wikidata ID for that category page 4. Remove duplicate Wikidata IDs 5. 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.