Hi Nestor,

Hello, I'm new with Virtuoso software.

I'm using the Virtuoso 6.1 open source version for ubuntu. I'm trying to import one .nt dump file to my virtuoso server but i can't find the correct way to achieve it.

I first try it with a ISQL sentence like this:

ld_dir('/usr/share/virtuoso-opensource-6.1/vad/ dbtropes-20120211.nt','%.nt','graph');

and I get this error:

SQLState: 39000
Message: FA020: Unable to list files in '/usr/share/virtuoso- opensource-6.1/vad/dbtropes-20120211.nt':


The ld_dir command needs as first parameter a directory, not a file name, so you should call it like:

to load all .nt files in this directory:

    ld_dir ('/usr/share/virtuoso-opensource-6.1/vad', '%.nt', 'graph');

to load only one .nt file in this directory:

ld_dir ('/usr/share/virtuoso-opensource-6.1/vad', 'dbtropes-20120211.nt', 'graph');


See Also:
    http://docs.openlinksw.com/virtuoso/fn_ld_dir.html


It is not very clean to put these files into the vad directory. You should probably create a directory like:

        /usr/share/virtuoso-opensource-6.1/dumps

and put the data in there.

Note that Virtuoso has an ACL that is checked to make sure it can only open files in certain subdirectory paths, so you would also need to edit the virtuoso.ini file and in the [Parameters] section you need to change:

        DirsAllowed = ., /usr/share/virtuoso-opensource-6.1/vad

to:

DirsAllowed = ., /usr/share/virtuoso-opensource-6.1/vad, /usr/share/ virtuoso-6.1/dumps



The second way I read on Internet was trying to import files through the User Defined Types, but I get a message the following message:
This service requires MONO/CLR or Java extension servers
Concerning to this I have to say that I downloaded The Mono of Ubuntu, and tried to configure it in virtuoso.ini file like this:

[Mono]
;MONO_TRACE            = Off
MONO_PATH            = /usr/share/mono-2.0/
MONO_ROOT            = /usr/share/mono-2.0/
;MONO_CFG_DIR            = <path_here>
;virtclr.dll            =


I don't really know if I'm doing wrong this part.


There are special hosting plugins needed for either Java or Mono that tie in their runtime environment into the virtuoso binary. These are not build by default, and while the Java one is functional, the mono hosting code in virtuoso does not work with the current version of Mono.

In any case these hosting plugins are not needed to load your data into the quad store.


Patrick

Reply via email to