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