SlideShare a Scribd company logo
Making the most of
Virtuoso Opensource
Tutorial @ ICBO 2013
Tutorial roadmap
Triplestores are Database Management
System for data modeled in RDF
● Optimized for triples, queryable via the
SPARQL query language
● There are three types of TripleStores:
○ Native
Persistent storage systems with their own
implementation of databases. Eg: Virtuoso
○ In Memory
RDF Graph is stored as triples in RAM Eg: Jena
○ Non-native non-memory:
Persistent storage systems setup to run on third
party DBMS Eg. Jena SDB
Managing a VOS installation for
Bio2RDF
● Each Bio2RDF dataset is loaded into a
Virtuoso Triplestore and available at its own
SPARQL endpoint
● We have developed a PHP manager script
for creating and configuring Virtuoso
installations that is publicly available at: https:
//github.com/micheldumontier/php-lib/blob/master/apps/manager.php
● Allows you to create, start, stop and change
memory requirements of multiple VOS
instances
○ manager.php is available for download here
● Requires: a tab-delimited file listing the
desired instance names and the HTTP/ISQL
ports they use
Use manager.php to configure
multiple VOS instances
● Script options
○ create : creates a virtuoso instance binary for the
specified instance name and starts it
○ start : stops, then starts the corresponding instance
of VOS
○ stop : stops the specified instance
○ refresh : creates a fresh copy of the instance's
virtuoso.ini file with default values
○ apacheconfig : create an Apache VirtualHost file
○ GB of memory to use : specifies the amount of
RAM that an instance can use in GB
manager.php cli options
Set up manager.php
● Set the location of local virtuoso installation
○ $virtuoso_dir = '/usr/local/virtuoso-opensource';
● Set the location of your base directory
○ $base_dir = '/media/320/bio2rdf/manager';
● Set the sub-directory where the virtuoso
instances will live
○ $instance_dir = $base_dir.'/virtuoso';
● Set the location of the instances.tab file
○ $instance_file = $base_dir.'/instances.tab';
make sure you have appropriate permissions to create
target directories
Live demo -> Using manager.php
Load Bio2RDF data into your VOS
endpoint
● Loading data into a VOS endpoint can be
done using web interface (Conductor) or
ISQL:
○ http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtBulkRDFLoader
● You can also use the Bio2RDF loader script
to load RDF into an endpoint
○ uses a tab-delimited instances file to specify VOS
instance to load into
○ can load single files or recursively load files inside a
given directory
○ will record loading errors/incorrectly formatted RDF
○ will re-try a certain number of times to reload data on
error
loader.php cli options
● Script options
○ file: file to load
○ dir: directory of files to load
○ graph: name of graph to load into
○ instance: instance name from tab-delimited
○ port: ISQL port of VOS instance
○ user: username for VOS instance (default: dba)
○ pass: password for VOS instance (default: dba)
Using loader.php
● Script options cont'd:
○ threads: number of threads to use when loading
○ updatefacet: update VOS faceted browser
(true|false)
○ deletegraph: delete graph before loading
(true|false)
○ deleteonly: delete graph without loading (true|false)
○ setns: set namespaces for faceted browser
○ setpassword: set password for VOS conductor
○ format: format of RDF being loaded (default: N3)
○ ignoreerror: ignore RDF format errors (true|false)
Using loader.php with Bio2RDF
DrugBank data
● Live demo -> load Drugbank into your newly
installed VOS instance
How to install Virtuoso Opensource
1. Download VOS 6.1.6 binary from here
available via github: https://github.
com/openlink/virtuoso-opensource
2. Verify that you have installed these
packages
3. Uncompress the VOS binary, cd into that
directory and run:
○ ./autotogen.sh (to prepare for building)
○ Set the appropriate compiler flags
○ ./configure ( > 20 minutes)
4. Install VOS by running:
○ sudo make install
■ install location: /usr/local/virtuoso-opensource
How to build OpenLink Virtuoso
OS: Ubuntu
Reference: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSMake#Requirements
VOS Post-installation setup
1. Go to your installation directory and copy
○ var/lib/virtuoso/db/virtuoso.ini to bin/virtuoso.ini
2. Allow virtuoso to read other (or all) directories in your
filesystem
○ Edit virtuoso.ini and add '/' at the end of DirsAllowed
■ see example here
3. Start your virtuoso instance by running:
○ sudo ./virtuoso-t -f & (run from /usr/local/virtuoso-opensource/bin)
○ visit http://localhost:8890/conductor and login with default credentials:
user:dba, pass:dba
4. Install Faceted Browser
○ Go to System Admin -> Packages, select the fct package and click on
Install/Upgrade -> proceed
○ Verify that http://localhost:8890/fct responds
Reference: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main#How Do I...

