Tuesday, March 24, 2009

Sesame+OWLIM+Tomcat

Yesterday I think I managed to set up Sesame 2.2.4 with OWLIM 3.0 Beta running on Tomcat 6.0.18. The process is not documented anywhere very well. I found the solution on a mailing list, in messages posted last year, which wasn't archived where I would have expected. Frustrating. I hope this blog posting is a little easier to find and follow.

So, here's what you do... There are two broad steps, which are very similar to one another: set up the sesame console, and set up the sesame+tomcat server.

First sesame+tomcat.
  1. Unpack openrdf-sesame.war in tomcat webapps.
  2. In the WEB-INF folder, put the two jar files from OWLIM.
  3. Find your sesame preferences folder. For the mac that would be ~/Library/Application Support/Aduna/OpenRDF Sesame/. Create a folder templates, and put the content below into owlim.ttl.
  4. Start tomcat.
#
# Sesame configuration template for a owlim repository
#
@prefix rdfs: .
@prefix rep: .
@prefix sr: .
@prefix sail: .
@prefix owlim: .

[] a rep:Repository ;
rep:repositoryID "{%Repository ID|owlimTest%}" ;
rdfs:label "{%Repository title|OWLIM Test store%}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "swiftowlim:Sail" ;
owlim:ruleset "{%Set of rules|owl-max%}" ;
owlim:partialRDFS "{%Partial RDFS|true|false%}" ;
owlim:noPersist "{%No Persistence|true|false%}" ;
owlim:storage-folder "{%Storage folder|owlimTest-storage%}" ;
owlim:base-URL "http://example.org/owlim#" ;
owlim:new-triples-file "new-triples-file.nt" ;
owlim:entity-index-size "200000" ;
owlim:jobsize "200" ;
owlim:repository-type "in-memory-repository" ;
owlim:imports "{%imports(';' delimited)|./ontology/owl.rdfs%}" ;
owlim:defaultNS "{%defaultNS(';' delimited)| http://www.w3.org/2002/07/owl#%}"

]
].


Next, set up the sesame console. If you don't plan on using owlim without tomcat, I don't think the following steps are necessary
  1. In the sesame folder's lib directory, add the owlim jar files.
  2. In ~/Library/Application Support/Aduna/OpenRDF Sesame console/templates put owlim.ttl.
Now we go on to creating an owlim repository. While I've gone through this procedure myself, I haven't yet tested if the repository is behaving like an OWL triple store. You have been warned.
  1. Start the console.
  2. Assuming default parameters with tomcat running on localhost, connect http://localhost:8080/openrdf-sesame.
  3. create owlim.
  4. Provide appropriate parameter values, and you're all set.
You should now have an owlim repository.
Reblog this post [with Zemanta]

Friday, March 6, 2009

Bibble 5

BibbleLabs has put out a preview of Bibble 5. Old news for many, I realize... This happened over a month ago. But I've been waiting for this. Adobe Lightroom is a good piece of software and a significant step up from my experience with Bibble 4. But it's s-l-o-w. I realize my PC is a bit old, even so redrawing the interface should not take tens of seconds. I haven't even fired up Bibble 5, so no first impressions to report yet.

Reblog this post [with Zemanta]

Wednesday, March 4, 2009

Semantic wiki progress

So I now have some code that can execute some simple operations on the Sesame REST API... The next step wasn't entirely clear, at this point I've settled on authoring a simple ontology viewer that builds on top of this API. For now I'm calling it CLOVER. Eventually I'll put XL-Wiki and CLOVER into a single piece of software. That software is currently called CL-Wise, which will need radical restructuring (in what little has been implemented) to accommodate a component based structure. Components because an ontology viewer does not exactly fit into a wiki structure, though the two are easily combinable into a coherent whole.

I've been out of touch with developments in the Common Lisp world other than blogs (IRC and comp.lang.lisp are too chaotic for my liking), and haven't seen any discussion of component based architectures. I hope this doesn't turn out to be too complex.

Reblog this post [with Zemanta]