Detailed installation and use of virtuoso database under Linux system

Detailed installation and use of virtuoso database under Linux system

I've been researching some things about linked data recently and needed to use an rdf database, so I came into contact with the virtuoso database. There are actually not many pitfalls in the installation. I have installed it once on Windows 10 before. This time I will install it on Ubuntu 18.04. The installation process for other Linux distributions is similar.

Download and use of virtuoso database

The open source version of the virtuoso database can be downloaded from sourceforge. I am using version 7.25. It is recommended to download the compiled generic version (the one marked in red in the download image). I encountered the problem that the openssl version does not support the version that needs to be compiled.

After downloading, unzip it to /usr/local and add the following environment variables. This allows you to start the virtuoso database service directly in the terminal without having to cd to the vituoso bin directory or add the path before starting it, which is more convenient. Edit the profile file in /etc, add export VIRTUOSO_HOME=/usr/local/virtuoso-opensource to the last line, and then add the virtuoso path ${VIRTUOSO_HOME}/bin to PATH. The paths in PATH are separated by colons. My environment variables are set as follows:

Reboot after setting the environment variables. Rename virtuoso.ini.sample in the database folder under virtuoso-openlink to virtuoso.ini. Then start the terminal, cd to the database directory, and enter virtuoso -t -fd to start the service. Enter http://localhost:8890 in the browser to enter the 8890 port web page to open its initial page. Click conductor and enter the user name and password (both are dba) to enter the database service page.

After clicking linkedata, click Quad Store Upload to load the rdf data, where FIle is the rdf data in ttl format or xml format that you need to upload (Virtuoso supports multiple formats of rdf data, not just these two). The Named Graph IRI needs to be set by you. As a test we will change it to http://localhost:8890/test. Click Upload to complete uploading the data.

Then we open Graphs and we can see the Named Graph IRI we just created.

Then we click on SPARQL to perform sparql search. Note that the Default Graph IRI needs to be set to the http://localhost:8890/test you just created.

Use of isql

Virtuoso database can use the database command management tool ISQL. Open the terminal and enter isql 1111 dba dba to enter isql. However, please note that Virtuoso's ISQL conflicts with the existing unixODBC ISQL in the system (the error message [ISQL]ERROR: Could not SQLConnect will appear), so you need to rename the isql in the bin directory of virtuoso. I renamed it to isql-v, so that you can enter isql by entering isql-v 1111 dba dba in the terminal.

Summarize

I am not very familiar with Virtuoso, and the official documentation is not very friendly. The research on linked data in China is not that popular and related resources are not easy to find. I will add more information about the rest of the Virtuoso database when I encounter them. If you have any questions during installation and use, you can ask them in the comments.

You may also be interested in:
  • Detailed tutorial on installing python3.6 and third-party libraries under Linux
  • Complete steps to install boost library under linux
  • A simple method to implement scheduled backup of MySQL database in Linux
  • Python implements the function of capturing packets and storing them in the library under Linux
  • Detailed steps for Linux to back up the database every day and delete data ten days ago
  • Solution to the problem of being unable to remotely connect to the database in Linux
  • Problems with dynamic link library loading path and search path under Linux
  • How to implement import and export mysql database commands under linux
  • How to install and configure the decompressed version of MySQL database under Linux system
  • How to use glog log library in Linux environment

<<:  mysql obtains statistical data within a specified time period

>>:  Vue imitates ElementUI's form example code

Recommend

How to use HTML form with multiple examples

Nine simple examples analyze the use of HTML form...

How to change $ to # in Linux

In this system, the # sign represents the root us...

A detailed introduction to the CSS naming specification BEM from QQtabBar

BEM from QQtabBar First of all, what does BEM mea...

Linux system repair mode (single user mode)

Table of contents Preface 1. Common bug fixes in ...

jQuery implements article collapse and expansion functions

This article example shares the specific code of ...

I have sorted out some domestic design websites that I think are good.

<br />I have compiled some domestic design w...

Use three.js to achieve cool acid style 3D page effects

This article mainly introduces how to use the Rea...

How to install MySQL 8.0 database on M1 chip (picture and text)

1. Download First of all, I would like to recomme...

Basic operation tutorial of files and permissions in centos

Preface Before we begin, we should briefly unders...

MySQL index usage instructions (single-column index and multi-column index)

1. Single column index Choosing which columns to ...

How to change the website accessed by http to https in nginx

Table of contents 1. Background 2. Prerequisites ...

JavaScript Closures Explained

Table of contents 1. What is a closure? 2. The ro...

Vue.js framework implements shopping cart function

This article shares the specific code of Vue.js f...