Abstract
Wikipedia articles contain multiple links connecting a subject to other pages of the encyclopedia. In Wikipedia parlance, these links are called internal links or wikilinks. We present a complete dataset of the network of internal Wikipedia links for the 9 largest language editions. The dataset contains yearly snapshots of the network and spans 17 years, from the creation of Wikipedia in 2001 to March 1st, 2018. While previous work has mostly focused on the complete hyperlink graph which includes also links automatically generated by templates, we parsed each revision of each article to track links appearing in the main text. In this way we obtained a cleaner network, discarding more than half of the links and representing all and only the links intentionally added by editors. We describe in detail how the Wikipedia dumps have been processed and the challenges we have encountered, including the need to handle special pages such as redirects, i.e., alternative article titles. We present descriptive statistics of several snapshots of this network. Finally, we propose several research opportunities that can be explored using this new dataset.
Introduction
Wikipedia is more than just a collection of articles; it is a giant "mind map" where links represent connections between concepts. However, analyzing this graph is surprisingly difficult. Most existing datasets rely on the standard Wikipedia API or database dumps, which include every single hyperlink on a page. This approach introduces significant noise, particularly from transcluded links—links automatically generated by navigation templates.
The Problem of Template Noise
As shown in Figure 1, a single navigation template can add over a hundred links to a page. These templates create massive "cliques" (groups where every page links to every other page), artificially inflating the graph's density and obscuring the actual semantic relationships intended by human editors.
In the English Wikipedia, the WikiLinkGraphs dataset contains only about 163 million links, whereas the standard PAGELINKS dump contains over 476 million for the same namespace. This means more than half of the links in standard Wikipedia datasets are "noise" generated by templates.
Methodology
To create a cleaner representation of human knowledge, we built a custom pipeline to process the full XML revision history of Wikipedia from its inception in 2001 through March 2018.
- Parsing Raw Wikitext: Instead of using rendered HTML, we used Python-based regular expressions to extract links directly from the raw "Wikitext." This allowed us to identify only the links explicitly written by editors in the main body of the text.
- Redirect Resolution: We tracked the history of every redirect page. If a link pointed to an alternative title, the system resolved it to the primary article based on the exact timestamp of the edit.
- Snapshot Generation: We produced yearly snapshots (taken every March 1st) for each language, creating a dynamic view of the network's growth.
Dataset Overview
The primary output is the WikiLinkGraphs dataset, which includes nine languages: English (en), German (de), Spanish (es), French (fr), Italian (it), Dutch (nl), Polish (pl), Russian (ru), and Swedish (sv). The dataset spans 17 years and involved processing over 1 billion revisions, resulting in a final dataset of 172 files totaling 142 GB.
Key Results and Insights
The dataset reveals a steady, near-linear growth in the number of links across most languages. As seen in Figure 2, the English Wikipedia shows the most dramatic growth, while others follow a similar upward trajectory.
By focusing on editor-added links, the graph becomes a better proxy for human knowledge organization. This is crucial for tasks like natural language processing (NLP) or training knowledge graphs. Furthermore, the results reflect cultural priorities; while "United States" is a top-ranked node across almost all languages, local culture shines through in specific editions. For example, the Swedish Wikipedia's top nodes are heavily dominated by biology and local geography, likely due to specific bot activities and community focus.
Conclusion
WikiLinkGraphs offers a high-fidelity, longitudinal view of Wikipedia's internal link structure. While the exclusion of templates is a limitation for modeling literal user navigation, it provides a significantly more "honest" graph for semantic analysis. This dataset serves as a valuable resource for researchers studying link recommendation, anomaly detection, and cross-cultural information structure.
Summary updated