More Related Content

PDF
Narcissus — mapping configs in Go
PDF
Redis, a 2 minutes introduction
PDF
Fosdem i inne konferencje
KEY
Serving Images with GridFS
PDF
Backup UUASC 9/6/12
PPTX
VeloxDFS
PPTX
Redis fundamental
PPTX
PostgreSQL 9.5 Foreign Data Wrappers
Narcissus — mapping configs in Go
Redis, a 2 minutes introduction
Fosdem i inne konferencje
Serving Images with GridFS
Backup UUASC 9/6/12
VeloxDFS
Redis fundamental
PostgreSQL 9.5 Foreign Data Wrappers

What's hot (17)

PDF
Development of the irods rados plugin @ iRODS User group meeting 2014
PDF
Distributed Data Processing Workshop - SBU
PDF
curl --http3 cheatsheet
PDF
Containers from scratch
PDF
MongoDB Shard Cluster
PDF
How do i Meet MongoDB
PPT
Mysql cluster
PDF
Mac OS X Lion で作る WordPress local 環境
ODP
PFcache (Linuxcon, Seattle, 2015)
ODP
Denser containers with PF cache - Pavel Emelyanov
PDF
PFcache - LinuxCon 2015
PDF
Tech talk Introduction to containers
PPTX
Drupal Coding Standards - do and don't
PPTX
Mongo db cluster administration and Shredded Databases
PDF
GlusterFS Talk for CentOS Dojo Bangalore
PPTX
Node js Lunch and learn: Session 2
TXT
Development of the irods rados plugin @ iRODS User group meeting 2014
Distributed Data Processing Workshop - SBU
curl --http3 cheatsheet
Containers from scratch
MongoDB Shard Cluster
How do i Meet MongoDB
Mysql cluster
Mac OS X Lion で作る WordPress local 環境
PFcache (Linuxcon, Seattle, 2015)
Denser containers with PF cache - Pavel Emelyanov
PFcache - LinuxCon 2015
Tech talk Introduction to containers
Drupal Coding Standards - do and don't
Mongo db cluster administration and Shredded Databases
GlusterFS Talk for CentOS Dojo Bangalore
Node js Lunch and learn: Session 2
Ad

Viewers also liked (20)

