Hi,
how do you parse the query? The following code works just fine ...
BooleanQuery q =
repository.getConnection().prepareBooleanQuery(QueryLanguage.SPARQL, "ASK
{ ?S a ?C} ");
System.out.println("result is "+ q.evaluate());
regards,
Damyan
----- Original Message -----
From: "Laurent PELLEGRINO" <laurent.pellegr...@sophia.inria.fr>
To: <owlim-discussion@ontotext.com>
Sent: Monday, July 27, 2009 4:25 PM
Subject: [Owlim-discussion] OWLIM/Sesame and Query parsing
Dear all,
I am trying to parse and to execute a SPARQL ASK query in my application.
When I do that, I get the following exception :
org.openrdf.query.UnsupportedQueryLanguageException: No factory available
for query language SPARQL
However all the JAR are in the classpath. It is a known problem ?
I have searched on the web and I have found a similar subject but it
dates back to 2007 :
http://www.openrdf.org/forum/mvnforum/viewthread?thread=1410
The solution is to use a more recent Sesame version which corrects this
bug. So i have tried with the Sesame 2.3-pr1 version but the problem is
always the same.
Does someone has an idea ?
Thanks.
Kind Regards
Laurent
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion