Package | Description |
---|---|
org.apache.jena.ontology |
Provides a set of abstractions and convenience classes for accessing and manipluating ontologies
represented in RDF.
|
org.apache.jena.vocabulary |
A package containing constant classes with predefined constant objects
for classes and properties defined in well known vocabularies.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AllValuesFromRestriction
A property restriction that requires the named property to have have any range
instances to be members of a given class.
|
interface |
BooleanClassDescription
Encapsulates a class description formed from a boolean combination of other
class descriptions (ie union, intersection or complement).
|
interface |
CardinalityQRestriction
Interface representing the ontology abstraction for a qualified cardinality
restriction.
|
interface |
CardinalityRestriction
A 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.
|
interface |
ComplementClass
Class description that is formed from the complement of another class description
|
interface |
EnumeratedClass
Encapsulates a class description representing a closed enumeration of individuals.
|
interface |
HasValueRestriction
A property restriction that requires the named property to have a given individual as
its value.
|
interface |
IntersectionClass
Encapsulates a class description that is the intersection of a list of
class expressions.
|
interface |
MaxCardinalityQRestriction
Interface representing the ontology abstraction for a qualified maximum cardinality
restriction.
|
interface |
MaxCardinalityRestriction
A 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.
|
interface |
MinCardinalityQRestriction
Interface representing the ontology abstraction for a qualified minimum cardinality
restriction.
|
interface |
MinCardinalityRestriction
A 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.
|
interface |
QualifiedRestriction
Represents a qualified restriction, in which all values of the restricted property
are required to be members of a given class.
|
interface |
Restriction
Interface that encapsulates a class description formed by restricting one or
more properties to have constrained values and/or cardinalities.
|
interface |
SomeValuesFromRestriction
A property restriction that requires the named property to have at least one
range instance belonging to the given class.
|
interface |
UnionClass
Class description that is formed from the union of a list of a class descriptions.
|
Modifier and Type | Method and Description |
---|---|
<T extends OntClass> |
Individual.listOntClasses(boolean direct)
Answer an iterator over the ontology classes to which this individual belongs.
|
Modifier and Type | Method and Description |
---|---|
OntClass |
OntResource.asClass()
Answer a view of this resource as a class
|
OntClass |
OntModel.createClass()
Answer a resource that represents an anonymous class description in this model.
|
OntClass |
OntModel.createClass(String uri)
Answer a resource that represents a class description node in this model.
|
OntClass |
OntClass.getDisjointWith()
Answer a class with which this class is disjoint.
|
OntClass |
OntClass.getEquivalentClass()
Answer a class that is equivalent to this class.
|
static OntClass |
OntTools.getLCA(OntModel m,
OntClass u,
OntClass v)
Answer the lowest common ancestor of two classes in a given ontology.
|
static OntClass |
OntTools.getLCA(OntModel m,
OntClass root,
OntClass u,
OntClass v)
Answer the lowest common ancestor of two classes, assuming that the given
class is the root concept to start searching from.
|
OntClass |
Individual.getOntClass()
Answer an ontology class to which this individual belongs.
|
OntClass |
Individual.getOntClass(boolean direct)
Answer an ontology class to which this individual belongs.
|
OntClass |
OntModel.getOntClass(String uri)
Answer a resource that represents a class description node in this model.
|
OntClass |
ComplementClass.getOperand()
Answer the class that the class described by this class description
is a complement of.
|
OntClass |
OntClass.getSubClass()
Answer a class that is the sub-class of this class.
|
OntClass |
OntClass.getSuperClass()
Answer a class that is the super-class of this class.
|
Modifier and Type | Method and Description |
---|---|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntModel.listClasses()
Answer an iterator that ranges over all of the various forms of class description resource
in this model.
|
org.apache.jena.util.iterator.ExtendedIterator<? extends OntClass> |
OntProperty.listDeclaringClasses()
Answer an iterator of all of the classes in this ontology, such
that each returned class has this property as one of its
properties in
listDeclaredProperties() . |
org.apache.jena.util.iterator.ExtendedIterator<? extends OntClass> |
OntProperty.listDeclaringClasses(boolean direct)
Answer an iterator of all of the classes in this ontology, such
that each returned class has this property as one of its
properties in
listDeclaredProperties(boolean) . |
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntClass.listDisjointWith()
Answer an iterator over all of the classes that this class is declared to be disjoint with.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntClass.listEquivalentClasses()
Answer an iterator over all of the classes that are known to be equivalent to
this class.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntModel.listHierarchyRootClasses()
Answer an iterator over the classes in this ontology model that represent
the uppermost nodes of the class hierarchy.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntModel.listNamedClasses()
Answer an iterator that ranges over the named class-descriptions
in this model, i.e. resources with
rdf:type
Class (or equivalent) and a node URI. |
org.apache.jena.util.iterator.ExtendedIterator<? extends OntClass> |
BooleanClassDescription.listOperands()
Answer an iterator over all of the classes that are the operands of this
Boolean class expression.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntClass.listSubClasses()
Answer an iterator over all of the classes that are declared to be sub-classes of
this class.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntClass.listSubClasses(boolean direct)
Answer an iterator over the classes that are declared to be sub-classes of
this class.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntClass.listSuperClasses()
Answer an iterator over all of the classes that are super-classes of
this class.
|
org.apache.jena.util.iterator.ExtendedIterator<OntClass> |
OntClass.listSuperClasses(boolean direct)
Answer an iterator over all of the classes that are super-classes of
this class.
|
static List<OntClass> |
OntTools.namedHierarchyRoots(OntModel m)
Answer a list of the named hierarchy roots of a given
OntModel . |
Modifier and Type | Method and Description |
---|---|
CardinalityQRestriction |
OntModel.createCardinalityQRestriction(String uri,
Property prop,
int cardinality,
OntClass cls)
Answer a class description defined as the class of those individuals that have exactly
the given number of values for the given property, all values of which belong to the given
class.
|
MaxCardinalityQRestriction |
OntModel.createMaxCardinalityQRestriction(String uri,
Property prop,
int cardinality,
OntClass cls)
Answer a class description defined as the class of those individuals that have at most
the given number of values for the given property, all values of which belong to the given
class.
|
MinCardinalityQRestriction |
OntModel.createMinCardinalityQRestriction(String uri,
Property prop,
int cardinality,
OntClass cls)
Answer a class description defined as the class of those individuals that have at least
the given number of values for the given property, all values of which belong to the given
class.
|
static OntClass |
OntTools.getLCA(OntModel m,
OntClass u,
OntClass v)
Answer the lowest common ancestor of two classes in a given ontology.
|
static OntClass |
OntTools.getLCA(OntModel m,
OntClass root,
OntClass u,
OntClass v)
Answer the lowest common ancestor of two classes, assuming that the given
class is the root concept to start searching from.
|
boolean |
QualifiedRestriction.hasHasClassQ(OntClass cls)
Answer true if this qualified property restriction has the given class as
the class to which all of the property values must belong.
|
void |
QualifiedRestriction.removeHasClassQ(OntClass cls)
Remove the statement that this restriction has the given class
as the class to which all values must belong.
|
void |
QualifiedRestriction.setHasClassQ(OntClass cls)
Assert that this qualified restriction restricts the property to have a given
cardinality and to have values belonging to the class denoted by
hasClassQ . |
Modifier and Type | Field and Description |
---|---|
static OntClass |
OntEventsVocab.OntEvent
A class representing observable events in an ontology model
|
Licenced under the Apache License, Version 2.0