uk.ac.manchester.cs.owl.owlapi
Class OWLClassImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLClassExpressionImpl
          extended by uk.ac.manchester.cs.owl.owlapi.OWLClassImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLClass, OWLClassExpression, OWLEntity, OWLLogicalEntity, OWLNamedObject, OWLObject, OWLPropertyRange, SWRLPredicate

public class OWLClassImpl
extends OWLClassExpressionImpl
implements OWLClass

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Oct-2006


Constructor Summary
OWLClassImpl(OWLDataFactory dataFactory, IRI iri)
           
 
Method Summary
 void accept(OWLClassExpressionVisitor visitor)
          Accepts a visit from an OWLExpressionVisitor
<O> O
accept(OWLClassExpressionVisitorEx<O> visitor)
           
 void accept(OWLEntityVisitor visitor)
           
<O> O
accept(OWLEntityVisitorEx<O> visitor)
           
 void accept(OWLNamedObjectVisitor visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 java.util.Set<OWLClassExpression> asConjunctSet()
          Interprets this expression as a conjunction and returns the conjuncts.
 java.util.Set<OWLClassExpression> asDisjunctSet()
          Interprets this expression as a disjunction and returns the disjuncts.
 OWLAnnotationProperty asOWLAnnotationProperty()
          A convenience method that obtains this entity as an OWLAnnotationProperty (in order to avoid explicit casting).
 OWLClass asOWLClass()
          If this class expression is in fact a named class then this method may be used to obtain the expression as an OWLClass without the need for casting.
 OWLDataProperty asOWLDataProperty()
          A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting).
 OWLDatatype asOWLDatatype()
          A convenience method that obtains this entity as an OWLDatatype (in order to avoid explicit casting).
 OWLNamedIndividual asOWLNamedIndividual()
          A convenience method that obtains this entity as an OWLNamedIndividual (in order to avoid explicit casting).
 OWLObjectProperty asOWLObjectProperty()
          A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting).
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean containsConjunct(OWLClassExpression ce)
          Determines if this class expression contains a particular conjunct.
 boolean equals(java.lang.Object obj)
           
 java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
           
 java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
          Gets the annotations for this entity.
 java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
          Obtains the annotations on this entity where the annotation has the specified URI.
 ClassExpressionType getClassExpressionType()
          Gets the class expression type for this class expression
 OWLClassExpression getComplementNNF()
          Gets the negation normal form of the complement of this expression.
 java.util.Set<OWLClassExpression> getDisjointClasses(OWLOntology ontology)
          Gets the classes which have been asserted to be disjoint with this class by axioms in the specified ontology.
 java.util.Set<OWLClassExpression> getDisjointClasses(java.util.Set<OWLOntology> ontologies)
          Gets the classes which have been asserted to be disjoint with this class by axioms in the specified ontologies.
 java.util.Set<OWLDisjointClassesAxiom> getDisjointClassesAxioms(OWLOntology ontology)
           
 java.util.Set<OWLDisjointUnionAxiom> getDisjointUnionAxioms(OWLOntology ontology)
           
 EntityType getEntityType()
          Gets the entity type for this entity
 java.util.Set<OWLClassExpression> getEquivalentClasses(OWLOntology ontology)
          A convenience method that examines the axioms in the specified ontology and returns the class expressions corresponding to equivalent classes of this class.
 java.util.Set<OWLClassExpression> getEquivalentClasses(java.util.Set<OWLOntology> ontologies)
          A convenience method that examines the axioms in the specified ontologies and returns the class expressions corresponding to equivalent classes of this class.
 java.util.Set<OWLEquivalentClassesAxiom> getEquivalentClassesAxioms(OWLOntology ontology)
           
 java.util.Set<OWLIndividual> getIndividuals(OWLOntology ontology)
          Gets the individuals that have been asserted to be an instance of this class by axioms in the specified ontology.
 java.util.Set<OWLIndividual> getIndividuals(java.util.Set<OWLOntology> ontologies)
          Gets the individuals that have been asserted to be an instance of this class by axioms in the speficied ontologies.
 IRI getIRI()
          Gets the IRI of this object
 OWLClassExpression getNNF()
          Gets this expression in negation normal form.
 OWLClassExpression getObjectComplementOf()
          Gets the object complement of this class expression.
