Hi Hugh,

I have the following versions:
Virtuoso: 06.02.3128
virt_jena: 2.6.2 [Build 1.2]
virtjdbc3: 3.x [Build 3.56]
Are there any newer version of virt_jena and virtjdbc3?. With the versions I 
have I am not able to use virtjdbc4.

The Inference Graph example works. 
Actually I was able to run the code I posted earlier by using other graphs in 
Virtuoso to get data from. I don't know why the previous graphs caused errors. 
Could it be because of possible inconsistencies in the ontology definition? 
What I found out later was that the inclusion of dataGraph in the Inference 
Model caused the exception to be thrown.


Thanks for your answer.
Best regards,
Babis



>________________________________
>From: Hugh Williams <hwilli...@openlinksw.com>
>To: Babis Doulaverakis <doula...@yahoo.gr>
>Cc: "virtuoso-users@lists.sourceforge.net" 
><virtuoso-users@lists.sourceforge.net>
>Sent: Thursday, August 18, 2011 3:15 PM
>Subject: Re: [Virtuoso-users] Virtuoso-Jena provider problem
>
>
>Hi Babis,
>
>
>We have an Inference Graph example (VirtuosoSPARQLExample13)  in the Jena 
>documentation 
>at http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtJenaProvider?#Testing
> , does this run for you ?
>
>
>Also please confirm the versions of the components being used with the 
>following commands:
>
>
>virtuoso-t -?
>java -jar virt_jena.jar
>java -jar virtjdbc3.jar 
>
>
>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 18 Aug 2011, at 11:22, Babis Doulaverakis wrote:
>
>Hello,
>>
>>
>>I am trying to use the Virtuoso-Jena provider to make an Inference Graph in 
>>Jena using Virtuoso as a RDF backend but an exception is thrown. The code I 
>>use is:
>>
>>
>>VirtGraph schemaGraph = new VirtGraph 
>>("http://MyGraph/schema#","jdbc:virtuoso://localhost:1111/charset=UTF-8/log_enable=2";,
>> "dba", "dba");
>>VirtGraph dataGraph = new VirtGraph 
>>("http://MyGraph/data#","jdbc:virtuoso://localhost:1111/charset=UTF-8/log_enable=2";,
>> "dba", "dba");
>>Model dataModel = new VirtModel(dataGraph);
>>
>>Model schemaModel = new VirtModel(schemaGraph);
>>Reasoner reasoner = ReasonerRegistry.getOWLReasoner();
>>reasoner = reasoner.bindSchema(schemaModel);
>>InfModel infmodel = ModelFactory.createInfModel(reasoner, dataModel);
>>
>>
>>
>>Iterator<Statement> list = infmodel.listStatements();
>>
>>
>>
>>The exception I get is "Exception in thread "main" 
>>virtuoso.jdbc3.VirtuosoException: Tag 1 not defined." when the 
>>listStatements() method is called. Is there a way to fix this problem?
>>
>>
>>Thanks,
>>Babis------------------------------------------------------------------------------
>>Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
>>user administration capabilities and model configuration. Take 
>>the hassle out of deploying and managing Subversion and the 
>>tools developers use with it. 
>>http://p.sf.net/sfu/wandisco-d2d-2_______________________________________________
>>Virtuoso-users mailing list
>>Virtuoso-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
>
>
>

Reply via email to