Date: 2013-01-21 13:59:46
From: wdduncan@gmail.com
Hi All,
When I set up my owlim repo, I forgot to give it enough predicate index
memory.  Now when I try to delete the repo, I receive the the following
error:
org.openrdf.repository.RepositoryException: Failed to delete repository:
org.openrdf.repository.RepositoryException:
java.lang.IllegalArgumentException: Parameter 'predicate-memory' should
contain a value no less than 20m (500)
On the Ontotext web site, I found a query explaining how to change a
configuration value:
(from: http://owlim.ontotext.com/display/OWLIMv50/OWLIM+FAQ)
PREFIX sys:  <http://www.openrdf.org/config/repository#>
PREFIX sail: <http://www.openrdf.org/config/repository/sail#>
PREFIX onto: <http://www.ontotext.com/trree/owlim#>
DELETE { GRAPH ?g {?sail ?param ?old_value } }
INSERT { GRAPH ?g {?sail ?param ?new_value } }
WHERE {
GRAPH ?g { ?rep sys:repositoryID ?id . }
GRAPH ?g { ?rep sys:repositoryImpl ?impl . }
GRAPH ?g { ?impl sys:repositoryType ?type . }
GRAPH ?g { ?impl sail:sailImpl ?sail . }
GRAPH ?g { ?sail ?param ?old_value . }
FILTER( ?id = "repo_id" ) .
FILTER( ?param = onto:predicate-memory ) .
BIND( "80m" AS ?new_value ) .
}
But when I run the query, I receive the following error:
Encountered " "delete" "DELETE "" at line 4, column 1. Was expecting one
of: "base" ... "prefix" ... "select" ... "construct" ... "describe" ...
"ask" ...
Can you please help me fix or delete the repo?
Here my system info:
Hardware: Macbook Pro 6.2, Intel core I7 processor
OS: Mac OS X 10.6.8
Owlim: OWLIM-SE ??? - I couldn't figure out how to get the Owlim version
OpenRDF WorkbenchVersion 2.6.8
Thanks,
Bill

asked 03 Apr '13, 12:20

Discussion-Board-Archive's gravatar image

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


Date: 2013-01-22 07:48:27
From: barry.bishop@ontotext.com
Hi Alan, Duncan,
Configuration management in OWLIM makes use of the Sesame way of doing 
things (using a RepositoryManager) when deployed remotely using Tomcat. 
In this situation, the Sesame framework insists that a repository be 
initialised before it can be deleted - I was never quite sure why this 
should be, but it is that way at the moment.
Anyway, Duncan was quite right to fix things the way he tried to, except 
for one small mistake: In the Sesame Workbench, there is a separate page 
for running SPARQL updates. This is called "SPARQL Update" and is 
located on the left hand side menu under "Modify".
If Duncan runs this SPARQL Update from this page then it should work fine.
I hope this helps,
barry
link

answered 03 Apr '13, 12:20

Discussion-Board-Archive's gravatar image

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

Date: 2013-01-21 14:56:28
From: alanruttenberg@gmail.com
My notes about this.
OWLIM folks: It has happened more than once there there are errors
that get in the way of making progress. An analysis of this sort of
error would make it more comfortable for developers.
Here are the notes that I took about getting around this:
The endpoint is the query endpoint with "/statements" appended.
Here is the query that I used. The first triple is used to bind the
graph ?g. The second to get all the triples in the graph. Where the
bindings go there is instead a triple, which is the triple to delete
(after substitution of variables).
(sparql '(:delete (?s ?p ?o) () (:graph ?g
(?sg ?pg "reactome-take-2")
(?s ?p ?o)))
:endpoint "http://127.0.0.1:8080/openrdf-sesame/repositories/SYSTEM/statements"
:trace t :value nil)
-Alan
link

answered 03 Apr '13, 12:20

Discussion-Board-Archive's gravatar image

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

Date: 2013-01-22 11:15:17
From: wdduncan@gmail.com
Thanks Barry.  That Fixed it.
- Bill
link

answered 03 Apr '13, 12:20

Discussion-Board-Archive's gravatar image

Discussion-B...
6.1k136156214
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
×38

Asked: 03 Apr '13, 12:20

Seen: 4,325 times

Last updated: 03 Apr '13, 12:20

powered by BitNami OSQA