Date: 2011-03-27 16:52:33
From: josemiguelcruztoledo@gmail.com
Hi all,
I have been using the code provided in the getting-started directory of
Bigowlim 3.4 to execute queries over a BigOwlim repository, and I have been
running into some issues. Specifically the prepareQuery method fails to
return a non null query. The statement "return
repositoryConnection.prepareQuery(language, query);"  (in the
prepareQuery(String query) method) throws an
UnsupportedOperationException,which
according to the OpenRdf API [link
here<http://www.openrdf.org/doc/sesame2/api/org/openrdf/repository/RepositoryConnection.html#prepareQuery(org.openrdf.query.QueryLanguage,
java.lang.String)>], gets thrown when the repository does not support the
"prepareQuery" method.
Are there any repository settings that need to be modified for this code to
work?
Regards,
Jose

asked 03 Apr '13, 06:04

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k143160227
accept rate: 30%


Date: 2011-03-29 22:20:02
From: barry.bishop@ontotext.com
Hello Jose,
Something can not be quite right here, because it is currently not 
possible to instantiate a BigOWLIM repository using the Sesame 
workbench. If you look at the getting started guide (or the installation 
section of the online user guide 
http://owlim.ontotext.com/confluence/display/OWLIM/BigOWLIM+Installation) it 
will explain how to create a repository using the Sesame console 
application.
Note also that the rule file should be called 'owl-max', the spelling is 
important.
If you continue to have problems can you send us the output from the 
getting started application as well as the logs from tomcat (I assume 
you are using BigOWLIM with this, since you mention the Sesame workbench).
It will be hard to debug any problem unless we have this information.
Best of luck,
barry
link

answered 03 Apr '13, 06:04

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k143160227
accept rate: 30%

Date: 2011-03-28 15:10:33
From: ivan.peikov@ontotext.com
Hi Jose,
The prepareQuery() method should work. Can you send us a complete example 
(also containing the repository initialization code and the query you are 
trying to prepare). Also which is the precise version of BigOWLIM you are 
using (printed out among the first several logging lines while it 
initializes).
Cheers,
Ivan
link

answered 03 Apr '13, 06:04

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k143160227
accept rate: 30%

Date: 2011-03-29 13:49:47
From: josemiguelcruztoledo@gmail.com
Hi Ivan,
I am using BigOwlim version 3.4 (build 3326). The repository to which I am
posing the queries was not created programmatically (the logs found in the
.aduna directory did not have other information about the repository version
itself). It was created using the opendrdf-workbench web GUI by accessing
the following URL:
http://localhost:8080/openrdf-workbench/repositories/NONE/create?type=owlim.
The repository type was set to "File" and the Ruleset used was "OWL/Max".
The data was then loaded into the repository using the getting-started code
provided with the download. Finally the queries were also executed using the
getting started code, and the query file is attached.
Regards,
Jose
link

answered 03 Apr '13, 06:04

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k143160227
accept rate: 30%

Date: 2011-04-03 16:13:24
From: josemiguelcruztoledo@gmail.com
Hi Barry,
In a previous email that I accidentally sent only to Ivan, I explained that
the repository I was trying to query was created using the openrdf-workbench
web GUI with a stylesheet provided by Ivan in this previous post :
http://www.mail-archive.com/owlim-discussion at ontotext.com/msg00411.html
However, to be sure the procedure that I was using to create the BigOWLIM
repository wasn't the problem, I installed BigOWLIM 3.5 (build 3395) and
instantiated a repository using the Sesame console as specified by the
BigOWLIM 3.5 documentation, with the default values for the configuration
(using the OWL Horst rule set etc.).
I still get the same error when I try to query data loaded into the
repository. The prepareQuery method (code attached with its Unit test case
[This code is based on the one found in the getting-started directory of
BigOWLIM 3.5]) is still returning a null query object. Specifically the
prepareQuery(String query) method is throwing an
UnsupportedOperationException. Ivan suggested to check the tomcat logs, and
there is nothing out of the ordinary there. Is there any other log file that
OpenRDF creates?
Here is the output from the attached code:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
===== Query Evaluation ======================
Executing query 'some super query'
Unable to parse query: SELECT * WHERE{
?s ?p ?o.
}
Queries run in 0 ms.
Regards,
Jose
link

answered 03 Apr '13, 06:04

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k143160227
accept rate: 30%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×261
×242

Asked: 03 Apr '13, 06:04

Seen: 840 times

Last updated: 13 Jan, 09:21

powered by BitNami OSQA