-
Notifications
You must be signed in to change notification settings - Fork 35
vload
vload is a shell script that makes it a bit easier to load local RDF files into a Virtuoso triple store. It was originally created by Zhenning Shangguan for RPI's data.gov effort, but I've adopted it and added some whistles.
vload is part of the csv2rdf4lod-automation repository, so you get it with a git clone. After it is on your path, running it without arguments will show its usage:
usage: vload [--target] {rdf, ttl, nt, nq} <data_file> <graph_uri> [-v | --verbose]
running the --target flag will show you the underlying isql command that it uses, along with the port and username it will use to connect to the virtuoso server. It also shows where it will store a log:
vload --target
/opt/virtuoso
/opt/virtuoso/bin/isql 1111 dba
dba
/opt/csv2rdf4lod-automation/tmp/vload/input-files/load_2012-06-09T05_19_25-04-00_13450.log
The rest of the parameters should be self-explanatory. rdf, ttl, nt, nq is the format of the <data_file> RDF file, <graph_uri> is the graph name that the triples will be loaded into, and the -v or --verbose flag will show a bit more output (including a path to the log file, and the contents of the log).