Package org.semanticweb.owlapi.model
Interface OWLClass
- All Superinterfaces:
AsOWLAnnotationProperty
,AsOWLClass
,AsOWLDataProperty
,AsOWLDatatype
,AsOWLNamedIndividual
,AsOWLObjectProperty
,Comparable<OWLObject>
,HasAnnotationPropertiesInSignature
,HasAnonymousIndividuals
,HasClassesInSignature
,HasComponents
,HasContainsEntityInSignature
,HasDataPropertiesInSignature
,HasDatatypesInSignature
,HasHashIndex
,HasIndex
,HasIndividualsInSignature
,HasIRI
,HasObjectPropertiesInSignature
,HasSignature
,IsAnonymous
,OWLClassExpression
,OWLEntity
,OWLLogicalEntity
,OWLNamedObject
,OWLObject
,OWLPrimitive
,OWLPropertyRange
,Serializable
,SWRLPredicate
- All Known Implementing Classes:
OWLClassImpl
Represents a Class in
the OWL 2 specification.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(OWLClassExpressionVisitor visitor) Accepts a visit from anOWLExpressionVisitor
.default <O> O
accept
(OWLClassExpressionVisitorEx<O> visitor) default void
accept
(OWLEntityVisitor visitor) default <O> O
accept
(OWLEntityVisitorEx<O> visitor) default void
accept
(OWLNamedObjectVisitor visitor) Accepts a visitor.default <O> O
accept
(OWLNamedObjectVisitorEx<O> visitor) Accepts a visitor.default void
accept
(OWLObjectVisitor visitor) Accepts a visitordefault <O> O
accept
(OWLObjectVisitorEx<O> visitor) Accepts a visitordefault ClassExpressionType
Gets the class expression type for this class expression.default EntityType<?>
Gets the entity type for this entity.default int
default boolean
Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the bottom object property) , owl:bottomDataProperty (the bottom data property).default boolean
Determines if this class is a literal.default boolean
A convenience method that determines if this entity is an OWLClass.default boolean
Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the top object property) , owl:topDataProperty (the top data property) or rdfs:Literal (the top datatype).default int
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLAnnotationProperty
asOWLAnnotationProperty, isOWLAnnotationProperty
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLClass
asOWLClass
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLDataProperty
asOWLDataProperty, isOWLDataProperty
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLDatatype
asOWLDatatype, isOWLDatatype
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLNamedIndividual
asOWLNamedIndividual, isOWLNamedIndividual
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLObjectProperty
asOWLObjectProperty, isOWLObjectProperty
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasAnonymousIndividuals
anonymousIndividuals, getAnonymousIndividuals
Methods inherited from interface org.semanticweb.owlapi.model.HasClassesInSignature
classesInSignature, getClassesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasComponents
componentsAnnotationsFirst, componentsWithoutAnnotations
Methods inherited from interface org.semanticweb.owlapi.model.HasContainsEntityInSignature
containsEntityInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDataPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDatatypesInSignature
datatypesInSignature, getDatatypesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasIndividualsInSignature
getIndividualsInSignature, individualsInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
Methods inherited from interface org.semanticweb.owlapi.model.IsAnonymous
isNamed
Methods inherited from interface org.semanticweb.owlapi.model.OWLClassExpression
asConjunctSet, asDisjunctSet, conjunctSet, containsConjunct, disjunctSet, getComplementNNF, getNNF, getObjectComplementOf, isOWLNothing, isOWLThing
Methods inherited from interface org.semanticweb.owlapi.model.OWLEntity
isAnonymous, isBuiltIn, isType, toStringID
Methods inherited from interface org.semanticweb.owlapi.model.OWLLogicalEntity
components, initHashCode
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isAxiom, isIndividual, isIRI, isOntology, nestedClassExpressions
-
Method Details
-
hashIndex
default int hashIndex()- Specified by:
hashIndex
in interfaceHasHashIndex
- Returns:
- index for this type. This is not a hashcode for instances, rather a hashcode for the types.
-
typeIndex
default int typeIndex() -
getEntityType
Description copied from interface:OWLEntity
Gets the entity type for this entity.- Specified by:
getEntityType
in interfaceOWLEntity
- Returns:
- The entity type
-
getClassExpressionType
Description copied from interface:OWLClassExpression
Gets the class expression type for this class expression.- Specified by:
getClassExpressionType
in interfaceOWLClassExpression
- Returns:
- The class expression type
-
isTopEntity
default boolean isTopEntity()Description copied from interface:OWLObject
Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the top object property) , owl:topDataProperty (the top data property) or rdfs:Literal (the top datatype).- Specified by:
isTopEntity
in interfaceOWLObject
- Returns:
true
if this object corresponds to one of the above entities.
-
isBottomEntity
default boolean isBottomEntity()Description copied from interface:OWLObject
Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the bottom object property) , owl:bottomDataProperty (the bottom data property).- Specified by:
isBottomEntity
in interfaceOWLObject
- Returns:
true
if this object corresponds to one of the above entities.
-
isClassExpressionLiteral
default boolean isClassExpressionLiteral()Description copied from interface:OWLClassExpression
Determines if this class is a literal. A literal being either a named class or the negation of a named class (i.e. A or not(A)).- Specified by:
isClassExpressionLiteral
in interfaceOWLClassExpression
- Returns:
true
if this is a literal, or false if this is not a literal.
-
isOWLClass
default boolean isOWLClass()Description copied from interface:AsOWLClass
A convenience method that determines if this entity is an OWLClass.- Specified by:
isOWLClass
in interfaceAsOWLClass
- Returns:
true
if this entity is an OWLClass, otherwisefalse
-
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLClassExpression
Accepts a visit from anOWLExpressionVisitor
.- Specified by:
accept
in interfaceOWLClassExpression
- Parameters:
visitor
- The visitor that wants to visit
-
accept
- Specified by:
accept
in interfaceOWLClassExpression
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- visitor- Returns:
- visitor return value
-
accept
-
accept
-
accept
Description copied from interface:OWLNamedObject
Accepts a visitor.- Specified by:
accept
in interfaceOWLNamedObject
- Parameters:
visitor
- The visitor
-
accept
Description copied from interface:OWLNamedObject
Accepts a visitor.- Specified by:
accept
in interfaceOWLNamedObject
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- The visitor- Returns:
- visitor return value
-