arXiv:2609.08508cs.DBSep 2026

Manuscript Offprint

arXiv:2609.08508

WiDiff: Extracting Changes from Wikidata's Edit History

Carolina Cortés, Lisa Ehrlinger, Lorena Etcheverry, Felix Naumann

Carolina Cortés¹[0009–0002–9539–4796], Lisa Ehrlinger¹[0000–0001–5313–0368], Lorena Etcheverry²[0000–0001–8121–8076], and Felix Naumann¹[0000–0002–4483–1389]

¹ Hasso Plattner Institute, Potsdam, Germany

² Facultad de Ingeniería, Montevideo, Uruguay

Abstract. Knowledge graphs have become a key resource for integrating heterogeneous data and powering downstream tasks such as question answering, entity linking, and semantic search. They are built and maintained incrementally, either (i) fully automated, e.g., YAGO, (ii) semi-automatically with community oversight, e.g., DBpedia, or (iii) manually through collaborative editing, e.g., Wikidata. Understanding the evolution of knowledge graphs is essential as changes may reflect real-world updates, error corrections, or noise introduced by vandalism, all of which affect the reliability of downstream applications. Among openly available knowledge graphs, Wikidata is the most challenging case to study evolution, with over 120 million entities edited by humans and bots and an edit history spanning more than a decade. Although Wikidata exposes change data in various formats (e.g., periodic dumps and real-time event streams), none support analytical queries over the complete edit history. Therefore, we present WiDiff, a tool that extracts changes from Wikidata's complete edit history and provides a unified interface for large-scale analytical queries over it.

Keywords: Change · Evolution · Knowledge Graphs · Wikidata

1 Introduction

Knowledge Graphs (KGs) have become the foundation for a range of downstream tasks, such as information retrieval and question answering [19]. Real-world KGs are constantly changing on both data and schema levels, e.g., facts are updated or properties are created. These changes are driven by different motivations, such as reflecting real-world events (adding the results of a recent election) or correcting data errors. Left unmanaged, such changes can introduce inconsistencies and contradictions that hinder the analysis and reuse of KGs [10, 15].

Wikidata. Wikidata is a collaborative KG launched by the Wikimedia Foundation in 2012 [21]. As of August 2025, it represents more than 120 million items, more than 2 billion edits have been made since its start³, and it continuously

³ https://www.wikidata.org/wiki/Wikidata:Statistics

C. Cortés et al.

receives between 300 and 1 100 edits per minute⁴ from both humans and bots. Given this collaborative nature, the edits made to Wikidata are diverse in nature and motivation: some edits reflect real-world changes, others are made to improve data quality, or they may also be caused by vandalism and editorial disagreement over how facts should be represented. Although Wikidata provides access to change data in various formats (e.g., periodic dumps⁵ and real-time event streams⁶), none of these formats supports analytical queries over the complete edit history.

Related work and research gap. The study of evolving KGs has been identified as an open problem by Polleres et al. [16], who discuss the different dimensions of KG evolution, metrics to measure evolution over time and tools and techniques to store and process evolving KGs. In particular, they identify the need for storage solutions for dynamic and versioned graphs to enable different kinds of analysis as future work. Bleifuß et al. [5] propose a formal model for storing and querying database changes and a tool that implements them [8], which has been evaluated on several datasets, such as Wikipedia infoboxes and DBLP and serves as basis for our work. Käfer et al. [11] introduced the Dynamic Linked Data Observatory (DyLDO) in 2012, a framework with the original idea to weekly monitor a fixed set of linked data documents from different domains (e.g., dbpedia.org, freebase.com, or dbtune.org; but not yet Wikidata). In the meantime, DyLDO is deprecated and no longer available⁷. Schmelzeisen et al. [18] presented with Wikidated 1.0, a dataset of Wikidata's edit history that stores changes between revisions of an entity as sets of triple deletions and additions in Resource Description Framework (RDF), spanning all revisions from 2012 to 2020. However, the dataset has not been publicly released despite being promised on the GitHub repository⁸, and the code has not been updated since 2022. Finally, Tanon et al. [13] proposed a system to index Wikidata revisions, enabling the querying of Wikidata's edit history through a SPARQL endpoint. For this, data is stored in the key-value store RocksDB ⁹, and indexes are created on top of this database to enable efficient SPARQL querying. Moreover, due to storage space constraints, their system was demonstrated only for direct claim relations. The endpoint is no longer available¹⁰.

In summary, none of these works [11, 18, 13] provides an up-to-date and maintained tool or dataset that supports large-scale queries over Wikidata's entire edit history.

Contribution. We address this gap with WiDiff, an open-source tool¹¹ that extracts the complete edit history of Wikidata and provides a unified interface

⁴ https://wikitech.wikimedia.org/wiki/WMDE/Wikidata/Growth#Edit_rate ⁵ https://www.wikidata.org/wiki/Wikidata:Database_download ⁶ https://www.mediawiki.org/wiki/EventStreams ⁷ http://swse.deri.org/dyldo/ ⁸ https://github.com/lschmelzeisen/wikidated ⁹ https://rocksdb.org/ ¹⁰ https://wdhqs.wmflabs.org/ ¹¹ Code available at https://github.com/carocortes/WiDiff for large-scale analytical queries. The changed data extracted with WiDiff is publicly available at [9].

Use cases. WiDiff provides a pipeline for automatically extracting changes from Wikidata, enabling several use cases. For instance, the edit history can be leveraged for data quality assessment by tracking how quality has evolved over time, helping identify properties or entity types with persistent quality issues and pinpointing areas where editorial intervention is most needed. Furthermore, the edit history can be used for knowledge graph evolution, for instance, to study how coverage across different domains (e.g., scientific articles, cultural heritage) has grown over time, helping identify underrepresented or poorly maintained communities. Finally, the edit history can be leveraged for edit suggestions, building on similar approaches developed for Wikipedia tables [6], where recommendation rules can be derived from the edit history.

Outline. Section 2 introduces the data structure of Wikidata for our subsequent work, while Section 3 introduces terminology used throughout the paper. Section 4 describes our change data model and Section 5 describes the data extraction process carried out by WiDiff. Finally, Section 6 presents the dataset obtained with WiDiff along with processing information, and Section 7 presents insights into Wikidata's change activity. Section 8 concludes the paper with an outlook on future work.