Persistent Ontologies Example

This sample shows a simple example of storing two ontologies, test1 and test2 (which is imported by test1), in a persistent database. Once the ontologies are loaded, the ontologies are accessible without needing to reload them from the source. The code also shows the use of the ontology document manager to provide a resolvable URL for an otherwise non-resolvable URN.

This example was tested on Fedora Core 3, with PostgreSQL 7.4.8

Files

The actual Java source code is also provided in the src-examples/jena/examples/ontology/persistentOntology/ directory.