DBpedia Development Wiki devilopment bible

Edit this page with Git

DBpedia Live Mirror

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.

Virtuoso (Enterprise or Open Source) Setup

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 Wikipedia
  • http://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 ontology
  • http://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.

Execution

To execute from source:

  1. Download the code from the repo
    git clone https://github.com/dbpedia/dbpedia-live-mirror.git
    
  2. Set up your Virtuoso instance and mirror-live.ini file.
  3. Download and load the latest dump
  4. Copy lastDownloadDate.dat.default to lastDownloadDate.dat, and adapt the date according to the dump file
  5. Run one of the scripts in the bin/ folder
    • sh bin/liveSync.sh — applies existing triple patches and waits until new ones get published
    • sh bin/liveSyncOnce.sh Onetime — applies existing triple patches and exits.
    • sh bin/ontologySync.sh — keeps the DBpedia ontology up-to-date
    • sh 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.

Dependencies

  • Maven 3
  • Java 7

Contact

DBpedia Developers mailing list