This is a small demonstration of templates and named SPARQL queries in Callimachus.  It provides a file containing some RDF data about bonobos and demonstrates how instances of the Bonobo OWL class may be created, viewed and edited.  It also shows how named SPARQL queries may be made and adjusted to be more visually appealing by use of Callimachus view templates.

The Bonobos sample application covers some of the same material as the Callimachus Developers Tutorial but is substantially reduced in scope.  The Bonobos sample application may be used as a quick introduction to Callimachus development before continuing on to more advanced material.

Download the CAR file and install it in your local Callimachus version 1.4.0 or greater. There is an older CAR file that does not use property paths for use with Callimachus 1.3.4 or older.

The application consists of:

  • The file some-bonobos.ttl, an RDF Turtle document containing some basic information about two bonobos named Bonny and Mary. The contents of this file are indexed by Callimachus's RDF database when the file is uploaded so it is ready to be queried.  Another data file is used to provide mappings between bonobos and images that are associated with them.
  • An OWL class called Bonobo that serves as the class of all bonobo instances.
  • Callimachus templates that allow for the creation, viewing and editing of Bonobo class instances. Note the use of SPARQL property paths in the view template.
  • Two named SPARQL queries which illustrate ways to query and visualize query results.

Learning how this example works will allow you to build more complex applications using Callimachus templates and named SPARQL queries.  Find out more about how you can use these techniques at: