public class OWLEquivalentClassesAxiomImpl extends OWLNaryClassAxiomImpl implements OWLEquivalentClassesAxiom
Constructor and Description |
---|
OWLEquivalentClassesAxiomImpl(Set<? extends OWLClassExpression> classExpressions,
Collection<? extends OWLAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLAxiomVisitor visitor) |
<O> O |
accept(OWLAxiomVisitorEx<O> visitor) |
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
Set<OWLSubClassOfAxiom> |
asOWLSubClassOfAxioms() |
Set<OWLEquivalentClassesAxiom> |
asPairwiseAxioms()
Gets this axiom as a set of pairwise axioms; if the axiom contains only two operands,
the axiom itself is returned unchanged, including its annotations.
|
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(Object obj) |
OWLEquivalentClassesAxiom |
getAnnotatedAxiom(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.
|
Set<OWLClass> |
getNamedClasses()
Gets the named classes (excluding owl:Thing and owl:Nothing) that are in
this equivalent classes axiom.
|
Set<OWLEquivalentClassesAxiom> |
splitToAnnotatedPairs()
Splits this axiom to pairs, including annotations.
|
contains, getClassExpressions, getClassExpressionsAsList, getClassExpressionsMinus, walkPairwise
isAnnotationAxiom, isLogicalAxiom
accept, equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isOfType, isOfType
compareTo, containsEntityInSignature, getAnnotationPropertiesInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, isBottomEntity, isTopEntity, toString
contains, getClassExpressions, getClassExpressionsAsList, getClassExpressionsMinus
equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isLogicalAxiom, isOfType, isOfType
getNestedClassExpressions, isBottomEntity, isIndividual, isIRI, isTopEntity, toString
compareTo
getSignature
containsEntityInSignature
getAnonymousIndividuals
getClassesInSignature
getObjectPropertiesInSignature
getDataPropertiesInSignature
getIndividualsInSignature
getDatatypesInSignature
getAnnotationPropertiesInSignature
isAnonymous, isNamed
walkPairwise
public OWLEquivalentClassesAxiomImpl(@Nonnull Set<? extends OWLClassExpression> classExpressions, @Nonnull Collection<? extends OWLAnnotation> annotations)
classExpressions
- equivalent classesannotations
- annotationspublic OWLEquivalentClassesAxiom getAxiomWithoutAnnotations()
OWLAxiom
getAxiomWithoutAnnotations
in interface OWLAxiom
getAxiomWithoutAnnotations
in interface OWLEquivalentClassesAxiom
public OWLEquivalentClassesAxiom getAnnotatedAxiom(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 Set<OWLEquivalentClassesAxiom> asPairwiseAxioms()
OWLNaryAxiom
asPairwiseAxioms
in interface OWLEquivalentClassesAxiom
asPairwiseAxioms
in interface OWLNaryAxiom<OWLClassExpression>
public Set<OWLEquivalentClassesAxiom> splitToAnnotatedPairs()
OWLNaryAxiom
splitToAnnotatedPairs
in interface OWLEquivalentClassesAxiom
splitToAnnotatedPairs
in interface OWLNaryAxiom<OWLClassExpression>
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 Set<OWLClass> getNamedClasses()
OWLEquivalentClassesAxiom
getNamedClasses
in interface OWLEquivalentClassesAxiom
public Set<OWLSubClassOfAxiom> asOWLSubClassOfAxioms()
asOWLSubClassOfAxioms
in interface OWLSubClassOfAxiomSetShortCut
public boolean equals(Object obj)
equals
in class OWLNaryClassAxiomImpl
public void accept(OWLAxiomVisitor visitor)
public void accept(OWLObjectVisitor visitor)
OWLObject
public <O> O accept(OWLAxiomVisitorEx<O> visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
public AxiomType<?> getAxiomType()
OWLAxiom
getAxiomType
in interface OWLAxiom
Copyright © 2020 The University of Manchester. All rights reserved.