PDF
Build, host and manage your custom API in less than an hour
ODP
Email Delivery Support
PPT
LWB486 Week 6 Copyright
PPT
Social media in a public library
PDF
API Strategy & Practice - API Discovery, Hubs and IDEs
PPTX
Pesan dan Bekal Liburan Semester Untuk Santri
PDF
Docker wjax2014
PPT
Everest 2003 North Face Rescue
PDF
Info literacy and social media in a public library
PPTX
Chardi Kala
PPT
Uncovering Windows - Silverlight Seminar
PPT
Nilai nilai Aqidah
PPT
RIM Conference
PPTX
Smallbizdaily 2016 Hot Slides
PPTX
System analysis to Cellular Respiration
PPS
Simplethings
PDF
APIdays 2015 - The State of Web API Languages
PPT
ข้อมูลพรรณไม้
PPT
Clutrain Ppt
PDF
20140527 - APIcon SF - Workshop #2 - Document and manage Java-based web APIs
Build, host and manage your custom API in less than an hour
Email Delivery Support
LWB486 Week 6 Copyright
Social media in a public library
API Strategy & Practice - API Discovery, Hubs and IDEs
Pesan dan Bekal Liburan Semester Untuk Santri
Docker wjax2014
Everest 2003 North Face Rescue
Info literacy and social media in a public library
Chardi Kala
Uncovering Windows - Silverlight Seminar
Nilai nilai Aqidah
RIM Conference
Smallbizdaily 2016 Hot Slides
System analysis to Cellular Respiration
Simplethings
APIdays 2015 - The State of Web API Languages
ข้อมูลพรรณไม้
Clutrain Ppt
20140527 - APIcon SF - Workshop #2 - Document and manage Java-based web APIs
Ad

Similar to Bio2RDF - Make the most of Virtuoso Open Source (20)

PDF
Magento Docker Setup.pdf
PDF
Crikeycon 2019 Velociraptor Workshop
PDF
CloudOpen North America 2013: Vagrant & CFEngine
PDF
Scaling PHP apps
PDF
Introduction to Docker storage, volume and image
PPTX
PHP development with Docker
PDF
Doctrine Project
PDF
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
PDF
Velero search & practice 20210609
PDF
Itb2018 cf apps to dev to production with command box cf-config docker
PDF
Vagrant - Team Development made easy
PDF
Medooze MCU Video Multiconference Server Installation and configuration guide...
PDF
Into The Box 2018 | Content box + docker
ODP
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
PDF
PHP selber bauen
PDF
ITB2019 Scaling with CommandBox in Production! - Brad Wood
PPTX
Custom Buildpacks and Data Services
PDF
Jfrog artifactory as private docker registry
PDF
Caching with Varnish
PDF
How to become cloud backup provider with Cloudian HyperStore and CloudBerry L...
Magento Docker Setup.pdf
Crikeycon 2019 Velociraptor Workshop
CloudOpen North America 2013: Vagrant & CFEngine
Scaling PHP apps
Introduction to Docker storage, volume and image
PHP development with Docker
Doctrine Project
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Velero search & practice 20210609
Itb2018 cf apps to dev to production with command box cf-config docker
Vagrant - Team Development made easy
Medooze MCU Video Multiconference Server Installation and configuration guide...
Into The Box 2018 | Content box + docker
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
PHP selber bauen
ITB2019 Scaling with CommandBox in Production! - Brad Wood
Custom Buildpacks and Data Services
Jfrog artifactory as private docker registry
Caching with Varnish
How to become cloud backup provider with Cloudian HyperStore and CloudBerry L...

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Electronic commerce courselecture one. Pdf
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Electronic commerce courselecture one. Pdf
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
sap open course for s4hana steps from ECC to s4
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars

