public interface OWLAxiom extends OWLObject, HasAnnotations
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLAxiomVisitor visitor) |
<O> O |
accept(OWLAxiomVisitorEx<O> visitor) |
default boolean |
equalsIgnoreAnnotations(OWLAxiom axiom)
Determines if another axiom is equal to this axiom not taking into consideration the
annotations on the axiom
|
default <T extends OWLAxiom> |
getAnnotatedAxiom(Class<T> witness,
Stream<OWLAnnotation> annotations)
Gets a copy of this axiom that is annotated with the specified annotations.
|
default <T extends OWLAxiom> |
getAnnotatedAxiom(Collection<OWLAnnotation> annotations)
Gets a copy of this axiom that is annotated with the specified annotations.
|
static <T extends OWLAxiom> |
getAnnotatedAxiom(Collection<OWLAnnotation> annotations,
T axiom)
Gets a copy of the input axiom that is annotated with the specified annotations.
|
<T extends OWLAxiom> |
getAnnotatedAxiom(Stream<OWLAnnotation> annotations)
Gets a copy of this axiom that is annotated with the specified annotations.
|
static <T extends OWLAxiom> |
getAnnotatedAxiom(Stream<OWLAnnotation> annotations,
T axiom)
Gets a copy of the input axiom that is annotated with the specified annotations.
|
AxiomType<?> |
getAxiomType()
Gets the axiom type for this axiom.
|
<T extends OWLAxiom> |
getAxiomWithoutAnnotations()
Gets an axiom that is structurally equivalent to this axiom without annotations.
|
default <T extends OWLAxiom> |
getAxiomWithoutAnnotations(Class<T> witness)
Gets an axiom that is structurally equivalent to this axiom without annotations.
|
static <T extends OWLAxiom> |
getAxiomWithoutAnnotations(T axiom)
Gets an axiom that is structurally equivalent to the input axiom without annotations.
|
OWLAxiom |
getNNF()
Gets this axioms in negation normal form.
|
boolean |
isAnnotated()
Determines if this axiom has any annotations on it
|
default boolean |
isAnnotationAxiom()
Determines if this axioms in an annotation axiom (an instance of
OWLAnnotationAxiom) |
default boolean |
isAxiom() |
default boolean |
isIndividual() |
default boolean |
isLogicalAxiom()
Determines if this axiom is a logical axiom.
|
default boolean |
isOfType(AxiomType<?>... axiomTypes)
Determines if this axiom is one of the specified types
|
default boolean |
isOfType(Collection<AxiomType<?>> types)
Determines if this axiom is one of the specified types
|
default boolean |
isOfType(Stream<AxiomType<?>> types)
Determines if this axiom is one of the specified types
|
default int |
typeIndex() |
accept, accept, getNestedClassExpressions, hashIteration, hasSharedStructure, initHashCode, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressionscompareTogetSignature, signature, unsortedSignaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignaturehashIndexcomponents, componentsAnnotationsFirst, componentsWithoutAnnotationsisAnonymous, isNamedannotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotationsstatic <T extends OWLAxiom> T getAxiomWithoutAnnotations(T axiom)
T - typeaxiom - axiom to divest of annotationsstatic <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> annotations, T axiom)
T - type of axiom returnedaxiom - axiom to be copiedannotations - The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations() method.static <T extends OWLAxiom> T getAnnotatedAxiom(Collection<OWLAnnotation> annotations, T axiom)
T - type of axiom returnedaxiom - axiom to be copiedannotations - The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations() method.default int typeIndex()
default boolean isIndividual()
isIndividual in interface OWLObjectdefault boolean isAxiom()
void accept(OWLAxiomVisitor visitor)
visitor - visitor to accept<O> O accept(OWLAxiomVisitorEx<O> visitor)
O - visitor return typevisitor - visitor to accept<T extends OWLAxiom> T getAxiomWithoutAnnotations()
T - typedefault <T extends OWLAxiom> T getAxiomWithoutAnnotations(Class<T> witness)
axiom.getAxiomWithoutAnnotations(axiom.getClass()) is equivalent to
axiom.getAxiomWithoutAnnotations(), but it provides compile time type safety - there
will be no attempt to cast to an incompatible type.T - typewitness - Variable to ground the generic return typedefault <T extends OWLAxiom> T getAnnotatedAxiom(Class<T> witness, Stream<OWLAnnotation> annotations)
axiom.getAnnotatedAxiom(axiom.getClass(), annotations) is equivalent to
axiom.getAnnotatedAxiom(annotations), but it provides compile time type safety -
there will be no attempt to cast to an incompatible type.T - typewitness - Variable to ground the generic return typeannotations - The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations() method.<T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> annotations)
T - typeannotations - The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations() method.default <T extends OWLAxiom> T getAnnotatedAxiom(Collection<OWLAnnotation> annotations)
T - typeannotations - The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations() method.default boolean equalsIgnoreAnnotations(@Nullable OWLAxiom axiom)
axiom - The axiom to test if equaltrue if axiom without annotations is equal to this axiom without
annotations otherwise false.default boolean isLogicalAxiom()
true if the axiom is a logical axiom, false if the axiom is not a
logical axiom.default boolean isAnnotationAxiom()
OWLAnnotationAxiom)true if this axiom is an instance of OWLAnnotationAxiom, otherwise
false.boolean isAnnotated()
true if this axiom has annotations on it, otherwise falseAxiomType<?> getAxiomType()
default boolean isOfType(AxiomType<?>... axiomTypes)
axiomTypes - The axiom types to check fortrue if this axiom is one of the specified types, otherwise falsedefault boolean isOfType(Collection<AxiomType<?>> types)
types - The axiom types to check fortrue if this axioms is one of the specified types, otherwise falsedefault boolean isOfType(Stream<AxiomType<?>> types)
types - The axiom types to check fortrue if this axioms is one of the specified types, otherwise falseOWLAxiom getNNF()
Copyright © 2019 The University of Manchester. All rights reserved.