Writing out SIOC triples using Jena + Jenabean

March 10th, 2009 § 1

(this post deals with features provided jenabean 1.0.1, available from the project site.  You’ll also need Jena, HP’s semenatic web framework.)

In my last post we looked at reading SIOC directly off the web. The other side of the coin is producing syntactically valid SIOC statements from java. You may want to create RDF for another consumer or perhaps you want to persist the SIOC statements directly into a Jena model. Either way, if you use the direct approach of coding to Jena’s RDF api, you’ll be writing quite a few lines of code. This task can be made simpler using Jenabean’s “Thing” utility along with a specialized interface to the Sioc vocabulary.  We’ll be looking at this simple example, which duplicates the primary RDF example givin in the SIOC specification document. » Read the rest of this entry «

Processing SIOC feeds with Jenabean

February 26th, 2009 § 1

This is a simple example of using jenabean’s “Thing” class to process SIOC data. The full example is available here.
SIOC is an OWL ontology for integrating and exchanging online community information.  It’s one of the few but growing public ontologies that have some adoption where you can find examples in the wild.  Jenabean makes it very easy to extract information using the SIOC vocabulary.   Assuming your Jena project is setup, all that’s required is for you to download the jenabean jar file to get started.  The latest snapshot build (0.9) contains a ready made interface for working with SIOC feeds or data.  First create a simple class with a static main… » Read the rest of this entry «

Where Am I?

You are currently browsing the jenabean category at The Web Semantic.