<E extends OWLEntity>
E
getOWLEntity(EntityType<E> entityType)
          Gets an entity that has the same IRI as this entity but is of the specified type.
 java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
          Gets the axioms in the specified ontology that contain this entity in their signature.
 java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology, boolean includeImports)
          Gets the axioms in the specified ontology and possibly its imports closure that contain this entity in their signature.
 java.util.Set<OWLSubClassOfAxiom> getSubClassAxioms(OWLOntology ontology)
           
 java.util.Set<OWLClassExpression> getSubClasses(OWLOntology ontology)
          Gets the classes which have been asserted to be subclasses of this class in the specified ontology.
 java.util.Set<OWLClassExpression> getSubClasses(java.util.Set<OWLOntology> ontologies)
          Gets the classes which have been asserted to be subclasses of this class in the specified ontologies.
 java.util.Set<OWLClassExpression> getSuperClasses(OWLOntology ontology)
          A convenience method that examines the axioms in the specified ontology and return the class expressions corresponding to super classes of this class.
 java.util.Set<OWLClassExpression> getSuperClasses(java.util.Set<OWLOntology> ontologies)
          A convenience method that examines the axioms in the specified ontologies and returns the class expression corresponding to the asserted super classes of this class.
 java.net.URI getURI()
           
 boolean isAnonymous()
          Determines whether or not this expression represents an anonymous class expression.
 boolean isBottomEntity()
          Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the bottom object property) , owl:bottomDataProperty (the bottom data property).
 boolean isBuiltIn()
          Determines if this entity is a built in entity.
 boolean isClassExpressionLiteral()
          Determines if this class is a literal.
 boolean isDefined(OWLOntology ontology)
          Determines if this class has at least one equivalent class in the specified ontology.
 boolean isDefined(java.util.Set<OWLOntology> ontologies)
          Determines if this class is a top level class in an OWLEquivalentClassesAxiom in at least one of the specified ontologies.
 boolean isOWLAnnotationProperty()
          A convenience method that determines if this entity is an OWLAnnotationProperty
 boolean isOWLClass()
          A convenience method that determines if this entity is an OWLClass
 boolean isOWLDataProperty()
          A convenience method that determines if this entity is an OWLDataProperty
 boolean isOWLDatatype()
          A convenience method that determines if this entity is an OWLDatatype
 boolean isOWLNamedIndividual()
          A convenience method that determines if this entity is an OWLNamedIndividual
 boolean isOWLNothing()
          Determines if this expression is the built in class owl:Nothing.
 boolean isOWLObjectProperty()
          A convenience method that determines if this entity is an OWLObjectProperty
 boolean isOWLThing()
          Determines if this expression is the built in class owl:Thing.
 boolean isTopEntity()
          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).
 boolean isType(EntityType entityType)
          Tests to see if this entity is of the specified type
 java.lang.String toStringID()
          Returns a string representation that can be used as the ID of this entity.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OWLClassImpl

public OWLClassImpl(OWLDataFactory dataFactory,
                    IRI iri)
Method Detail

isTopEntity

public 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
Overrides:
isTopEntity in class OWLObjectImpl
Returns:
true if this object corresponds to one of the above entities.

isBottomEntity

public 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
Overrides:
isBottomEntity in class OWLObjectImpl
Returns:
true if this object corresponds to one of the above entities.

getClassExpressionType

public ClassExpressionType getClassExpressionType()
Gets the class expression type for this class expression

Specified by:
getClassExpressionType in interface OWLClassExpression
Returns:
The class expression type

getObjectComplementOf

public OWLClassExpression getObjectComplementOf()
Gets the object complement of this class expression.

Specified by:
getObjectComplementOf in interface OWLClassExpression
Returns:
A class expression that is the complement of this class expression.

