DBpedia-Live continuously generates zipped N-Triples files containing added/deleted triples upon its run.
This tool downloads those files and updates a local Virtuoso triple store.
DBpedia Live triple store update happens on different Named Graphs. We have the following enabled:
http://live.dbpedia.org
— contains real time extracted data from Wikipediahttp://static.dbpedia.org
— contains external datasets and data that cannot be extracted from Wikipedia but is useful to have.http://dbpedia.org/resource/classes#
— contains the up-to-date DBpedia ontologyhttp://dbpedia.org
— virtual graph group that contains all the aforementioned graphs
To create graph groups in your local Virtuoso, you can adapt and run this script.
To execute from source:
- Download the code from the repo
git clone https://github.com/dbpedia/dbpedia-live-mirror.git
- Set up your Virtuoso instance and
mirror-live.ini
file. - Download and load the latest dump
- Copy
lastDownloadDate.dat.default
tolastDownloadDate.dat
, and adapt the date according to the dump file - Run one of the scripts in the
bin/
foldersh bin/liveSync.sh
— applies existing triple patches and waits until new ones get publishedsh bin/liveSyncOnce.sh Onetime
— applies existing triple patches and exits.sh bin/ontologySync.sh
— keeps the DBpedia ontology up-to-datesh bin/ontologySync.sh Onetime
— updates the DBpedia ontology to the latest version and exists
Jar files are not distributed at the moment but will be made available on request.
- Maven 3
- Java 7