Uses of Interface
org.apache.jena.ontology.OntClass
-
Packages that use OntClass 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.ontology.impl Provides default implementations for the abstractions defined in theorg.apache.jena.ontology
package.org.apache.jena.vocabulary A package containing constant classes with predefined constant objects for classes and properties defined in well known vocabularies. -
-
Uses of OntClass in org.apache.jena.ontology
Subinterfaces of OntClass in org.apache.jena.ontology Modifier and Type Interface 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 descriptioninterface
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.Methods in org.apache.jena.ontology with type parameters of type OntClass Modifier and Type Method Description <T extends OntClass>
ExtendedIterator<T>Individual. listOntClasses(boolean direct)
Answer an iterator over the ontology classes to which this individual belongs.Methods in org.apache.jena.ontology that return OntClass Modifier and Type Method Description OntClass
OntResource. asClass()
Answer a view of this resource as a classOntClass
OntModel. createClass()
Answer a resource that represents an anonymous class description in this model.OntClass
OntModel. createClass(java.lang.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(java.lang.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.Methods in org.apache.jena.ontology that return types with arguments of type OntClass Modifier and Type Method Description ExtendedIterator<OntClass>
OntModel. listClasses()
Answer an iterator that ranges over all of the various forms of class description resource in this model.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 inlistDeclaredProperties()
.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 inlistDeclaredProperties(boolean)
.ExtendedIterator<OntClass>
OntClass. listDisjointWith()
Answer an iterator over all of the classes that this class is declared to be disjoint with.ExtendedIterator<OntClass>
OntClass. listEquivalentClasses()
Answer an iterator over all of the classes that are known to be equivalent to this class.ExtendedIterator<OntClass>
OntModel. listHierarchyRootClasses()
Answer an iterator over the classes in this ontology model that represent the uppermost nodes of the class hierarchy.ExtendedIterator<OntClass>
OntModel. listNamedClasses()
Answer an iterator that ranges over the named class-descriptions in this model, i.e. resources withrdf:type Class
(or equivalent) and a node URI.ExtendedIterator<? extends OntClass>
BooleanClassDescription. listOperands()
Answer an iterator over all of the classes that are the operands of this Boolean class expression.ExtendedIterator<OntClass>
OntClass. listSubClasses()
Answer an iterator over all of the classes that are declared to be sub-classes of this class.ExtendedIterator<OntClass>
OntClass. listSubClasses(boolean direct)
Answer an iterator over the classes that are declared to be sub-classes of this class.ExtendedIterator<OntClass>
OntClass. listSuperClasses()
Answer an iterator over all of the classes that are super-classes of this class.ExtendedIterator<OntClass>
OntClass. listSuperClasses(boolean direct)
Answer an iterator over all of the classes that are super-classes of this class.static java.util.List<OntClass>
OntTools. namedHierarchyRoots(OntModel m)
Answer a list of the named hierarchy roots of a givenOntModel
.Methods in org.apache.jena.ontology with parameters of type OntClass Modifier and Type Method Description CardinalityQRestriction
OntModel. createCardinalityQRestriction(java.lang.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(java.lang.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(java.lang.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 byhasClassQ
. -
Uses of OntClass in org.apache.jena.ontology.impl
Classes in org.apache.jena.ontology.impl that implement OntClass Modifier and Type Class Description class
AllValuesFromRestrictionImpl
Implementation of the allValuesFrom restriction abstraction.class
BooleanClassDescriptionImpl
Shared implementation for implementations of Boolean clas expressions.class
CardinalityQRestrictionImpl
Implementation of the exact qualified cardinality restrictionclass
CardinalityRestrictionImpl
Implementation of the cardinality restriction abstraction.class
ComplementClassImpl
Implementation of a node representing a complement class description.class
EnumeratedClassImpl
Implementation of a node representing an enumerated class description.class
HasValueRestrictionImpl
Implementation of the hasValue restriction abstraction.class
IntersectionClassImpl
Implementation of a node representing an intersection class description.class
MaxCardinalityQRestrictionImpl
Implementation of the max qualified cardinality restrictionclass
MaxCardinalityRestrictionImpl
Implementation of the max cardinality restriction abstraction.class
MinCardinalityQRestrictionImpl
Implementation of the min qualified cardinality restrictionclass
MinCardinalityRestrictionImpl
Implementation of the min cardinality restriction abstraction.class
OntClassImpl
Implementation of the ontology abstraction representing ontology classes.class
QualifiedRestrictionImpl
Implementation of qualied restrictions.class
RestrictionImpl
Implementation of the ontology abstraction representing restrictions.class
SomeValuesFromRestrictionImpl
Implementation of the someValuesFrom restriction abstraction.class
UnionClassImpl
Implementation of a node representing a union class description.Methods in org.apache.jena.ontology.impl with type parameters of type OntClass Modifier and Type Method Description <T extends OntClass>
ExtendedIterator<T>IndividualImpl. listOntClasses(boolean direct)
Answer an iterator over the ontology classes to which this individual belongs.Methods in org.apache.jena.ontology.impl that return OntClass Modifier and Type Method Description OntClass
OntResourceImpl. asClass()
Answer a view of this resource as a classOntClass
OntModelImpl. createClass()
Answer a resource that represents an anonymous class description in this model.OntClass
OntModelImpl. createClass(java.lang.String uri)
Answer a resource that represents a class description node in this model.OntClass
OntClassImpl. getDisjointWith()
Answer a class with which this class is disjoint.OntClass
OntClassImpl. getEquivalentClass()
Answer a class that is equivalent to this class.OntClass
IndividualImpl. getOntClass()
Answer an ontology class to which this individual belongs.OntClass
IndividualImpl. getOntClass(boolean direct)
Answer an ontology class to which this individual belongs.OntClass
OntModelImpl. getOntClass(java.lang.String uri)
Answer a resource that represents a class description node in this model.OntClass
ComplementClassImpl. getOperand()
Answer the class that the class described by this class description is a complement of.OntClass
OntClassImpl. getSubClass()
Answer a class that is the sub-class of this class.OntClass
OntClassImpl. getSuperClass()
Answer a class that is the super-class of this class.Methods in org.apache.jena.ontology.impl that return types with arguments of type OntClass Modifier and Type Method Description ExtendedIterator<OntClass>
OntModelImpl. listClasses()
Answer an iterator that ranges over all of the various forms of class description resource in this model.ExtendedIterator<OntClass>
OntPropertyImpl. 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 inlistDeclaredProperties()
.ExtendedIterator<OntClass>
OntPropertyImpl. 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 inlistDeclaredProperties(boolean)
.ExtendedIterator<OntClass>
OntClassImpl. listDisjointWith()
Answer an iterator over all of the classes that this class is declared to be disjoint with.ExtendedIterator<OntClass>
OntPropertyImpl. listDomain()
Answer an iterator over all of the declared domain classes of this property.ExtendedIterator<OntClass>
OntClassImpl. listEquivalentClasses()
Answer an iterator over all of the classes that are declared to be equivalent classes to this class.ExtendedIterator<OntClass>
OntModelImpl. listHierarchyRootClasses()
Answer an iterator over the classes in this ontology model that represent the uppermost nodes of the class hierarchy.ExtendedIterator<OntClass>
OntModelImpl. listNamedClasses()
Answer an iterator that ranges over the named class-descriptions in this model, i.e. resources withrdf:type Class
(or equivalent) and a node URI.ExtendedIterator<? extends OntClass>
BooleanClassDescriptionImpl. listOperands()
Answer an iterator over all of the classes that are the operands of this Boolean class expression.ExtendedIterator<? extends OntClass>
ComplementClassImpl. listOperands()
Answer an iterator over all of the classes that are the operands of this Boolean class expression.ExtendedIterator<OntClass>
OntPropertyImpl. listRange()
Answer an iterator over all of the declared range classes of this property.ExtendedIterator<OntClass>
OntClassImpl. listSubClasses()
Answer an iterator over all of the classes that are declared to be sub-classes of this class.ExtendedIterator<OntClass>
OntClassImpl. listSubClasses(boolean direct)
Answer an iterator over the classes that are declared to be sub-classes of this class.ExtendedIterator<OntClass>
OntClassImpl. listSuperClasses()
Answer an iterator over all of the classes that are declared to be super-classes of this class.ExtendedIterator<OntClass>
OntClassImpl. listSuperClasses(boolean direct)
Answer an iterator over all of the classes that are declared to be super-classes of this class.Methods in org.apache.jena.ontology.impl with parameters of type OntClass Modifier and Type Method Description CardinalityQRestriction
OntModelImpl. createCardinalityQRestriction(java.lang.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
OntModelImpl. createMaxCardinalityQRestriction(java.lang.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
OntModelImpl. createMinCardinalityQRestriction(java.lang.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.boolean
QualifiedRestrictionImpl. 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
QualifiedRestrictionImpl. removeHasClassQ(OntClass cls)
Remove the statement that this restriction has the given class as the class to which all values must belong.void
QualifiedRestrictionImpl. 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 byhasClassQ
. -
Uses of OntClass in org.apache.jena.vocabulary
Fields in org.apache.jena.vocabulary declared as OntClass Modifier and Type Field Description static OntClass
OntEventsVocab. OntEvent
A class representing observable events in an ontology model
-