getEntityType

public EntityType getEntityType()
Gets the entity type for this entity

Specified by:
getEntityType in interface OWLEntity
Returns:
The entity type

getOWLEntity

public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
Gets an entity that has the same IRI as this entity but is of the specified type.

Specified by:
getOWLEntity in interface OWLEntity
Parameters:
entityType - The type of the entity to obtain. This entity is not affected in any way.
Returns:
An entity that has the same IRI as this entity and is of the specified type

isType

public boolean isType(EntityType entityType)
Tests to see if this entity is of the specified type

Specified by:
isType in interface OWLEntity
Parameters:
entityType - The entity type
Returns:
true if this entity is of the specified type, otherwise false.

toStringID

public java.lang.String toStringID()
Returns a string representation that can be used as the ID of this entity. This is the toString representation of the IRI

Specified by:
toStringID in interface OWLEntity
Returns:
A string representing the toString of the IRI of this entity.

getIRI

public IRI getIRI()
Description copied from interface: OWLNamedObject
Gets the IRI of this object

Specified by:
getIRI in interface OWLNamedObject
Returns:
The IRI of this object

isBuiltIn

public boolean isBuiltIn()
Description copied from interface: OWLEntity
Determines if this entity is a built in entity. The entity is a built in entity if it is:

Specified by:
isBuiltIn in interface OWLEntity
Returns:
true if this entity is a built in entity, or false if this entity is not a builtin entity.

getReferencingAxioms

public java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
Description copied from interface: OWLEntity
Gets the axioms in the specified ontology that contain this entity in their signature.

Specified by:
getReferencingAxioms in interface OWLEntity
Parameters:
ontology - The ontology that will be searched for axioms
Returns:
The axioms in the specified ontology whose signature contains this entity.

getReferencingAxioms

public java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology,
                                                    boolean includeImports)
Description copied from interface: OWLEntity
Gets the axioms in the specified ontology and possibly its imports closure that contain this entity in their signature.

Specified by:
getReferencingAxioms in interface OWLEntity
Parameters:
ontology - The ontology that will be searched for axioms
includeImports - If true then axioms in the imports closure will also be returned, if false then only the axioms in the specified ontology will be returned.
Returns:
The axioms in the specified ontology whose signature contains this entity.

isAnonymous

public boolean isAnonymous()
Description copied from interface: OWLClassExpression
Determines whether or not this expression represents an anonymous class expression.

Specified by:
isAnonymous in interface OWLClassExpression
Returns:
true if this is an anonymous class expression, or false if this is a named class (OWLClass)

isClassExpressionLiteral

public 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.

asOWLClass

public OWLClass asOWLClass()
Description copied from interface: OWLClassExpression
If this class expression is in fact a named class then this method may be used to obtain the expression as an OWLClass without the need for casting. The general pattern of use is to use the isAnonymous to first check

Specified by:
asOWLClass in interface OWLClassExpression
Specified by:
asOWLClass in interface OWLEntity
Returns:
This class expression as an OWLClass.

getURI

public java.net.URI getURI()

isOWLThing

public boolean isOWLThing()
Description copied from interface: OWLClassExpression
Determines if this expression is the built in class owl:Thing. This method does not determine if the class is equivalent to owl:Thing.

Specified by:
isOWLThing in interface OWLClassExpression
Returns:
true if this expression is owl:Thing, or false if this expression is not owl:Thing

isOWLNothing

public boolean isOWLNothing()
Description copied from interface: OWLClassExpression
Determines if this expression is the built in class owl:Nothing. This method does not determine if the class is equivalent to owl:Nothing.

Specified by:
isOWLNothing in interface OWLClassExpression
Returns:
true if this expression is owl:Nothing, or false if this expression is not owl:Nothing.

getNNF

public OWLClassExpression getNNF()
Description copied from interface: OWLClassExpression
Gets this expression in negation normal form.

Specified by:
getNNF in interface OWLClassExpression
Returns:
The expression in negation normal form.

