org.semanticweb.owlapi.model
Interface OWLEquivalentClassesAxiom

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLAxiom, OWLClassAxiom, OWLLogicalAxiom, OWLNaryAxiom, OWLNaryClassAxiom, OWLObject, OWLSubClassOfAxiomSetShortCut
All Known Implementing Classes:
OWLEquivalentClassesAxiomImpl

public interface OWLEquivalentClassesAxiom
extends OWLNaryClassAxiom

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

Represents an EquivalentClasses axiom in the OWL 2 Specification.


Method Summary
 java.util.Set<OWLEquivalentClassesAxiom> asPairwiseAxioms()
          Gets this axiom as a set of pairwise axioms.
 boolean containsNamedEquivalentClass()
          Determines if this equivalent classes axiom contains at least one named class (excluding owl:Thing or owl:Nothing).
 boolean containsOWLNothing()
          Determines if this class axiom makes a class expression equivalent to nothing.
 boolean containsOWLThing()
          Determines if this class axiom makes a class expression equivalent to thing.
 OWLEquivalentClassesAxiom getAxiomWithoutAnnotations()
          Gets an axiom that is structurally equivalent to this axiom without annotations.
 java.util.Set<OWLClass> getNamedClasses()
          Gets the named classes (excluding owl:Thing and owl:Nothing) that are in this equivalent classes axiom.
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLNaryClassAxiom
contains, getClassExpressions, getClassExpressionsAsList, getClassExpressionsMinus
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLAxiom
accept, accept, equalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotations, getAnnotations, getAxiomType, getNNF, isAnnotated, isLogicalAxiom, isOfType, isOfType
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
accept, accept, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLSubClassOfAxiomSetShortCut
asOWLSubClassOfAxioms
 

Method Detail

containsNamedEquivalentClass

boolean containsNamedEquivalentClass()
Determines if this equivalent classes axiom contains at least one named class (excluding owl:Thing or owl:Nothing).

Returns:
true if the axiom contains at least one named class otherwise false. Note that this method will return false if the only named classes are owl:Thing or owl:Nothing.

getNamedClasses

java.util.Set<OWLClass> getNamedClasses()
Gets the named classes (excluding owl:Thing and owl:Nothing) that are in this equivalent classes axiom.

Returns:
A set of classes that represents the named classes that are specified to be equivalent to some other class (expression), excluding the built in classes owl:Thing and owl:Nothing

containsOWLNothing

boolean containsOWLNothing()
Determines if this class axiom makes a class expression equivalent to nothing.

Returns:
true if this axiom contains owl:Nothing as an equivalent class.

containsOWLThing

boolean containsOWLThing()
Determines if this class axiom makes a class expression equivalent to thing.

Returns:
true if this axioms contains owl:Thing as an equivalent class.

asPairwiseAxioms

java.util.Set<OWLEquivalentClassesAxiom> asPairwiseAxioms()
Description copied from interface: OWLNaryAxiom
Gets this axiom as a set of pairwise axioms. Note that annotations on this axiom will not be copied to each axiom returned in the set of pairwise axioms.

Specified by:
asPairwiseAxioms in interface OWLNaryAxiom
Returns:
This axiom as a set of pairwise axioms.

getAxiomWithoutAnnotations

OWLEquivalentClassesAxiom getAxiomWithoutAnnotations()
Description copied from interface: OWLAxiom
Gets an axiom that is structurally equivalent to this axiom without annotations. This essentially returns a version of this axiom stripped of any annotations

Specified by:
getAxiomWithoutAnnotations in interface OWLAxiom
Returns:
The annotationless version of this axiom