Skip to content

Scripts to load and delete data from a Virtuoso docker container

Notifications You must be signed in to change notification settings

ashepherd/virtuoso-docker-isql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts to Bulk Load RDF files into Virtuoso

Virtuoso Image: tenforce/virtuoso

Sample docker-compose

version: '3'
services:
  virtuoso:
    container_name: virtuoso
    image: tenforce/virtuoso:latest
    volumes:
      - ./data:/data
      - ./scripts:/scripts
      - ./logs:/logs
    ports:
      - 8890:8890
    environment:
      DBA_PASSWORD: "<dba_pswd>"

sparql

Usage sparql [sparql_cmd] [log_file] [virtuoso_dba_password]

docker exec -it virtuoso bash -c "cd /scripts && ./sparql 'CLEAR GRAPH <http://ocean-data.org/schema/> LOAD <http://ocean-data.org/schema/rdf.owl> INTO GRAPH <http://ocean-data.org/schema/>' /logs/sparql.log/ <dba_pswd>

THe command above clears a graph and then loads RDF into a graph using SPARQL

vload

Usage: vload [virtuososo_allowed_directory] [data_file] [graph_uri] [log_file] [virtuoso_dba_password]

docker exec -it virtuoso bash -c "cd /scripts && ./vload VAD dataset.rdf http://test-vad /logs/vload.log <dba_pswd>"

The command above assumes:

  1. this script repository is mounted into the container at: /scripts
  2. the directory 'VAD' is located in the container's '/data' directory
  3. the 'dataset.rdf' file is located in '/data/VAD' directory
  4. there is a '/logs' directory in the container for creating the log files

vdelete

docker exec -it virtuoso bash -c "cd /scripts && ./vdelete http://test-vad /logs/vdelete <dba_pswd>"

About

Scripts to load and delete data from a Virtuoso docker container

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages