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" ;
      ]
   ].
----------------


-----Original Message-----
From: Ivan Peikov [mailto:ivan.pei...@ontotext.com] 
Sent: Thursday, January 07, 2010 8:31 AM
To: Mark Larkin
Cc: owlim-discussion@ontotext.com
Subject: Re: [Owlim-discussion] OWLIM, Sesame and Remote Access

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.


On Thursday 07 January 2010 14:57:26 Mark Larkin wrote:
> 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=ow
>lim 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(TransformationServ
>let.java:80)
> org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
> org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryS
>ervlet.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(CookieCacheCo
>ntrolFilter.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(TransformationSer
>vlet.java:70)
> org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
> org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryS
>ervlet.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(CookieCacheCo
>ntrolFilter.java:52)
>
>
> root cause
>
> java.lang.NullPointerException
>       
> org.openrdf.workbench.commands.CreateServlet.getConfigTemplate(CreateServl
>et.java:114)
> org.openrdf.workbench.commands.CreateServlet.createRepositoryConfig(CreateS
>ervlet.java:76)
> org.openrdf.workbench.commands.CreateServlet.doPost(CreateServlet.java:50)
> org.openrdf.workbench.base.TransformationServlet.service(TransformationServ
>let.java:70)
> org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
> org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryS
>ervlet.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(CookieCacheCo
>ntrolFilter.java:52)
>
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/6.0.14 logs.
>
> ---------------------------------------------------------------------------
>-----
>
>
> -----Original Message-----
> From: Ivan Peikov [mailto:ivan.pei...@ontotext.com]
> Sent: Thursday, January 07, 2010 5:08 AM
> To: Mark Larkin
> Cc: owlim-discussion@ontotext.com
> Subject: Re: [Owlim-discussion] OWLIM, Sesame and Remote Access
>
> 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.t
>tl
>
> 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
>
> On Wednesday 06 January 2010 21:38:12 Mark Larkin wrote:
> > Ivan, thanks for the info.
> >
> > Where should the owlim.ttl be placed in this case?
> >
> > Mark
> >
> >
> > -----Original Message-----
> > From: Ivan Peikov [mailto:ivan.pei...@ontotext.com]
> > Sent: Wednesday, January 06, 2010 6:28 AM
> > To: owlim-discussion@ontotext.com
> > Cc: Mark Larkin
> > Subject: Re: [Owlim-discussion] OWLIM, Sesame and Remote Access
> >
> > 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=o
> >wl im
> >
> > If you are using swiftowlim distro you might need to change the sailType
> > (in owlim.ttl) to swiftowlim:Sail.
> >
> > Hope this helps!
> >
> > Cheers,
> > Ivan
> >
> > On Wednesday 06 January 2010 02:25:07 Mark Larkin wrote:
> > > 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.


_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion

Reply via email to