Giter Club home page Giter Club logo

dbpedia-databus-collection-downloader's Introduction

DBpedia Databus Collection Downloader

This is a light-weight dockerized data-downloader for the DBpedia Databus. This container takes a collection URI and pulls its data to a local directory. It does not support any format or compression conversion. If your application requires conversion, please check the Databus Client.

Run the container with the following two environment variables:

  • TARGET_DIR: The target directory for the downloaded files
  • COLLECTION_URI: A collection URI on the DBpedia Databus

In order to retrieve the downloaded files on your local machine you should mount a volume to the specified TARGET_DIR.

Docker Image

You can find the docker image on Docker Hub here or build it yourself by running

docker build -t databus-download-min .

in the projects root directory.

Lock File

In order to make this container interoperable with others, the process creates a download.lck file in the TARGET_DIR (defaults to /root/data/) directory on startup and removes it once the download has finished. Other containers with access to the mounted folder can check if this file exists to wait for the download process to terminate.

Example

The docker-compose.yml in this repo shows an example configuration.

version: "3.0"
services:
  databus-download:
    image: dbpedia/dbpedia-databus-collection-downloader:latest
    environment:
      COLLECTION_URI: https://databus.dbpedia.org/dbpedia/collections/latest-core
      TARGET_DIR: /root/data
    volumes:
      - ./download:/root/data

This configuration will download the DBpedia Latest Core release into a ./download folder next to your docker-compose.yml In order to access the files on your local machine you should mount a volume to the TARGET_DIR folder.

Start the download by running

docker-compose up

dbpedia-databus-collection-downloader's People

Contributors

holycrab13 avatar jj-author avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.