Re: [Virtuoso-users] Virtuoso Jena provider

2017-06-19 Thread Davis, Daniel (NIH/NLM) [C]
NOTE: there are several editions of virt_jena:

https://github.com/openlink/virtuoso-opensource/blob/develop/7/binsrc/jena/virt_jena.jar
https://github.com/openlink/virtuoso-opensource/blob/develop/7/binsrc/jena2/virt_jena2.jar
https://github.com/openlink/virtuoso-opensource/blob/develop/7/binsrc/jena3/virt_jena3.jar

I wish these and virt_jdbc variants would be published to something like 
Sonatype OSS releases, but aside from that, they work well.

-Original Message-
From: Sergey Malinin [mailto:sergmali...@gmail.com] 
Sent: Monday, June 19, 2017 5:19 AM
To: Henrik Schmidt <h...@informatik.uni-kiel.de>; 
virtuoso-users@lists.sourceforge.net
Subject: Re: [Virtuoso-users] Virtuoso Jena provider

On 06/19/2017 06:34 PM, Henrik Schmidt wrote:
> Hi,
>
> is the virtuoso jena provider compatible with jena > 3.0.x like 3.2 or
> 3.3 ? The VOS wiki is only talking abot 3.0.x
>
> Best,
[Sergey]
It works with Jena 3.3.x.
Jena 3.2.x has a bug, that doesn't allows to use it in some cases and create a 
problem with using it with Virtuoso Jena provider.
The bug was fixed in Jena 3.3.x.
>
> Henrik
>
> --
>  Check out the vibrant tech community on one of the world's 
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot 
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>

--
Best Regards,
Sergey Malinin



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso Jena provider

2017-06-19 Thread Sergey Malinin

On 06/19/2017 06:34 PM, Henrik Schmidt wrote:

Hi,

is the virtuoso jena provider compatible with jena > 3.0.x like 3.2 or
3.3 ? The VOS wiki is only talking abot 3.0.x

Best,

[Sergey]
It works with Jena 3.3.x.
Jena 3.2.x has a bug, that doesn't allows to use it in some cases and create a 
problem with using it with Virtuoso Jena provider.
The bug was fixed in Jena 3.3.x.


Henrik

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users



--
Best Regards,
Sergey Malinin




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso Jena Provider and ARQ keywords

2011-11-12 Thread Hugh Williams
Hi Christian

Virtuoso does not support “NOT EXIST” but does have its own built in function:

FILTER (!bif:exists ((select (1) ...)))

See the following example on usage:


http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlruleexamples6

LET is a Jena specific keyword not support in Virtuoso. The SPARQL 1.1 standard 
provides an equivalent called “BIND” it appears which is not currently 
supported in Virtuoso but is scheduled for the next release.

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 12 Nov 2011, at 09:42, Christian Fuerber wrote:

 Dear all,
 
 I am having trouble using certain keywords of Jena ARQ to query virtuoso
 over the Virtuoso Jena Provider.
 
 In particular, my queries require the use of the keywords LET, NOT EXISTS,
 and IRI.
 For example I tried to execute the following Code:
 
   VirtGraph set = new VirtGraph
 (jdbc:virtuoso://localhost:/charset=UTF-8/log_enable=2, dba, dba);
   Model model = new VirtModel(set);
 
   String queryString =
   SELECT ?s ?o ?now  +
FROM http://localhost/mediawiki  +
WHERE{ +
?s ?p ?o .  +
   LET(?now := true) +
   };
   Query query =
 QueryFactory.create(queryString,Syntax.syntaxARQ);
   QueryExecution vqe =
 VirtuosoQueryExecutionFactory.create(query, model);
   ResultSet results = vqe.execSelect();
   System.out.print(ResultSetFormatter.asText(results));
 
 Which returns the following error message:
 
 Exception in thread main com.hp.hpl.jena.shared.JenaException: Can not
 create ResultSet.:virtuoso.jdbc3.VirtuosoException: SQ074: Line 12: SP030:
 SPARQL compiler, line 10: syntax error at 'LET' before '('
   at virtuoso.jena.driver.VirtuosoQueryExecution.execSelect(Unknown
 Source)
   at VirtuosoSPARQLExample1.main(VirtuosoSPARQLExample1.java:73)
 
 When I use QueryExecutionFactory instead of VirtuosoQueryExecutionFactory I
 get the following error message:
 
 Exception in thread main com.hp.hpl.jena.shared.JenaException: Can not
 create QueryIterator.:virtuoso.jdbc3.VirtuosoException: SQ074: Line 12:
 SP030: SPARQL compiler, line 10: syntax error at 'LET' before '('
   at virtuoso.jena.driver.VirtuosoQueryEngine.eval(Unknown Source)
   at
 com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:
 124)
   at
 com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.jav
 a:98)
   at
 com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:8
 6)
   at
 virtuoso.jena.driver.VirtuosoQueryEngine$VirtQueryEngineFactory.create(Unkno
 wn Source)
   at
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.
 java:266)
   at
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExe
 cutionBase.java:243)
   at
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutio
 nBase.java:248)
   at
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBa
 se.java:94)
   at VirtuosoSPARQLExample1.main(VirtuosoSPARQLExample1.java:73)
 
 Simple queries without the use of Jena ARQ specific keywords work fine!
 
 I am using Virtuoso Open Source 6.1.4 and Jena 2.6.2 with ARQ 2.8.3. The
 virt_jena.jar is for Jena 2.6.2 [Build 1.5].
 
 Thank you for any help!
 
 Christian
 
 --
 Dipl.-Kfm. Christian Fürber
 Professur für Allgemeine BWL, insbesondere E-Business
 e-business  web science research group
 Universität der Bundeswehr München
  
 e-mail: c.fuer...@unibw.de
 www:   http://www.unibw.de/ebusiness/
 skype: c.fuerber
 twitter: cfuerber
 
 
 
 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Virtuoso-users mailing list
 Virtuoso-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/virtuoso-users



