Provides a set of abstractions and convenience classes for accessing and manipluating ontologies represented in RDF. The two prevalent ontology languages based on RDF are OWL. Since these two languages are similar, this package attempts to present a common set of abstractions, parameterised by vocabularies fot the different languages.
Note: this package primarily seeks to provide easy programmatic access to the terms in the ontologies. The ontology languages have well-defined semantics that provide entailment rules for triples not directly asserted by the ontology. By and large, an inference engine is needed to access these entailed triples, for which several options and an open architecture are provided elsewhere in Jena.
Interface Summary Interface Description AllDifferentInterface defining an individual in which all members of a collection are declared pair-wise disjoint. AllValuesFromRestrictionA property restriction that requires the named property to have have any range instances to be members of a given class. AnnotationPropertyInterface that represents the category of annotation properties in an ontology language. BooleanClassDescriptionEncapsulates a class description formed from a boolean combination of other class descriptions (ie union, intersection or complement). CardinalityQRestrictionInterface representing the ontology abstraction for a qualified cardinality restriction. CardinalityRestrictionA property restriction that requires the named property to have have exactly the given number of values for a given instance to be a member of the class defined by the restriction. ComplementClassClass description that is formed from the complement of another class description DataRangeRepresents an ontology DataRange: a class-like construct that contains only concrete data literals. DatatypePropertyInterface that encapsulates the class of properties whose range values are datatype values (as distinct from
ObjectPropertywhose values are individuals).
EnumeratedClassEncapsulates a class description representing a closed enumeration of individuals. FunctionalPropertyInterface encapsulating the class of properties that are functional: that is, properties in which a given given domain value has a unique value in the range. HasValueRestrictionA property restriction that requires the named property to have a given individual as its value. IndividualInterface that encapsulates an individual in an ontology, sometimes referred to as a fact or assertion, or a member of the a-box. IntersectionClassEncapsulates a class description that is the intersection of a list of class expressions. InverseFunctionalPropertyInterface encapsulating the class of properties that are inverse functional: that is, properties in which a given given range value has a unique value in the domain (effectively, a key). MaxCardinalityQRestrictionInterface representing the ontology abstraction for a qualified maximum cardinality restriction. MaxCardinalityRestrictionA property restriction that requires the named property to have have at most the given number of values for a given instance to be a member of the class defined by the restriction. MinCardinalityQRestrictionInterface representing the ontology abstraction for a qualified minimum cardinality restriction. MinCardinalityRestrictionA property restriction that requires the named property to have have at least the given number of values for a given instance to be a member of the class defined by the restriction. ObjectPropertyInterface encapsulating properties whose range values are restricted to individuals (as distinct from datatype valued
OntClassInterface that represents an ontology node characterising a class description. OntDocumentManager.ReadFailureHandlerInterface defining a handler call-back in the case that the
OntDocumentManagerfails in an attempt to read the contents of a URL into a model.
OntDocumentManager.ReadHookInterface denoting a handler class that can intervene in the process of reading a source document into a model. OntModelAn enhanced view of a Jena model that is known to contain ontology data, under a given ontology
vocabulary(such as OWL).
OntologyInterface encapsulating the distinguished instance in a given ontology document that presents meta-data and other processing data about the document (including which other documents are imported by a document). OntPropertyInterface encapsulating a property in an ontology. OntResourceProvides a common super-type for all of the abstractions in this ontology representation package. ProfileInterface that encapsulates the elements of a general vocabulary corresponding to a particular ontology language. QualifiedRestrictionRepresents a qualified restriction, in which all values of the restricted property are required to be members of a given class. RestrictionInterface that encapsulates a class description formed by restricting one or more properties to have constrained values and/or cardinalities. SomeValuesFromRestrictionA property restriction that requires the named property to have at least one range instance belonging to the given class. SymmetricPropertyInterface that encapsulates a property that is symmetric, i.e. one in which if
p(x, y)holds, then
p(y, x)must also hold.
TransitivePropertyInterface that denotes a property that is transitive i.e. one in which if
x p yholds, and
y p zholds, then
x p zmust also hold.
UnionClassClass description that is formed from the union of a list of a class descriptions.
Class Summary Class Description OntDocumentManagerProvides services for managing ontology documents, including loading imported documents, and locally caching documents from resolvable URL's to improve load performance. OntDocumentManager.DefaultReadHookThe default implementation of
OntDocumentManager.ReadHookmakes no changes.
OntModelSpecEncapsulates a description of the components of an ontology model, including the storage scheme, reasoner and language profile. OntToolsSome general utilities and algorithms to support developers working with the general classes in the Jena ontology API. OntTools.DisjointSetA simple representation of disjoint sets OntTools.LCAIndexSimple data structure mapping RDF nodes to disjoint sets, and pairs of resources to their LCA. OntTools.PathA path is an application of
Statementobjects, and in which for all adjacent elements
i > 0, it is true that:
OntTools.PredicatesFilterA filter which accepts statements whose predicate matches one of a collection of predicates held by the filter object. ProfileRegistryProvides a means to map between the URI's that represent ontology languages and their language profiles.
Exception Summary Exception Description ConversionExceptionException that is thrown when an ontology resource is converted to another facet, using
as(), and the requested conversion is not possible.
LanguageConsistencyExceptionAn exception that denotes some inconsistency between the arguments to a method in the ontology API, and the language definition for a given ontology profile. OntologyExceptionException for generic errors that arise while processing ontologies ProfileExceptionException that is raised when an ontology operation is attempted that is not present in the language profile for the current ontology model.