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,
java.util.stream.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(java.util.stream.Stream<OWLAnnotation> annotations)
Gets a copy of this axiom that is annotated with the specified
annotations.
|
static <T extends OWLAxiom> |
getAnnotatedAxiom(java.util.stream.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 |
isAnonymous() |
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(java.util.stream.Stream<AxiomType<?>> types)
Determines if this axiom is one of the specified types
|
default int |
typeIndex() |
accept, accept, getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressionscompareTogetSignature, signaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignaturehashIndexcomponents, componentsAnnotationsFirst, componentsWithoutAnnotationsannotations, annotations, annotations, getAnnotations, getAnnotationsdefault int typeIndex()
default boolean isAnonymous()
isAnonymous in interface IsAnonymoustrue if this object is anonymous, false
otherwise. For example, class expressions are anonymous while
class entities are not (they have an IRI).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()
static <T extends OWLAxiom> T getAxiomWithoutAnnotations(T axiom)
axiom - axiom to divest of annotationsdefault <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.witness - Variable to ground the generic return typestatic <T extends OWLAxiom> T getAnnotatedAxiom(java.util.stream.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 <T extends OWLAxiom> T getAnnotatedAxiom(Class<T> witness, java.util.stream.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.witness - 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(java.util.stream.Stream<OWLAnnotation> annotations)
annotations - 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)
annotations - 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(java.util.stream.Stream<AxiomType<?>> types)
types - The axiom types to check fortrue if this axioms is one of the specified types,
otherwise falseOWLAxiom getNNF()
Copyright © 2017 The University of Manchester. All Rights Reserved.