Re: [Virtuoso-users] Problems dumping bnodes and loading complex ontology

2011-04-01 Thread Hugh Williams

Roberto,

On 30 Mar 2011, at 15:24, Roberto García wrote:

> Hi Hugh,
> 
> Thanks for your response.
> 
>> Note, there is a later Virtuoso snapshot build available from the following 
>> FTP server location:
>> 
>>
>> ftp://download.openlinksw.com/support/vos/virtuoso-opensource-6-20110308.tar.gz
> 
> I have installed and tested it.

[Hugh] I presume you would have seen the official 6.1.3 archive is now 
available for download from source forge.

> 
>> The Virtuoso SPARQL endpoint does provide and option to serialize results as 
>> RDF/XML that you could trying using, see:
>> 
>>
>> http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsparqlprotocolendpoint
> 
> Yes, I've been able to dump a proper version of the graph using this.
> However, the dump_one_graph method continues generating invalid blank
> nodes.

[Hugh] So you are encountering this issue using the dump graphs method detailed 
at:


http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtDumpLoadRdfGraphs

If so, can you provide some sample data we can load to recreate this ?

> 
>> To use the virtjdbc4.jar, simply include it in your classpath rather then 
>> using the virtjdbc3.jar, when compiling and running the program ...
> 
> It complains about jdbc3 classes and packages. As I see in the Jena
> connector source code, it is linked against JDBC3 classes so I assume
> that it shouldn't work with JDBC4. Or is there another implementation
> of the Jena connector using JDBC4? I've been unable to find it in the
> 20110308 package.
> 
> Finally, I continue experiencing many mysterious "Tag NNN"  exceptions
> and other more specific like:
> java.lang.Error: java.lang.ClassCastException:java.lang.Short cannot
> be cast to openlink.util.Vector
>   virtuoso.jdbc3.VirtuosoConnection.read_request(Unknown Source)
>   virtuoso.jdbc3.VirtuosoFuture.nextResult(Unknown Source)
>   virtuoso.jdbc3.VirtuosoStatement.close(Unknown Source)
>   virtuoso.jena.driver.VirtuosoQueryExecution.close(Unknown Source)
>   
> net.rhizomik.rhizomer.store.virtuoso.VirtuosoStore.query(VirtuosoStore.java:185)
> 
> I'm using ARQ 2.8.7 and also teste ARQ 2.8.6. Should I use an older
> version of Jena ARQ or this is due to another problem?

[Hugh] My mistake the Jena provider is bound to the virtjdbc3 driver, we are 
planning to update it to use the virtjdbc4 driver.  I have corrected the 
documentation which implied it could be used with the virtjdbc4 driver also.  
Do do you have a test program we can compile locally to recreate this issue as 
the virtjdbc3 driver should work (simply updating to use virtjdbc4 is not 
likely to resolve it). It seems there is a problem returning the  data in the 
result set ?

Regards
Hugh

> 
> Best,
> 
> Roberto
> 
> --
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself; 
> WebMatrix provides all the features you need to develop and 
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users




Re: [Virtuoso-users] Problems dumping bnodes and loading complex ontology

2011-03-30 Thread Roberto García
Hi Hugh,

Thanks for your response.

> Note, there is a later Virtuoso snapshot build available from the following 
> FTP server location:
>
>        
> ftp://download.openlinksw.com/support/vos/virtuoso-opensource-6-20110308.tar.gz

I have installed and tested it.

> The Virtuoso SPARQL endpoint does provide and option to serialize results as 
> RDF/XML that you could trying using, see:
>
>        
> http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsparqlprotocolendpoint

Yes, I've been able to dump a proper version of the graph using this.
However, the dump_one_graph method continues generating invalid blank
nodes.

> To use the virtjdbc4.jar, simply include it in your classpath rather then 
> using the virtjdbc3.jar, when compiling and running the program ...

It complains about jdbc3 classes and packages. As I see in the Jena
connector source code, it is linked against JDBC3 classes so I assume
that it shouldn't work with JDBC4. Or is there another implementation
of the Jena connector using JDBC4? I've been unable to find it in the
20110308 package.

Finally, I continue experiencing many mysterious "Tag NNN"  exceptions
and other more specific like:
java.lang.Error: java.lang.ClassCastException:java.lang.Short cannot
be cast to openlink.util.Vector
virtuoso.jdbc3.VirtuosoConnection.read_request(Unknown Source)
virtuoso.jdbc3.VirtuosoFuture.nextResult(Unknown Source)
virtuoso.jdbc3.VirtuosoStatement.close(Unknown Source)
virtuoso.jena.driver.VirtuosoQueryExecution.close(Unknown Source)

net.rhizomik.rhizomer.store.virtuoso.VirtuosoStore.query(VirtuosoStore.java:185)

I'm using ARQ 2.8.7 and also teste ARQ 2.8.6. Should I use an older
version of Jena ARQ or this is due to another problem?

Best,

Roberto



Re: [Virtuoso-users] Problems dumping bnodes and loading complex ontology

2011-03-26 Thread Hugh Williams
Hi Roberto,

Note, there is a later Virtuoso snapshot build available from the following FTP 
server location:


ftp://download.openlinksw.com/support/vos/virtuoso-opensource-6-20110308.tar.gz

I would recommend you upgrade to this version and retry if not already running 
this.

The Virtuoso SPARQL endpoint does provide and option to serialize results as 
RDF/XML that you could trying using, see:


http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsparqlprotocolendpoint

To use the virtjdbc4.jar, simply include it in your classpath rather then using 
the virtjdbc3.jar, when compiling and running the program ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 24 Mar 2011, at 13:37, Roberto García wrote:

> Dear all,
> 
> I'm experiencing problems when serialising graphs managed by the
> latest available version of Opensource Virtuoso. The graph contains
> many blank nodes and when a take a look at the serialisation produced
> by dump_one_graph I see triples like:
> 
> <>rdf:typeowl:Class .
> <>rdf:typeowl:Restriction .
> 
> Is it possible to dump a graph using another serialisation like
> RDF/XML in order to overcome this?
> 
> I don't know if this is a related issue with the strange behaviour I'm
> experiencing when loading a complex OWL ontology [1] into a "schema"
> graph used for reasoning. When I do that and query the base graph
> (using define input:inference the previous schema graph) I get
> different kinds of exceptions referring to error  Tag 0, Tag 248, etc.
> 
> I'm sending this SPARQL queries to Virtuoso through the Jena connector
> available at [2] and ARQ 2.8.6. By the way, how can I make it work
> with virtjdbc4.jar instead of virtjdbc3.jar?
> 
> Best,
> 
> Roberto García
> http://rhizomik.net/~roberto
> 
> [1] http://rhizomik.net/ontologies/2009/09/copyrightonto.owl
> [2] http://ods.openlinksw.com/dataspace/dav/wiki/Main/VOSDownload
> 
> --
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software 
> be a part of the solution? Download the Intel(R) Manageability Checker 
> today! http://p.sf.net/sfu/intel-dev2devmar
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users