Using DBpedia offline / Setup own SPARQL endpoint

Hi,
I would like to ask you that if it would be possible to download dbpedia as a completely offline tool and writing queries in SPARQL. I have already used the www.dbpedia.org/sparql writing SPARQL queries and I am fairly familiar with the endpoints.

If that’s possible:

  • Are there any requirements?
  • Is there any guide on how to achieve that?
  • What technologies would be involved?

Thanks.

Hi and welcome to the forums!
You can use this: https://github.com/dbpedia/Dockerized-DBpedia

Requirements are Git and Docker. You will have to

  • Clone the repo and build the docker image
  • Adjust the docker-compose.yml
  • Run the docker with docker-compose

The configuration steps are all documented in the repo. If anything is unclear feel free to ask! For an english dockerized dbpedia this config should get you started:

version: '3'
services:
  download:
    image: dbpedia/minimal-download-client:latest
    environment:
      COLLECTION_URI: https://databus.dbpedia.org/dbpedia/collections/pre-release-2019-08-30
      TARGET_DIR: /root/data
    volumes:
      - ./downloads:/root/data
  store:
    image: openlink/virtuoso-opensource-7
    ports: ["8891:8890","1111:1111"]
    environment:
      DBA_PASSWORD: dbpedia
    volumes:
      - ./virtuoso-db:/opt/virtuoso-opensource/database
      - ./downloads:/usr/share/proj 
  load:
    image: dbpedia-virtuoso-loader:latest
    environment:
      STORE_DATA_DIR: /usr/share/proj
      STORE_DBA_PASSWORD: dbpedia
      DATA_DIR: /root/data
      DOMAIN: http://dbpedia.org
    volumes:
      - ./downloads:/root/data

Once the docker is running you can send your queries to localhost:9981/sparql

1 Like