Skip to content
faribafana edited this page May 2, 2014 · 7 revisions

How to install Virtuoso on VirtualBox using Vagrant

  1. Download and install VirtualBox (https://www.virtualbox.org/wiki/Downloads) and Vagrant (http://vagrantup.com) appropriate for your platform.

  2. 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

  3. 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".

Example session and trouble shooting

How to upload RDF data into Virtuoso

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.

Clone this wiki locally