smime.p7s
Description: S/MIME cryptographic signature


Re: [Virtuoso-users] Virtuoso Jena Provider and ARQ keywords

2011-11-12 Thread Christian Fuerber
Hi Hugh,

thanks for your quick answer! So I assume that there is no possibility to
execute SPARQL 1.1 standard queries over virtuoso as of now.

IMO, it would be a huge benefit, if you implemented native support of SPARQL
1.1 standard syntax in virtuoso's SPARQL enpoint not just for me.

A recent discussion on this topic can also be found here:
http://tech.groups.yahoo.com/group/jena-dev/message/46991 

As for my use case, I would need at least IRI, MINUS, NOT EXISTS, BIND, and
STRDT from SPARQL 1.1 [1] in virtuoso's endpoint. You can find my queries at
[2]. 

Since I have a bunch of them, I want to avoid to reformulate them for the
virtuoso endpoint.

Thanks,
Christian

[1] http://www.w3.org/TR/sparql11-query/  
[2]
http://semwebquality.org/mediawiki/index.php?title=Data_Quality_Monitoring_R
eports


 -Ursprüngliche Nachricht-
 Von: Hugh Williams [mailto:hwilli...@openlinksw.com]
 Gesendet: Samstag, 12. November 2011 15:02
 An: Christian Fuerber
 Cc: virtuoso-users@lists.sourceforge.net
 Betreff: Re: [Virtuoso-users] Virtuoso Jena Provider and ARQ keywords
 
 Hi Christian
 
 Virtuoso does not support “NOT EXIST” but does have its own built in
 function:
 
   FILTER (!bif:exists ((select (1) ...)))
 
 See the following example on usage:
 
   http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlru
 leexamples6
 
 LET is a Jena specific keyword not support in Virtuoso. The SPARQL 1.1
 standard provides an equivalent called “BIND” it appears which is not
 currently supported in Virtuoso but is scheduled for the next release.
 
 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 12 Nov 2011, at 09:42, Christian Fuerber wrote:
 
  Dear all,
 
  I am having trouble using certain keywords of Jena ARQ to query virtuoso
  over the Virtuoso Jena Provider.
 
  In particular, my queries require the use of the keywords LET, NOT