Bio2RDF - Make the most of Virtuoso Open Source

  • 1. Making the most of Virtuoso Opensource Tutorial @ ICBO 2013
  • 3. Triplestores are Database Management System for data modeled in RDF ● Optimized for triples, queryable via the SPARQL query language ● There are three types of TripleStores: ○ Native Persistent storage systems with their own implementation of databases. Eg: Virtuoso ○ In Memory RDF Graph is stored as triples in RAM Eg: Jena ○ Non-native non-memory: Persistent storage systems setup to run on third party DBMS Eg. Jena SDB
  • 4. Managing a VOS installation for Bio2RDF ● Each Bio2RDF dataset is loaded into a Virtuoso Triplestore and available at its own SPARQL endpoint ● We have developed a PHP manager script for creating and configuring Virtuoso installations that is publicly available at: https: //github.com/micheldumontier/php-lib/blob/master/apps/manager.php
  • 5. ● Allows you to create, start, stop and change memory requirements of multiple VOS instances ○ manager.php is available for download here ● Requires: a tab-delimited file listing the desired instance names and the HTTP/ISQL ports they use Use manager.php to configure multiple VOS instances
  • 6. ● Script options ○ create : creates a virtuoso instance binary for the specified instance name and starts it ○ start : stops, then starts the corresponding instance of VOS ○ stop : stops the specified instance ○ refresh : creates a fresh copy of the instance's virtuoso.ini file with default values ○ apacheconfig : create an Apache VirtualHost file ○ GB of memory to use : specifies the amount of RAM that an instance can use in GB manager.php cli options
  • 7. Set up manager.php ● Set the location of local virtuoso installation ○ $virtuoso_dir = '/usr/local/virtuoso-opensource'; ● Set the location of your base directory ○ $base_dir = '/media/320/bio2rdf/manager'; ● Set the sub-directory where the virtuoso instances will live ○ $instance_dir = $base_dir.'/virtuoso'; ● Set the location of the instances.tab file ○ $instance_file = $base_dir.'/instances.tab'; make sure you have appropriate permissions to create target directories Live demo -> Using manager.php
  • 8. Load Bio2RDF data into your VOS endpoint ● Loading data into a VOS endpoint can be done using web interface (Conductor) or ISQL: ○ http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtBulkRDFLoader ● You can also use the Bio2RDF loader script to load RDF into an endpoint ○ uses a tab-delimited instances file to specify VOS instance to load into ○ can load single files or recursively load files inside a given directory ○ will record loading errors/incorrectly formatted RDF ○ will re-try a certain number of times to reload data on error
  • 9. loader.php cli options ● Script options ○ file: file to load ○ dir: directory of files to load ○ graph: name of graph to load into ○ instance: instance name from tab-delimited ○ port: ISQL port of VOS instance ○ user: username for VOS instance (default: dba) ○ pass: password for VOS instance (default: dba)
  • 10. Using loader.php ● Script options cont'd: ○ threads: number of threads to use when loading ○ updatefacet: update VOS faceted browser (true|false) ○ deletegraph: delete graph before loading (true|false) ○ deleteonly: delete graph without loading (true|false) ○ setns: set namespaces for faceted browser ○ setpassword: set password for VOS conductor ○ format: format of RDF being loaded (default: N3) ○ ignoreerror: ignore RDF format errors (true|false)
  • 11. Using loader.php with Bio2RDF DrugBank data ● Live demo -> load Drugbank into your newly installed VOS instance
  • 12. How to install Virtuoso Opensource
  • 13. 1. Download VOS 6.1.6 binary from here available via github: https://github. com/openlink/virtuoso-opensource 2. Verify that you have installed these packages 3. Uncompress the VOS binary, cd into that directory and run: ○ ./autotogen.sh (to prepare for building) ○ Set the appropriate compiler flags ○ ./configure ( > 20 minutes) 4. Install VOS by running: ○ sudo make install ■ install location: /usr/local/virtuoso-opensource How to build OpenLink Virtuoso OS: Ubuntu Reference: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSMake#Requirements
  • 14. VOS Post-installation setup 1. Go to your installation directory and copy ○ var/lib/virtuoso/db/virtuoso.ini to bin/virtuoso.ini 2. Allow virtuoso to read other (or all) directories in your filesystem ○ Edit virtuoso.ini and add '/' at the end of DirsAllowed ■ see example here 3. Start your virtuoso instance by running: ○ sudo ./virtuoso-t -f & (run from /usr/local/virtuoso-opensource/bin) ○ visit http://localhost:8890/conductor and login with default credentials: user:dba, pass:dba 4. Install Faceted Browser ○ Go to System Admin -> Packages, select the fct package and click on Install/Upgrade -> proceed ○ Verify that http://localhost:8890/fct responds Reference: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main#How Do I...