Date: 2010-01-05 19:25:07
From: markl-at-avi.com
HI,
I am currently using OWLIM in a local file configuration (local
repository) and it works just fine (stores and infers).
I am trying to figure out how to set up the repository with Sesame
running on Tomcat for remote HTTP access.
Can I use Sesame OpenRDF-workbench to create a OWLIM repository?
Does it need a ttl file? Where should it be placed?
Once it is created, does the OWLIM reasoner infer on a remote OWLIM
repository?
I'm sure this has been done many times, I just can't find a complete
reference (how-to) to it.
Mark Larkin
Applied Visions Inc.

asked 02 Apr '13, 15:51

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117


Date: 2010-01-11 11:48:35
From: ivan.peikov-at-ontotext.com
Hi Mark, 
Will you please try to place owlim.ttl under
$TOMCAT/webapps/openrdf-workbench/WEB-INF/classes/org/openrdf/console/owlim.ttl
I believe this should solve the problem under Tomcat 6.0.14 (the version you 
are using).
Let me know if this helps!
Cheers,
Ivan
link

answered 02 Apr '13, 15:53

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-06 13:27:49
From: ivan.peikov-at-ontotext.com
Hi Mark!
It is not impossible to register OWLIM as Sesame repository type but is also 
not straightforward.
You need an owlim.ttl template file (attached) and you also need to add 
create-owlim.xsl to $TOMCAT_ROOT/webapps/openrdf-workbench/transformations 
folder (also attached). Additionally you should place the owlim jar somewhere 
visible to openrdf-sesame application (e.g. its lib folder).
Then you are ready to create the owlim repository by accessing 
http://<your.host>:8080/openrdf-workbench/repositories/NONE/create?type=owlim
If you are using swiftowlim distro you might need to change the sailType (in 
owlim.ttl) to swiftowlim:Sail.
Hope this helps!
Cheers,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-owlim.xsl
Type: text/x-xslt
Size: 4312 bytes
Desc: not available
URL: <http://ontotext.com/mailman/private/owlim-discussion/attachments/20100106/b1d73db3/attachment.bin>
-------------- next part --------------
#
# Sesame configuration template for a owlim repository
#
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix owlim: <http://www.ontotext.com/trree/owlim#>.
[] a rep:Repository ;
rep:repositoryID "{%Repository ID|owlim%}" ;
rdfs:label "{%Repository title|Owlim Store%}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "owlim:Sail" ;
owlim:ruleset "{%Ruleset|owl-horst%}" ;
owlim:partialRDFS  "{%Partial RDFS|false%}" ;
owlim:storage-folder "{%Storage folder|owlim-storage%}" ;
owlim:console-thread "{%Console thread|false%}" ;
owlim:repository-type "{%Repository type|file-repository%}" ;
]
].
link

answered 02 Apr '13, 15:51

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-06 14:38:12
From: markl-at-avi.com
Ivan, thanks for the info.
Where should the owlim.ttl be placed in this case?
Mark
link

answered 02 Apr '13, 15:52

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-07 12:08:04
From: ivan.peikov-at-ontotext.com
Hey Mark,
In the latest OWLIM (still not released) it is located in the JAR so you don't 
have to do anything, but as this version is still not publicly available you 
might put the file under
$TOMCAT_ROOT/webapps/openrdf-sesame/WEB-INF/lib/org/openrdf/console/owlim.ttl
and you will get the same effect.
Please also note, that Owlim will not automatically appear in the list of 
available repository types (unfortunately, Sesame UI wasn't implemented in 
such an extensible fashion) so you will have to access .../create?type=owlim 
URL I posted in the previous message.
Let me know if you made it to an owlim repository created with the UI!
Cheers,
Ivan
link

answered 02 Apr '13, 15:52

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-07 07:57:26
From: markl-at-avi.com
Ivan,
Okay from the first email, I did the following:
A) Placed create-owlim.xsl in $TOMCAT_ROOT/webapps/openrdf-workbench/transformations
B) Placed owlim-3.0.beta12.jar in $TOMCAT_ROOT/webapps/ openrdf-sesame\WEB-INF\lib
C) Did nothing with the owlim.ttl file (didn't know where to put it)
I was then able to use
http://<your.host>:8080/openrdf-workbench/repositories/NONE/create?type=owlim
to access the Sesame Workbench to get to the New Repository page with the following settings:
Type:   OwlIM
Id:     owlim
Title:  Sample Owlim
Ruleset:    RDFS
Partial:    unchecked
However, once I selected 'Create' button I got the following error: (was the owlim.ttl file needed for this part?)
--------------------------------------------------------------------------------
HTTP Status 500 - 
--------------------------------------------------------------------------------
type Exception report
message 
description The server encountered an internal error () that prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NullPointerException
org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:80)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
root cause 
javax.servlet.ServletException: java.lang.NullPointerException
org.openrdf.workbench.commands.CreateServlet.doPost(CreateServlet.java:53)
org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:70)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
root cause 
java.lang.NullPointerException
org.openrdf.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:114)
org.openrdf.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:76)
org.openrdf.workbench.commands.CreateServlet.doPost(CreateServlet.java:50)
org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:70)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
link

