(note (code cslai))

Setting Up Virtuoso for Redland Under Ubuntu

Just a quick update to the previous post, the virtuoso storage engine works with redland provided the required packages are properly installed (yes, yes, yes, I know I haven’t release my PHP OO wrapper for Redland). Now that the package is installed, we need to do some configuration so that Redland can use it.

Installing Virtuoso

Just a quick update to the previous post, the virtuoso storage engine works with redland provided the required packages are properly installed (yes, yes, yes, I know I haven’t release my PHP OO wrapper for Redland). Now that the package is installed, we need to do some configuration so that Redland can use it.

Running Virtuoso

virtuoso-opensource and unixodbc-dev would have to be installed before virtuoso database can be started. After installing the required packages, make a copy of virtuoso.ini from /etc/virtuoso-opensource-6.1/virtuoso.ini to the directory where you want virtuoso to store the database.


$ mkdir foo
$ cp /etc/virtuoso-opensource-6.1/virtuoso.ini foo

Edit the ini file as desired, just make sure the configured ports aren’t being used by other processes (by default, virtuoso runs at port 1111 with web interface at port 8890, so if you are running another instance of it, change the port settings). If you are not interested in running another instance of virtuoso database, you can actually skip this part.

After everything is configured, just run this command at the directory.


$ cd foo
$ virtuoso-t -fd

For more information, please refer to this quick start guide.

Setting Up ODBC

By referring to this tutorial, add these lines to /etc/odbc.ini (assuming the database name is SENSEIDB)


[SENSEIDB]
Driver = /usr/lib/odbc/virtodbc.so
Description = Sensei DB
Address = localhost:11111

Making Redland to Work With Virtuoso

Just make sure the ODBC configuration is done correctly, then follow the guide for further instructions.

Exit mobile version