public class OWLEquivalentClassesAxiomImpl extends OWLNaryClassAxiomImpl implements OWLEquivalentClassesAxiom
Constructor and Description |
---|
OWLEquivalentClassesAxiomImpl(List<OWLClassExpression> classExpressions,
Collection<OWLAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
Collection<OWLSubClassOfAxiom> |
asOWLSubClassOfAxioms() |
Collection<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.
|
<T extends OWLAxiom> |
getAnnotatedAxiom(Stream<OWLAnnotation> anns)
Gets a copy of this axiom that is annotated with the specified annotations.
|
OWLEquivalentClassesAxiom |
getAxiomWithoutAnnotations()
Gets an axiom that is structurally equivalent to this axiom without annotations.
|
Stream<OWLClass> |
namedClasses()
Gets the named classes (excluding owl:Thing and owl:Nothing) that are in this equivalent
classes axiom.
|
Collection<OWLEquivalentClassesAxiom> |
splitToAnnotatedPairs()
Splits this axiom to pairs, including annotations.
|
classExpressions, contains, getClassExpressionsMinus, getOperandsAsList
annotations, annotationsAsList, getNNF, isAnnotated
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareTo, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, equals, hashCode, individualsInSignature, nestedClassExpressions, objectPropertiesInSignature, signature, toString
accept, accept, accept, accept, getAxiomType, getNamedClasses, hashIndex
classExpressions, components, componentsAnnotationsFirst, componentsWithoutAnnotations, contains, getClassExpressions, getClassExpressionsAsList, getClassExpressionsMinus, initHashCode, operands
isLogicalAxiom
equalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAxiomWithoutAnnotations, getAxiomWithoutAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isAxiom, isIndividual, isOfType, isOfType, isOfType, typeIndex
getNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressions
compareTo
getSignature, signature, unsortedSignature
containsEntityInSignature
anonymousIndividuals, getAnonymousIndividuals
classesInSignature, getClassesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
getIndividualsInSignature, individualsInSignature
datatypesInSignature, getDatatypesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
isAnonymous, isNamed
annotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotations
allMatch, allMatchAllPairs, anyMatch, anyMatchAllPairs, forEach, forEachAllPairs, walkAllPairwise, walkPairwise
getOperandsAsList
addAnonymousIndividualsToSet, addSignatureEntitiesToSet
public OWLEquivalentClassesAxiomImpl(List<OWLClassExpression> classExpressions, Collection<OWLAnnotation> annotations)
classExpressions
- equivalent classes (list must be sorted in the factory)annotations
- annotationspublic OWLEquivalentClassesAxiom getAxiomWithoutAnnotations()
OWLAxiom
getAxiomWithoutAnnotations
in interface OWLAxiom
getAxiomWithoutAnnotations
in interface OWLEquivalentClassesAxiom
public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns)
OWLAxiom
getAnnotatedAxiom
in interface OWLAxiom
T
- typeanns
- The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations()
method.public Collection<OWLEquivalentClassesAxiom> asPairwiseAxioms()
OWLNaryAxiom
asPairwiseAxioms
in interface OWLEquivalentClassesAxiom
asPairwiseAxioms
in interface OWLNaryAxiom<OWLClassExpression>
public Collection<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 Stream<OWLClass> namedClasses()
OWLEquivalentClassesAxiom
namedClasses
in interface OWLEquivalentClassesAxiom
public Collection<OWLSubClassOfAxiom> asOWLSubClassOfAxioms()
asOWLSubClassOfAxioms
in interface OWLSubClassOfAxiomSetShortCut
Copyright © 2020 The University of Manchester. All rights reserved.