Skip to content

ternary-base/DBpedia-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple DBpedia Docker Container

This repository contains all files needed to build a Virtuoso Open Source instance preloaded with the latest DBpedia dataset inside a Docker container.

Running

Warning!

Running Virtuoso with DBpedia requires significant resources. Make sure you have at least 80 Gb of free disk space! It is also recommended to run it on system that has at least 16 Gb of RAM.

To start the local version of DBpedia simply execute:

$ docker run -p 8890:8890 -e DEFAULT_GRAPH=http://dbpedia.org -d aksw/dbpedia

This will spawn a local Virtuoso instance with DBpedia and link the port 8890 to your Docker host. Which will allow you to navigate to http://localhost:8890/sparql to see the SPARQL endpoint with DBpedia data.

If you have not followed build instructions below and don't have aksw/dbpedia image locally, it will be downloaded from Docker Hub. Pre-built container includes only core and English data for DBpedia, so if you need additional languages - you will have to build it yourself.

Building

Warning!

Building Virtuoso with DBpedia requires significant resources. Make sure you have at least 150 Gb of free disk space! It is also recommended to run it on system that has at least 64 Gb of RAM. It might take several days to finish, so it is recommended to execute build process on a standalone server.

To build your own container you have do the following. First, download, unpack and prepare required DBpedia files by executing:

$ make prepare

Then, start new virtuoso instance by executing:

$ make virtuoso

Finally, start import procedure by executing:

$ make import

As noted in the warning, the import procedure might take up to several days depending on the hardware you are using.

Additional languages

Currently Makefile and import scripts will only download and import core and English DBpedia files. If you wish to add more languages, you'll need to edit download, unpack and move targets in Makefile as well as list of imported folders in virtuoso/import.sh file.

About

Simple DBpedia Docker Container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 49.8%
  • Makefile 47.8%
  • Dockerfile 2.4%