Permalink
Branch: master
Find file Copy path
46c7dc6 Jan 23, 2019
0 contributors

Users who have contributed to this file

27 lines (16 sloc) 1.75 KB

SPARQL endpoint for Wikidata history

This repository provides a SPARQL endpoint for Wikidata history, allowing to do queries like "count the number of humans in Wikidata in 2015" or "how many contributors have added values for the sex or gender property".

A documentation page is available on Wikidata.org.

Build Status

Developer documentation

To setup a working endpoint do:

  • Compile the Java program mvn package
  • Download the Wikidata history dumps to a directory mkdir dumps && cd dumps && bash ../download_wd_history.sh. Warning: it requies around 600GB of disk.
  • Preprocess the dump to get all revision metadata and triples annotated with their insertions and deletions (takes a few days and all your CPU cores): java -server -jar target/sparql-endpoint-0.1-SNAPSHOT.jar -preprocess
  • Build database indexes: java -server -jar target/sparql-endpoint-0.1-SNAPSHOT.jar -load.
  • Start the web server java -server -classpath target/sparql-endpoint-0.1-SNAPSHOT.jar org.wikidata.history.web.Main

License

Copyright (C) 2019 Thomas Pellissier Tanon.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.