Using Wikipedia\'s dumps I want to build a hierarchy for its categories. I have downloaded the main dump (enwiki-latest-pages-articles) and the category SQL dump (enwiki-latest-
The category hierarchy information in MediaWiki is stored in the categorylinks table, so you're going to need the categorylinks
dump.
You're also going to need the page
(not pages-articles
) dump for page id to title mapping.
Loading the dump of category links etc... to build a wikipedia hierarchy is very long (even if interesting).
I found fast path that give good result. I rely on wikipedia vital articles hierarchy. See for instance, sensimark for an example use.