EXISTS,
  and IRI.
  For example I tried to execute the following Code:
 
  VirtGraph set = new VirtGraph
  (jdbc:virtuoso://localhost:/charset=UTF-8/log_enable=2, dba,
 dba);
  Model model = new VirtModel(set);
 
  String queryString =
  SELECT ?s ?o ?now  +
   FROM http://localhost/mediawiki  +
   WHERE{ +
   ?s ?p ?o .  +
  LET(?now := true) +
  };
  Query query =
  QueryFactory.create(queryString,Syntax.syntaxARQ);
  QueryExecution vqe =
  VirtuosoQueryExecutionFactory.create(query, model);
  ResultSet results = vqe.execSelect();
  System.out.print(ResultSetFormatter.asText(results));
 
  Which returns the following error message:
 
  Exception in thread main com.hp.hpl.jena.shared.JenaException: Can not
  create ResultSet.:virtuoso.jdbc3.VirtuosoException: SQ074: Line 12:
SP030:
  SPARQL compiler, line 10: syntax error at 'LET' before '('
  at
 virtuoso.jena.driver.VirtuosoQueryExecution.execSelect(Unknown
  Source)
  at
 VirtuosoSPARQLExample1.main(VirtuosoSPARQLExample1.java:73)
 
  When I use QueryExecutionFactory instead of
 VirtuosoQueryExecutionFactory I
  get the following error message:
 
  Exception in thread main com.hp.hpl.jena.shared.JenaException: Can not
  create QueryIterator.:virtuoso.jdbc3.VirtuosoException: SQ074: Line 12:
  SP030: SPARQL compiler, line 10: syntax error at 'LET' before '('
  at virtuoso.jena.driver.VirtuosoQueryEngine.eval(Unknown Source)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase
 .java:
  124)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBa
 se.jav
  a:98)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.j
 ava:8
  6)
  at
 
 virtuoso.jena.driver.VirtuosoQueryEngine$VirtQueryEngineFactory.create(U
 nkno
  wn Source)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutio
 nBase.
  java:266)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(Que
 ryExe
  cutionBase.java:243)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryEx
 ecutio
  nBase.java:248)
  at
 
 com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecu
 tionBa
  se.java:94)
  at
 VirtuosoSPARQLExample1.main(VirtuosoSPARQLExample1.java:73)
 
  Simple queries without the use of Jena ARQ specific keywords work fine!
 
  I am using Virtuoso Open Source 6.1.4 and Jena 2.6.2 with ARQ 2.8.3. The
  virt_jena.jar is for Jena 2.6.2 [Build 1.5].
 
  Thank you for any help!
 
  Christian
 
  --
  Dipl.-Kfm. Christian Fürber
  Professur für Allgemeine BWL, insbesondere E-Business

Re: [Virtuoso-users] Virtuoso Jena Provider and ARQ keywords

2011-11-12 Thread Ivan Mikhailov
Hi Christian,

NOT EXISTS is supported already.

E.g., right now at lod.openlinksw.com/sparql

both
SELECT count(*) WHERE {?s ?p Novosibirsk  filter not exists { ?s ?p
Новосибирск } }
and
SELECT count(*) WHERE { { ?s ?p Novosibirsk } minus { ?s ?p
Новосибирск } }

return 313,

both
SELECT count(*) WHERE {?s ?p1 Novosibirsk  filter not exists { ?s ?p2
Новосибирск } }
and
SELECT count(*) WHERE { { ?s ?p1 Novosibirsk } minus { ?s ?p2
Новосибирск } }

return 309,

plain
SELECT count(*) WHERE { ?s ?p Novosibirsk }

returns 314.

Keeping in mind that Новосибирск is Russian and Novosibirsk is
English transcription for same city, these numbers differ for a good
reason :)

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com


