Project content credit: Sebastian Hellmann
Wikimedia publishes their dumps via https://dumps.wikimedia.org . At the moment, these dumps are described via HTML, so the HTML serves as the metadata and it is required to parse to identify whether new dumps are available. To automate retrieval of data, the Databus (and also MOSS as its extension Databus and MOSS – Search over a flexible, multi-domain, multi-repository metadata catalog) has a metadata knowledge graph, where one can do queries like “check whether a new version of x is available”. Since DBpedia uses the dumps to create knowledge graphs, it would be good to put the download links for the dumps and the metadata on the Databus.
- Build a docker image that we can run daily on our infrastructure to crawl dumps.wikimedia.org and identify all new finished dumps, then add a new record on the Databus.
- Goal is to allow checking for new dumps via SPARQL. go to OIDC Form_Post Response , then example queries, then “Latest version of artifact”.
- this would help us to 1. track new releases from wikimedia, so the core team and the community can more systematically convert them to RDF as well as to 2. build more solid applications on top, i.e. DIEF or other
- process wise I would think that having an early prototype is necessary and then plan iterations from this.
- Python 3.13.0
- Git
- WSL (Optional, for Linux-based environment support)
Make sure to fork the repository first, then clone your fork:
git clone https://github.com/YOUR_USERNAME/wikimedia-dumps.git
cd wikimedia-dumpsEnsure you are on the development branch:
git checkout devMake sure your working directory ends with wikimedia-dumps:
pwd # should end with /wikimedia-dumpsCreate and activate a virtual environment, then install dependencies:
python -m venv .venv
source .venv/bin/activate # For Linux/macOS or WSL
# .venv\Scripts\activate # For Windows
pip install -r requirements.txtStarting the Wikimedia dumps crawler script:
python wiki_dumps_crawler.pyDATABUS_API_KEY='your-api-key'
After the crawler finishes, all discovered links are saved in the crawled.txt file.
To start the publishing process, run:
python wikimedia_publish.py