Before you start
This tutorial is aimed at developers with little or no experience in producing semantic Web applications. It doesn't require any programming or developer tools, but it does assume some familiarity with Web fundamentals. When you complete this tutorial, you will know how to produce RDF and OWL ontologies in the Turtle language. You will know how to host the ontologies using Jena and Joseki and you will know how to query them using SPARQL.
This tutorial introduces SPARQL and the data formats it is based on. It also covers the RDF, RDF Schema, OWL, and Turtle knowledge representation languages. With these languages, you build ontologies or domain models. For the example used throughout this tutorial, you'll build the ontologies and queries for a journaling and booking system to produce semantically tagged twitter-like micro-blogs. You'll query those blog entries to find those in your company with the skills to make up the team for a project that you are bidding for.
The tutorial follows these steps:
- An introduction to the semantic Web including RDF, OWL and SPARQL
- How to set up an RDF Triple Store using Joseki
- Writing the SPARQL queries for the journal system
You will need the following tools to follow this tutorial:
- Java™ environment—The Java runtime environment is needed to allow you to run Joseki, the SPARQL server.
- Joseki—This is an open source SPARQL server produced by Hewlett-Packard. You can get it from http://www.joseki.org/. Follow the links to the download area at SourceForge. Download the latest version of Joseki to your machine, and choose an area to unzip the file to. Take a note of that location, because you will make use of it to create a simple batch file that will fire up the server.
- Jena—The Semantic Web framework (provided as part of Joseki).
- Any text editor.
A team at Hewlett-Packard Labs has been developing Joseki since around 2003. It is a layer providing HTTP support to the Jena semantic Web framework, also produced by Hewlett-Packard. It is probably the most popular platform for semantic Web work, and one of its developers is also an editor for the SPARQL standard, so it seldom lags behind the standard by very much, and in some cases is a test bed for new ideas.
Later on, in Configuring Joseki , you can see detailed instructions on how to configure Joseki with the RDF files that you will create.