Friday, September 30, 2005

Leigh on Using Jena in an Application Server

A very encouraging sign of a maturing technology is when the community grows to include experts outside of the dev team. There's a growing number of people outside our team who answer questions on the Jena list, and increasingly who write great articles on aspects of using Jena. In this case, Leigh Dodds describing using Jena in an application server such as a JSP container. Great stuff!

Sunday, September 25, 2005

JavaScript programming - resource notes

I've been working on a small project using JavaScript, and thought it would be worth recording some of the useful resources I've found:

  • The Venkman JavaScript debugger is a plugin for FireFox that allows you to single-step through scripts, set breakpoints, inspect variables, etc. Slightly quirky at times, but works pretty well. Much better than using lots of alert() calls as print statements.
  • The web tools platform (WTP) project is a set of plugins for Eclipse that extend Eclipse to handle web content - (X)HTML, JavaScript, CSS, etc. The JavaScript editor includes syntax colouring, structured browsing, and name completion &emdash; but not validation as far as I can discover. The WTP plugins can be installed using the Eclipse automatic installer, which worked pretty well. Incidentally, the WTP HTML editor wasn't very impressive, I use the Amateras html editor instead. However, the WTP does include a handy CSS editor, which again handles syntax colouring and completion.
  • David Flanagan's JavaScript: the definitive guide has been an invaluable companion. Highly recommended.

One of the things I've been using JavaScript for is client-side RDF handling. For RDF parsing and basic query, I've been using Jim Ley's JavaScript RDF parser. It's pretty basic, but functional. Found one bug with namespace handling, which I've emailed to Jim. The triples are not indexed in any way, so any moderate querying of the RDF model will get pretty inefficient pretty quickly. However, a handy trick is to author compact RDF, then use the Jena tools, if necessary with custom rules, to generate the deductive closure of the base model, then save that as a file. This makes explicit many of the relations that otherwise would require query to traverse. Some caution needs to be used, since making the source model too big would also be counter-productive for efficiency. Incidentally, a useful side-effect of doing this is that saving the model in RDF/XML format, not RDF/XML-ABBREV, means that rdf:parseType="Collection" is re-written in first/rest/nil format ... which is handy since Jim's parser doesn't handle parseType Collection.

Thursday, September 08, 2005

New Kate! Woohoo!

I was musing to myself a couple of days ago why some music artists just seem to stop producing material. What happens to their creative drive? In particular, I was wondering why Kate Bush has stopped recording. Well, by an amazing coincidence I just found out that she has a new album ("Aerial") due out on Nov 7th, her first for twelve years. Excellent! And it's a double CD. Doubly excellent! I heard the news via a link from 101cd.com. Can't wait.

Monday, September 05, 2005

Jena question: anyone using minor OntDocumentManager features?

We're gearing up for release 2.3 of Jena, and I'm doing some refactoring on the OntDocumentManager. Specifically, I'd like to deprecate, and in later releases remove, support in the ODM for declaring default prefixes and for declaring the ontology language of a document. So this blog entry (and emails to the Jena mail lists jena-dev and jena developers) is a call for people to howl if the deprecation of these features would impact their projects.

del.icio.us: , , .