On Sat, 2011-11-12 at 14:02 +, Hugh Williams wrote:
 Hi Christian
 
 Virtuoso does not support “NOT EXIST” but does have its own built in function:
 
   FILTER (!bif:exists ((select (1) ...)))
 
 See the following example on usage:
 
   
 http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlruleexamples6
 
 LET is a Jena specific keyword not support in Virtuoso. The SPARQL 1.1 
 standard provides an equivalent called “BIND” it appears which is not 
 currently supported in Virtuoso but is scheduled for the next release.
 
 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 12 Nov 2011, at 09:42, Christian Fuerber wrote:
 
  Dear all,
  
  I am having trouble using certain keywords of Jena ARQ to query virtuoso
  over the Virtuoso Jena Provider.
  
  In particular, my queries require the use of the keywords LET, NOT EXISTS,
  and IRI.
  For example I tried to execute the following Code:
  
  VirtGraph set = new VirtGraph
  (jdbc:virtuoso://localhost:/charset=UTF-8/log_enable=2, dba, dba);
  Model model = new VirtModel(set);
  
  String queryString =
  SELECT ?s ?o ?now  +
   FROM http://localhost/mediawiki  +
   WHERE{ +
   ?s ?p ?o .  +
  LET(?now := true) +
  };
  Query query =
  QueryFactory.create(queryString,Syntax.syntaxARQ);
  QueryExecution vqe =
  VirtuosoQueryExecutionFactory.create(query, model);
  ResultSet results = vqe.execSelect();
  System.out.print(ResultSetFormatter.asText(results));
  
  Which returns the following error message:
  
  Exception in thread main com.hp.hpl.jena.shared.JenaException: Can not
  create ResultSet.:virtuoso.jdbc3.VirtuosoException: SQ074: Line 12: SP030:
  SPARQL compiler, line 10: syntax error at 'LET' before '('
  at virtuoso.jena.driver.VirtuosoQueryExecution.execSelect(Unknown
  Source)
  at VirtuosoSPARQLExample1.main(VirtuosoSPARQLExample1.java:73)
  
  When I use QueryExecutionFactory instead of VirtuosoQueryExecutionFactory I
  get the following error message:
  
  Exception in thread main com.hp.hpl.jena.shared.JenaException: Can not
  create QueryIterator.:virtuoso.jdbc3.VirtuosoException: SQ074: Line 12:
  SP030: SPARQL compiler, line 10: syntax error at 'LET' before '('
  at virtuoso.jena.driver.VirtuosoQueryEngine.eval(Unknown Source)
  at
  com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:
  124)
  at
  com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.jav
  a:98)
  at
  com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:8
  6)
  at
  virtuoso.jena.driver.VirtuosoQueryEngine$VirtQueryEngineFactory.create(Unkno
  wn Source)
  at
  com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.
  java:266)
  at
  com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExe
  cutionBase.java:243)
  at
  com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutio
  nBase.java:248)
  at
  com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBa
  se.java:94)
  at VirtuosoSPARQLExample1.main(VirtuosoSPARQLExample1.java:73)
  
  Simple queries without the use of Jena ARQ specific keywords work fine!
  
  I am using Virtuoso Open Source 6.1.4 and Jena 2.6.2 with ARQ 2.8.3. The
  virt_jena.jar is for Jena 2.6.2 [Build 1.5].
  
  Thank you for any help!
  
  Christian
  
  --
  Dipl.-Kfm. Christian Fürber
  Professur für Allgemeine BWL, insbesondere E-Business
  e-business  web science research group
  Universität der Bundeswehr München
   
  e-mail: c.fuer...@unibw.de
  www:   http://www.unibw.de/ebusiness/
  skype: c.fuerber
  twitter: cfuerber
  
  
  
  --
  RSA(R) 

Re: [Virtuoso-users] Virtuoso-Jena provider problem

2011-08-18 Thread Hugh Williams
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:/charset=UTF-8/log_enable=2;,
  dba, dba);
 VirtGraph dataGraph = new VirtGraph 
 (http://MyGraph/data#,jdbc:virtuoso://localhost:/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);
 
 IteratorStatement 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



Re: [Virtuoso-users] Virtuoso-Jena provider problem

2011-08-18 Thread Hugh Williams
Hi Babis,

Looking at the version of your Virtuoso Server 06.02,3128 from Sept 2010,  it 
would appear you are a commercial license holder/user for which the latest 
available builds are 06.02.3129,  1.4  3.57 from March 2011, so I would 
recommend you upgrade your components to this latest version, which is 
available from http://download.openlinksw.com/virtwiz and is a free upgrade ...

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 17:00, Babis Doulaverakis wrote:

 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:/charset=UTF-8/log_enable=2;,
  dba, dba);
 VirtGraph dataGraph = new VirtGraph 
 (http://MyGraph/data#,jdbc:virtuoso://localhost:/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);
 
 IteratorStatement 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
 
 
 



Re: [Virtuoso-users] Virtuoso-Jena provider problem

2011-08-18 Thread Babis Doulaverakis
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:/charset=UTF-8/log_enable=2;,
 dba, dba);
VirtGraph dataGraph = new VirtGraph 
(http://MyGraph/data#,jdbc:virtuoso://localhost:/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);



IteratorStatement 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