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

public interface OWLClass extends OWLClassExpression, OWLLogicalEntity, OWLNamedObject
Represents a Class in the OWL 2 specification.
Since:
2.0.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Method Details

    • hashIndex

      default int hashIndex()
      Specified by:
      hashIndex in interface HasHashIndex
      Returns:
      index for this type. This is not a hashcode for instances, rather a hashcode for the types.
    • typeIndex

      default int typeIndex()
      Specified by:
      typeIndex in interface HasIndex
      Returns:
      index for this type. This is not a hashcode for instances, rather a sorting index for the types.
    • getEntityType

      default EntityType<?> getEntityType()
      Description copied from interface: OWLEntity
      Gets the entity type for this entity.
      Specified by:
      getEntityType in interface OWLEntity
      Returns:
      The entity type
    • getClassExpressionType

      default ClassExpressionType getClassExpressionType()
      Description copied from interface: OWLClassExpression
      Gets the class expression type for this class expression.
      Specified by:
      getClassExpressionType in interface OWLClassExpression
      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 interface OWLObject
      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 interface OWLObject
      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 interface OWLClassExpression
      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 interface AsOWLClass
      Returns:
      true if this entity is an OWLClass, otherwise false
    • accept

      default void accept(OWLObjectVisitor visitor)
      Description copied from interface: OWLObject
      Accepts a visitor
      Specified by:
      accept in interface OWLObject
      Parameters:
      visitor - The visitor
    • accept

      default <O> O accept(OWLObjectVisitorEx<O> visitor)
      Description copied from interface: OWLObject
      Accepts a visitor
      Specified by:
      accept in interface OWLObject
      Type Parameters:
      O - visitor return type
      Parameters:
      visitor - The visitor
      Returns:
      visitor value
    • accept

      default void accept(OWLClassExpressionVisitor visitor)
      Description copied from interface: OWLClassExpression
      Accepts a visit from an OWLExpressionVisitor.
      Specified by:
      accept in interface OWLClassExpression
      Parameters:
      visitor - The visitor that wants to visit
    • accept

      default <O> O accept(OWLClassExpressionVisitorEx<O> visitor)
      Specified by:
      accept in interface OWLClassExpression
      Type Parameters:
      O - visitor return type
      Parameters:
      visitor - visitor
      Returns:
      visitor return value
    • accept

      default void accept(OWLEntityVisitor visitor)
      Specified by:
      accept in interface OWLEntity
      Parameters:
      visitor - visitor
    • accept

      default <O> O accept(OWLEntityVisitorEx<O> visitor)
      Specified by:
      accept in interface OWLEntity
      Type Parameters:
      O - visitor return type
      Parameters:
      visitor - visitor
      Returns:
      visitor return value
    • accept

      default void accept(OWLNamedObjectVisitor visitor)
      Description copied from interface: OWLNamedObject
      Accepts a visitor.
      Specified by:
      accept in interface OWLNamedObject
      Parameters:
      visitor - The visitor
    • accept

      default <O> O accept(OWLNamedObjectVisitorEx<O> visitor)
      Description copied from interface: OWLNamedObject
      Accepts a visitor.
      Specified by:
      accept in interface OWLNamedObject
      Type Parameters:
      O - visitor return type
      Parameters:
      visitor - The visitor
      Returns:
      visitor return value