tree: f54352936af4c67203c7c3160cc6d8d5e4ab0f5f [path history] [tgz]
  1. bin/
  2. src/
  3. pom.xml
  4. README.md
jena-examples/README.md

Jena Examples

A collection of complete, runnable Jena examples to illustrate various aspects of programming using RDF with Jena.

Cheese ontology examples

Paolo Castagna is building a collection of RDF descriptions of the cheeses of the world (see Paolo's github account for the latest version). These examples use the cheese data, or its associated ontology, as examples.

Hello World

A very simple just-get-started example program that shows creating a memory model, loading an RDF data file, and iterating over the model to select cheeses.

Pizza ontology examples

The pizza ontology is widely used in ontology tutorials and classes. These examples use that ontology as an illustration.

Pizza SPARQL (no inference)

Using SPARQL to query the class expressions in the Pizza ontology without relying on RDF inference.

Streaming

Example of how to use a StreamRDF to write to an RDFConnection.