asConjunctSet

public java.util.Set<OWLClassExpression> asConjunctSet()
Description copied from interface: OWLClassExpression
Interprets this expression as a conjunction and returns the conjuncts. This method does not normalise the expression (full CNF is not computed).

Specified by:
asConjunctSet in interface OWLClassExpression
Returns:
The conjucts of this expression if it is a conjunction (object intersection of), or otherwise a singleton set containing this expression. Note that nested conjunctions will be flattened, for example, calling this method on (A and B) and C will return the set {A, B, C}

containsConjunct

public boolean containsConjunct(OWLClassExpression ce)
Description copied from interface: OWLClassExpression
Determines if this class expression contains a particular conjunct. This method does not do any normalisation such as applying DeMorgans rules.

Specified by:
containsConjunct in interface OWLClassExpression
Parameters:
ce - The conjunct to test for
Returns:
true if this class expression is equal to ce or if this class expression is an ObjectIntersectionOf (possibly nested withing another ObjectIntersectionOf) that contains ce, otherwise false.

asDisjunctSet

public java.util.Set<OWLClassExpression> asDisjunctSet()
Description copied from interface: OWLClassExpression
Interprets this expression as a disjunction and returns the disjuncts. This method does not normalise the expression (full DNF is not computed).

Specified by:
asDisjunctSet in interface OWLClassExpression
Returns:
The disjuncts of this expression if it is a disjunction (object union of), or otherwise a singleton set containing this expression. Note that nested disjunctions will be flattened, for example, calling this method on (A or B) or C will return the set {A, B, C}

getComplementNNF

public OWLClassExpression getComplementNNF()
Description copied from interface: OWLClassExpression
Gets the negation normal form of the complement of this expression.

Specified by:
getComplementNNF in interface OWLClassExpression
Returns:
A expression that represents the NNF of the complement of this expression.

getSubClassAxioms

public java.util.Set<OWLSubClassOfAxiom> getSubClassAxioms(OWLOntology ontology)

getEquivalentClassesAxioms

public java.util.Set<OWLEquivalentClassesAxiom> getEquivalentClassesAxioms(OWLOntology ontology)

getDisjointClassesAxioms

public java.util.Set<OWLDisjointClassesAxiom> getDisjointClassesAxioms(OWLOntology ontology)

getDisjointUnionAxioms

public java.util.Set<OWLDisjointUnionAxiom> getDisjointUnionAxioms(OWLOntology ontology)

getSuperClasses

public java.util.Set<OWLClassExpression> getSuperClasses(OWLOntology ontology)
Description copied from interface: OWLClass
A convenience method that examines the axioms in the specified ontology and return the class expressions corresponding to super classes of this class.

Specified by:
getSuperClasses in interface OWLClass
Parameters:
ontology - The ontology to be examined
Returns:
A Set of OWLClassExpressions that represent the superclasses of this class, which have been asserted in the specified ontology.

getSuperClasses

