public class OWLEquivalentClassesAxiomImpl extends OWLNaryClassAxiomImpl implements OWLEquivalentClassesAxiom
Constructor and Description |
---|
OWLEquivalentClassesAxiomImpl(java.util.Set<? extends OWLClassExpression> classExpressions,
java.util.Collection<? extends OWLAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLAxiomVisitor visitor) |
<O> O |
accept(OWLAxiomVisitorEx<O> visitor) |
void |
accept(OWLObjectVisitor visitor) |
<O> O |
accept(OWLObjectVisitorEx<O> visitor) |
java.util.Set<OWLSubClassOfAxiom> |
asOWLSubClassOfAxioms() |
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.
|
boolean |
equals(java.lang.Object obj) |
OWLEquivalentClassesAxiom |
getAnnotatedAxiom(java.util.Set<OWLAnnotation> annotations)
Gets a copy of this axiom that is annotated with the specified annotations.
|
AxiomType<?> |
getAxiomType()
Gets the axiom type for this axiom.
|
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.
|
compareObjectOfSameType, contains, getClassExpressions, getClassExpressionsAsList, getClassExpressionsMinus
isAnnotationAxiom, isLogicalAxiom
accept, equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isOfType, isOfType, mergeAnnos
compareLists, compareSets, compareTo, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, setOWLDataFactory, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, getClassExpressions, getClassExpressionsAsList, getClassExpressionsMinus
equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isLogicalAxiom, isOfType, isOfType
getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
public OWLEquivalentClassesAxiomImpl(java.util.Set<? extends OWLClassExpression> classExpressions, java.util.Collection<? extends OWLAnnotation> annotations)
public OWLEquivalentClassesAxiom getAxiomWithoutAnnotations()
OWLAxiom
getAxiomWithoutAnnotations
in interface OWLAxiom
getAxiomWithoutAnnotations
in interface OWLEquivalentClassesAxiom
public OWLEquivalentClassesAxiom getAnnotatedAxiom(java.util.Set<OWLAnnotation> annotations)
OWLAxiom
getAnnotatedAxiom
in interface OWLAxiom
annotations
- The annotations that will be added to existing annotations to annotate the copy of this axiomOWLAxiom#getAnnotations()
method.public java.util.Set<OWLEquivalentClassesAxiom> asPairwiseAxioms()
OWLNaryAxiom
asPairwiseAxioms
in interface OWLEquivalentClassesAxiom
asPairwiseAxioms
in interface OWLNaryAxiom
public boolean containsNamedEquivalentClass()
OWLEquivalentClassesAxiom
containsNamedEquivalentClass
in interface OWLEquivalentClassesAxiom
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.public boolean containsOWLNothing()
OWLEquivalentClassesAxiom
containsOWLNothing
in interface OWLEquivalentClassesAxiom
true
if this axiom contains owl:Nothing as an equivalent
class.public boolean containsOWLThing()
OWLEquivalentClassesAxiom
containsOWLThing
in interface OWLEquivalentClassesAxiom
true
if this axioms contains owl:Thing as an equivalent class.public java.util.Set<OWLClass> getNamedClasses()
OWLEquivalentClassesAxiom
getNamedClasses
in interface OWLEquivalentClassesAxiom
public java.util.Set<OWLSubClassOfAxiom> asOWLSubClassOfAxioms()
asOWLSubClassOfAxioms
in interface OWLSubClassOfAxiomSetShortCut
public boolean equals(java.lang.Object obj)
equals
in class OWLNaryClassAxiomImpl
public void accept(OWLAxiomVisitor visitor)
public void accept(OWLObjectVisitor visitor)
public <O> O accept(OWLAxiomVisitorEx<O> visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
public AxiomType<?> getAxiomType()
OWLAxiom
getAxiomType
in interface OWLAxiom