Package org.semanticweb.owlapi.model
Interface OWLDisjointUnionAxiom
- All Superinterfaces:
Comparable<OWLObject>
,HasAnnotationPropertiesInSignature
,HasAnnotations
,HasAnonymousIndividuals
,HasClassesInSignature
,HasComponents
,HasContainsEntityInSignature
,HasDataPropertiesInSignature
,HasDatatypesInSignature
,HasHashIndex
,HasIndex
,HasIndividualsInSignature
,HasObjectPropertiesInSignature
,HasOperands<OWLClassExpression>
,HasSignature
,IsAnonymous
,OWLAxiom
,OWLClassAxiom
,OWLLogicalAxiom
,OWLObject
,Serializable
Represents a
DisjointUnion axiom in the OWL 2 Specification.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(OWLAxiomVisitor visitor) default <O> O
accept
(OWLAxiomVisitorEx<O> visitor) default void
accept
(OWLObjectVisitor visitor) Accepts a visitordefault <O> O
accept
(OWLObjectVisitorEx<O> visitor) Accepts a visitorGets the class expressions which are operands of the disjoint union.default Stream<?>
default Stream<?>
default Stream<?>
default AxiomType<?>
Gets the axiom type for this axiom.Gets an axiom that is structurally equivalent to this axiom without annotations.default Set<OWLClassExpression>
Gets the class expressions which are operands of the disjoint union.Gets the class which is equivalent to the disjoint union.Gets the part of this axiom that corresponds to anDisjointClasses
axiom.Gets the part of this axiom that corresponds to anEquivalentClasses
axiom.default int
default int
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasAnnotations
annotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotations
Methods inherited from interface org.semanticweb.owlapi.model.HasAnonymousIndividuals
anonymousIndividuals, getAnonymousIndividuals
Methods inherited from interface org.semanticweb.owlapi.model.HasClassesInSignature
classesInSignature, getClassesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasContainsEntityInSignature
containsEntityInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDataPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDatatypesInSignature
datatypesInSignature, getDatatypesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasIndividualsInSignature
getIndividualsInSignature, individualsInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasOperands
getOperandsAsList, operands
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
Methods inherited from interface org.semanticweb.owlapi.model.IsAnonymous
isAnonymous, isNamed
Methods inherited from interface org.semanticweb.owlapi.model.OWLAxiom
equalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAxiomWithoutAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isAxiom, isIndividual, isOfType, isOfType, isOfType, typeIndex
Methods inherited from interface org.semanticweb.owlapi.model.OWLLogicalAxiom
isLogicalAxiom
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressions
-
Method Details
-
getAxiomWithoutAnnotations
OWLDisjointUnionAxiom 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 interfaceOWLAxiom
- Returns:
- The axiom without annotations
-
components
- Specified by:
components
in interfaceHasComponents
- Returns:
- components as a stream. The stream is ordered (by visit order) but not sorted. Implementations that override components() must ensure the order is compatible with equals() and hashCode().
-
initHashCode
default int initHashCode()- Specified by:
initHashCode
in interfaceOWLObject
- Returns:
- hash code for the object; called on first use, cached by OWLObjectImpl in the default implementation.
-
componentsWithoutAnnotations
- Specified by:
componentsWithoutAnnotations
in interfaceHasComponents
- Returns:
- components as a stream; for objects that can have annotations on them, these are skipped. This is useful for comparing axioms without taking annotations into account. Note: annotations on nested objects are not affected. The stream is ordered (by visit order) but not sorted. Implementations that override components() must ensure the order is compatible with equals() and hashCode().
-
componentsAnnotationsFirst
- Specified by:
componentsAnnotationsFirst
in interfaceHasComponents
- Returns:
- components as a stream; for objects that can have annotations on them, annotation streams appear first. This is useful in renderers. The stream is ordered (by visit order) but not sorted. Implementations that override components() must ensure the order is compatible with equals() and hashCode().
-
hashIndex
default int hashIndex()- Specified by:
hashIndex
in interfaceHasHashIndex
- Returns:
- index for this type. This is not a hashcode for instances, rather a hashcode for the types.
-
getOWLClass
OWLClass getOWLClass()Gets the class which is equivalent to the disjoint union.- Returns:
- the class that is equivalent to a disjoint union of other classes.
-
getClassExpressions
Gets the class expressions which are operands of the disjoint union.- Returns:
- A
Set
containing the operands of the disjoint union, note that this does not include theOWLClass
that is equivalent to the disjoint union. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
classExpressions
Stream<OWLClassExpression> classExpressions()Gets the class expressions which are operands of the disjoint union.- Returns:
- Sorted stream containing the operands of the disjoint union, note that this does
not include the
OWLClass
that is equivalent to the disjoint union.
-
getOWLEquivalentClassesAxiom
OWLEquivalentClassesAxiom getOWLEquivalentClassesAxiom()Gets the part of this axiom that corresponds to anEquivalentClasses
axiom.- Returns:
- The equivalent classes axiom part of this axiom. This is essentially,
EquivalentClasses(CE, CEUnion)
whereCEUnion
is the union of the classes returned by thegetClassExpressions()
method andCE
is the class returned by thegetOWLClass()
method.
-
getOWLDisjointClassesAxiom
OWLDisjointClassesAxiom getOWLDisjointClassesAxiom()Gets the part of this axiom that corresponds to anDisjointClasses
axiom.- Returns:
- The disjoint classes axiom part of this axiom. This is essentially,
DisjointClasses(CE1, ..., CEn)
whereCEi in (CE1, ..., CEn)
is contained in the classes returned by thegetClassExpressions()
method.
-
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
-
accept
-
getAxiomType
Description copied from interface:OWLAxiom
Gets the axiom type for this axiom.- Specified by:
getAxiomType
in interfaceOWLAxiom
- Returns:
- The axiom type that corresponds to the type of this axiom.
-