-
Notifications
You must be signed in to change notification settings - Fork 30
How to
-
Download and install VirtualBox (https://www.virtualbox.org/wiki/Downloads) and Vagrant (http://vagrantup.com) appropriate for your platform.
-
Install additional vagrant plugins and initialize a virtual box
% vagrant plugin install vagrant-berkshelf --plugin-version=2.0.1
% vagrant init hashicorp/precise32
% vagrant up
This installs a fully functional VirtualBox running Ubuntu 12.04 LTS 32-bit. You can SSH into the machine by typing "vagrant ssh" and pause the machine by typing "vagrant halt" on the commandline
% vagrant ssh -
Once in virtual box, install Virtuoso
% sudo apt-get update
% sudo apt-get install virtuoso-opensource
The database is accessible on http://192.168.33.10:8890/ with the SPARQL endpoint http://192.168.33.10:8890/sparql/ . You can explore further http://192.168.33.10:8890/conductor/ by logging in as dba/dba. It also installs iqsql commandline interface. You can run it by typing "isql-vt".
One way is explained very well on https://github.com/ni-/ni-dm/wiki/Working-with-Virtuoso-ISQL. Another way is as follows (using isql-vt interface):
SQL> SPARQL LOAD file:///fullpath-to-rdf-file.ttl INTO http://example-graph.org;
Note that fullpath is relative to Virtuoso web root directory e.g. /var/lib/virtuoso-opensource-6.1/vsp. So you need to create a directory e.g. /var/lib/virtuoso-opensource-6.1/vsp/data and have your turtle rdf files there.