| 2 | |
| 3 | = Ontology Adapter: RDFSJena = |
| 4 | |
| 5 | Developer: [mailto:endres@dfki.uni-kl.de Björn Endres] |
| 6 | |
| 7 | == Description == |
| 8 | This adapter simply provides access to RDFS ontologies, using the HP Jena Framework. |
| 9 | |
| 10 | == Characteristics == |
| 11 | * The adapter uses the Jena built-in RDFS reasoning to calculate a inference model upon intialisation. Depending on the model, this might be costy. |
| 12 | * All resources within the RDF or RDFS namespace are not considered parts of the model. |
| 13 | * The adapter caches every return value after the first calculation. Thus it should be quite performant but does not properly react on model changes. However, since PhaseLibs ontologies are considered immutable, this does match the specifications. |
| 14 | * The {{{getName[]}}} method of all ontologie entities will return the object of an arbitrary RDFS:Label statement. If there is no such statement, the local name of the resource ist returned. |
| 15 | |
| 16 | |
| 17 | == Evaluation/Performance == |
| 18 | n/a |
| 19 | |
| 20 | == Specification == |
| 21 | === Intitialisation === |
| 22 | The ontology adapter class is |
| 23 | {{{de.dfki.km.phaselib.adapters.rdfsJena.RDFSJenaOntology}}} |
| 24 | |
| 25 | In order to initialise it, you will have to provide the ontology's URI, and either |
| 26 | * a Jena model object, containing the model, or |
| 27 | * an [http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html InputStream] to read a model from. This is performed by Jena itself, so every file format that is supported by the Jena framework should do. |
| 28 | |
| 29 | === Parameters === |
| 30 | none |
| 31 | |
| 32 | === Dependencies === |
| 33 | Needs the [http://jena.sourceforge.net/index.html Jena Project], version 2.0 or higher. |
| 34 | |
| 35 | == License Issues == |
| 36 | Jena is an open source project featuring it's own [http://jena.sourceforge.net/license.html license]. |