Configuring Virtuoso - ewpatton/collustra GitHub Wiki

Access the Virtuoso Conductor interface in your browser. This is usually at http://localhost:8890/. You will then need to access the Virtuoso Conductor interface.

Select conductor in the Virtuoso interface.

Once you enter the Conductor, you will need to log in. By default, the username and password for the Virtuoso database is 'dba' (fill in both fields). If you are hosting Virtuoso in a production environment it is imperative to change this!

Enter a username and password. The default is dba:dba

Configuring Cross-Origin Resource Sharing

The first step we need to accomplish is to enable Virtuoso to serve up content with Cross-Origin Resource Sharing (CORS) headers. The following diagram highlights how to access the appropriate settings area.

Screenshot of the Virtuoso Conductor's Web Application Server page

  1. In the header area of the Conductor, select the "Web Application Server" heading.
  2. Select "Virtual Domains & Subdirectories"
  3. Expand the virtual domain for 0.0.0.0 and locate the /sparql entry. Click on the edit link.

This will bring you to a new screen where you can set a number of options for how this URL works in Virtuoso. You will want to locate the settings for Cross-Origin Resource Sharing. For our purposes, you will want to set this to '*', which means that any service will be allowed to access the Virtuoso endpoint. You may want to be more specific in a production environment to prevent DDOS-like attacks.

Cross-Origin Resource Sharing setting in Virtuoso Conductor

Loading SPIN Sample Queries

Virtuos Linked Data Graph Upload interface

  1. Select the "Linked Data" heading in the navigation menu.
  2. Select the "Quad Store Upload" to access a file upload form.
  3. Select a file containing a SPIN query. You may need to rename the file to include a .ttl extension for Virtuoso to accept it.
  4. Click the "Upload" button to upload the file to the server. If the upload is not successful you will receive an error. You can verify that the upload worked by navigating to the SPARQL interface and running the following query:
PREFIX sp: <http://spinrdf.org/sp#>
SELECT * WHERE { ?query a sp:Query }