answered 02 Apr '13, 15:52

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-07 15:30:33
From: ivan.peikov-at-ontotext.com
Yes, exactly, owlim.ttl is needed for the Create part. You need to put it 
under
$TOMCAT_ROOT/webapps/openrdf-sesame/WEB-INF/lib/org/openrdf/console/owlim.ttl
(create missing directories if needed).
Then pressing the Create button should complete successfully and you will end 
up with a brand new owlim repository.
link

answered 02 Apr '13, 15:52

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-07 12:28:28
From: markl-at-avi.com
Okay I added the additional directory path and file to:
$TOMCAT_ROOT/webapps/openrdf-sesame/WEB-INF/lib/org/openrdf/console/owlim.ttl
But still same result on selecting Create.
Previously the /lib had only the set of jar files from the install. It did not have any of the additional subdirectories shown above. Is that correct, or should there be lots of other files in the ./lib/org/openrdf/console path?
Also, this is the owlim.ttl file I am using. Does it look correct?
----------------
#
# Sesame configuration template for a owlim repository
#
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix owlim: <http://www.ontotext.com/trree/owlim#>.
[] a rep:Repository ;
rep:repositoryID "owlim2" ;
rdfs:label "owlim Label" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "swiftowlim:Sail" ;
owlim:ruleset "owl-horst" ;
owlim:partialRDFS  "false" ;
owlim:storage-folder "owlim-storage" ;
owlim:console-thread "false" ;
owlim:repository-type "file-repository" ;
]
].
----------------
link

answered 02 Apr '13, 15:52

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-08 10:30:59
From: ivan.peikov-at-ontotext.com
Hey Mark,
It is OK that the org/openrdf/console directory is empty. In fact, I would be 
surprised if it wasn't..
The owlim.ttl file you placed there is not config template file, which means 
that the created repository won't be affected by the input you specified on 
the create page (e.g. the name of the created repository would always be 
owlim2 no matter what you specified in the web page).
You may consider using the one I sent in a previous message (modified if 
needed). 
Do you still see that same exception when clicking Create? Did you try to 
restart Tomcat?
Cheers,
Ivan
link

answered 02 Apr '13, 15:53

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-08 08:16:41
From: markl-at-avi.com
Hey Ivan,
Still no luck. I appreciate all your guidance and the time you are spending with me on this.
I am now using the owlim.ttl exactly as you sent it and have placed it where you said. I have tried the alternate
Sail specification in the owlim.ttl as well: 
sail:sailType "swiftowlim:Sail" ;
No matter what I do I get the same (exact) exceptions thrown once I select "Create" (show below). Changes to the owlim.tll don't seem to effect this exception. I still get the feeling it is not finding the owlim.tll file at all. 
Either that, or could I do not have the right set of jars.
I have restarted Tomcat before each attempt.
I am using:
Sesame version 2.3.0
swiftowlim-3.0.beta12-sesame-2.0
I am running on a Windows Vista platform.
=======================================
HTTP Status 500 - 
--------------------------------------------------------------------------------
type Exception report
message 
description The server encountered an internal error () that prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NullPointerException
org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:80)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
root cause 
javax.servlet.ServletException: java.lang.NullPointerException
org.openrdf.workbench.commands.CreateServlet.doPost(CreateServlet.java:53)
org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:70)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
root cause 
java.lang.NullPointerException
org.openrdf.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:114)
org.openrdf.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:76)
org.openrdf.workbench.commands.CreateServlet.doPost(CreateServlet.java:50)
org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:70)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.14
=======================================
link

answered 02 Apr '13, 15:53

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:26

nkrustev's gravatar image

nkrustev ♦♦
66117

Date: 2010-01-11 21:51:39
From: markl-at-avi.com
Bingo! That was it. It is now working.
Thank you very much for your help and patience Ivan.
Mark
link

answered 02 Apr '13, 15:53

Discussion-Board-Archive's gravatar image

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

edited 17 Apr '13, 10:25

nkrustev's gravatar image

nkrustev ♦♦
66117

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
×18

Asked: 02 Apr '13, 15:51

Seen: 3,218 times

Last updated: 27 May, 06:03

powered by BitNami OSQA