Loading data into Virtuoso (Docker)
Requirements
Execution
Get docker-compose.yml
version: '3.5'
services:
db:
image: tenforce/virtuoso
ports:
- 8895:8890
volumes:
- toLoad:/data/toLoad
entrypoint: >
bash -c 'while [ ! -f /data/toLoad/complete ]; do sleep 1; done
&& rm -f /data/toLoad/complete && bash /virtuoso.sh'
# To change the file query: Mount an external query
# file under volumes between host and container
# and apply internal path as environment variable.
databus_client:
image: dbpedia/databus-client:latest
environment:
- SOURCE=/databus-client/query.sparql
- ENDPOINT=https://dev.databus.dbpedia.org/sparql
- COMPRESSION=gz
volumes:
- ./myQuery.sparql:/databus-client/query.sparql
- toLoad:/var/toLoad
entrypoint: >
bash -c 'bash /databus-client/entrypoint.sh
&& mv -t /var/toLoad $$(find /var/repo -name "*.gz");
touch /var/toLoad/complete'
volumes:
toLoad:Select your desired data
Start Containers
Useful commands
Last updated