public java.util.Set<OWLClassExpression> getSuperClasses(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLClass
A convenience method that examines the axioms in the specified ontologies and returns the class expression corresponding to the asserted super classes of this class.

Specified by:
getSuperClasses in interface OWLClass
Parameters:
ontologies - The set of ontologies to be examined.
Returns:
A set of OWLClassExpressionss that represent the super classes of this class

getSubClasses

public java.util.Set<OWLClassExpression> getSubClasses(OWLOntology ontology)
Description copied from interface: OWLClass
Gets the classes which have been asserted to be subclasses of this class in the specified ontology.

Specified by:
getSubClasses in interface OWLClass
Parameters:
ontology - The ontology which should be examined for subclass axioms.
Returns:
A Set of OWLClassExpressions that represet the asserted subclasses of this class.

getSubClasses

public java.util.Set<OWLClassExpression> getSubClasses(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLClass
Gets the classes which have been asserted to be subclasses of this class in the specified ontologies.

Specified by:
getSubClasses in interface OWLClass
Parameters:
ontologies - The ontologies which should be examined for subclass axioms.
Returns:
A Set of OWLClassExpressions that represet the asserted subclasses of this class.

getEquivalentClasses

public java.util.Set<OWLClassExpression> getEquivalentClasses(OWLOntology ontology)
Description copied from interface: OWLClass
A convenience method that examines the axioms in the specified ontology and returns the class expressions corresponding to equivalent classes of this class.

Specified by:
getEquivalentClasses in interface OWLClass
Parameters:
ontology - The ontology to be examined for axioms
Returns:
A Set of OWLClassExpressions that represent the equivalent classes of this class, that have been asserted in the specified ontology.

getEquivalentClasses

public java.util.Set<OWLClassExpression> getEquivalentClasses(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLClass
A convenience method that examines the axioms in the specified ontologies and returns the class expressions corresponding to equivalent classes of this class.

Specified by:
getEquivalentClasses in interface OWLClass
Parameters:
ontologies - The ontologies to be examined for axioms
Returns:
A Set of OWLClassExpressions that represent the equivalent classes of this class, that have been asserted in the specified ontologies.

getDisjointClasses

public java.util.Set<OWLClassExpression> getDisjointClasses(OWLOntology ontology)
Description copied from interface: OWLClass
Gets the classes which have been asserted to be disjoint with this class by axioms in the specified ontology.

Specified by:
getDisjointClasses in interface OWLClass
Parameters:
ontology - The ontology to search for disjoint class axioms
Returns:
A Set of OWLClassExpressions that represent the disjoint classes of this class.

getDisjointClasses

public java.util.Set<OWLClassExpression> getDisjointClasses(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLClass
Gets the classes which have been asserted to be disjoint with this class by axioms in the specified ontologies.

Specified by:
getDisjointClasses in interface OWLClass
Parameters:
ontologies - The ontologies to search for disjoint class axioms
Returns:
A Set of OWLClassExpressions that represent the disjoint classes of this class.

getIndividuals

public java.util.Set<OWLIndividual> getIndividuals(OWLOntology ontology)
Description copied from interface: OWLClass
Gets the individuals that have been asserted to be an instance of this class by axioms in the specified ontology.

Specified by:
getIndividuals in interface OWLClass
Parameters:
ontology - The ontology to be examined for class assertion axioms that assert an individual to be an instance of this class.
Returns:
A Set of OWLIndividuals that represent the individual that have been asserted to be an instance of this class.

getIndividuals

public java.util.Set<OWLIndividual> getIndividuals(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLClass
Gets the individuals that have been asserted to be an instance of this class by axioms in the speficied ontologies.

Specified by:
getIndividuals in interface OWLClass
Parameters:
ontologies - The ontologies to be examined for class assertion axioms that assert an individual to be an instance of this class.
Returns:
A Set of OWLIndividuals that represent the individual that have been asserted to be an instance of this class.

getAnnotations

public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
Description copied from interface: OWLEntity
Gets the annotations for this entity. These are deemed to be annotations in annotation assertion axioms that have a subject that is an IRI that is equal to the IRI of this entity.

Specified by:
getAnnotations in interface OWLEntity
Parameters:
ontology - The ontology to be examined for annotation assertion axioms
Returns:
The annotations that participate directly in an annotation assertion whose subject is an IRI corresponding to the IRI of this entity.

getAnnotationAssertionAxioms

public java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
Specified by:
getAnnotationAssertionAxioms in interface OWLEntity

getAnnotations

public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology,
                                                   OWLAnnotationProperty annotationProperty)
Description copied from interface: OWLEntity
Obtains the annotations on this entity where the annotation has the specified URI.

Specified by:
getAnnotations in interface OWLEntity
Parameters:
ontology - The ontology to examine for annotation axioms
annotationProperty - The annotation property
Returns:
A set of OWLAnnotation objects that have the specified URI.

isDefined

public boolean isDefined(OWLOntology ontology)
Determines if this class has at least one equivalent class in the specified ontology.

Specified by:
isDefined in interface OWLClass
Parameters:
ontology - The ontology to examine for axioms.
Returns:
true if ontology contains an EquivalentClassesAxiom where this class is a top level class in the axiom, other wise false.

isDefined

public boolean isDefined(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLClass
Determines if this class is a top level class in an OWLEquivalentClassesAxiom in at least one of the specified ontologies.

Specified by:
isDefined in interface OWLClass
Parameters:
ontologies - The ontologies to examine for axioms.
Returns:
true if one or more of ontologies contains an EquivalentClassesAxiom where this class is a top level class in the axiom, other wise false.

asOWLDataProperty

public OWLDataProperty asOWLDataProperty()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting).

Specified by:
asOWLDataProperty in interface OWLEntity
Returns:
The entity as an OWLDataProperty.

asOWLDatatype

public OWLDatatype asOWLDatatype()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLDatatype (in order to avoid explicit casting).

Specified by:
asOWLDatatype in interface OWLEntity
Returns:
The entity as an OWLDatatype.

asOWLNamedIndividual

public OWLNamedIndividual asOWLNamedIndividual()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLNamedIndividual (in order to avoid explicit casting).

Specified by:
asOWLNamedIndividual in interface OWLEntity
Returns:
The entity as an OWLNamedIndividual.

asOWLObjectProperty

public OWLObjectProperty asOWLObjectProperty()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting).

Specified by:
asOWLObjectProperty in interface OWLEntity
Returns:
The entity as an OWLObjectProperty.

isOWLClass

public boolean isOWLClass()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLClass

Specified by:
isOWLClass in interface OWLEntity
Returns:
true if this entity is an OWLClass, otherwise false

isOWLDataProperty

public boolean isOWLDataProperty()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLDataProperty

Specified by:
isOWLDataProperty in interface OWLEntity
Returns:
true if this entity is an OWLDataProperty, otherwise false

isOWLDatatype

public boolean isOWLDatatype()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLDatatype

Specified by:
isOWLDatatype in interface OWLEntity
Returns:
true if this entity is an OWLDatatype, otherwise false

isOWLNamedIndividual

public boolean isOWLNamedIndividual()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLNamedIndividual

Specified by:
isOWLNamedIndividual in interface OWLEntity
Returns:
true if this entity is an OWLNamedIndividual, otherwise false

isOWLObjectProperty

public boolean isOWLObjectProperty()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLObjectProperty

Specified by:
isOWLObjectProperty in interface OWLEntity
Returns:
true if this entity is an OWLObjectProperty, otherwise false

asOWLAnnotationProperty

public OWLAnnotationProperty asOWLAnnotationProperty()
Description copied from interface: OWLEntity
A convenience method that obtains this entity as an OWLAnnotationProperty (in order to avoid explicit casting).

Specified by:
asOWLAnnotationProperty in interface OWLEntity
Returns:
The entity as an OWLAnnotationProperty.

isOWLAnnotationProperty

public boolean isOWLAnnotationProperty()
Description copied from interface: OWLEntity
A convenience method that determines if this entity is an OWLAnnotationProperty

Specified by:
isOWLAnnotationProperty in interface OWLEntity
Returns:
true if this entity is an OWLAnnotationProperty, otherwise false

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl

accept

public 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

public void accept(OWLEntityVisitor visitor)
Specified by:
accept in interface OWLEntity

accept

public void accept(OWLObjectVisitor visitor)
Specified by:
accept in interface OWLObject

accept

public void accept(OWLNamedObjectVisitor visitor)
Specified by:
accept in interface OWLNamedObject

accept

public <O> O accept(OWLEntityVisitorEx<O> visitor)
Specified by:
accept in interface OWLEntity

accept

public <O> O accept(OWLClassExpressionVisitorEx<O> visitor)
Specified by:
accept in interface OWLClassExpression

accept

public <O> O accept(OWLObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLObject

compareObjectOfSameType

protected int compareObjectOfSameType(OWLObject object)
Specified by:
compareObjectOfSameType in class OWLObjectImpl