public interface SWRLRule extends OWLLogicalAxiom, SWRLObject
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(OWLAxiomVisitor visitor) |
default <O> O |
accept(OWLAxiomVisitorEx<O> visitor) |
default void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
default <O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
default void |
accept(SWRLObjectVisitor visitor) |
default <O> O |
accept(SWRLObjectVisitorEx<O> visitor) |
Stream<SWRLAtom> |
body() |
default List<SWRLAtom> |
bodyList() |
Stream<OWLClassExpression> |
classAtomPredicates()
Gets the predicates of class atoms.
|
default Stream<?> |
components() |
default Stream<?> |
componentsAnnotationsFirst() |
default Stream<?> |
componentsWithoutAnnotations() |
boolean |
containsAnonymousClassExpressions()
Determines if this rule uses anonymous class expressions in class atoms.
|
default AxiomType<?> |
getAxiomType()
Gets the axiom type for this axiom.
|
SWRLRule |
getAxiomWithoutAnnotations()
Gets an axiom that is structurally equivalent to this axiom without annotations.
|
default Set<SWRLAtom> |
getBody()
Gets the atoms in the body of the rule.
|
default Set<OWLClassExpression> |
getClassAtomPredicates()
Gets the predicates of class atoms.
|
default Set<SWRLAtom> |
getHead()
Gets the atoms in the head of the rule.
|
SWRLRule |
getSimplified()
If this rule contains atoms that have predicates that are inverse object properties, then
this method creates and returns a rule where the arguments of these atoms are flipped over
and the predicate is the inverse (simplified) property.
|
default Set<SWRLVariable> |
getVariables()
Gets the variables that appear in this rule.
|
default int |
hashIndex() |
Stream<SWRLAtom> |
head() |
default List<SWRLAtom> |
headList() |
default int |
initHashCode() |
Stream<SWRLVariable> |
variables() |
isLogicalAxiomequalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAxiomWithoutAnnotations, getAxiomWithoutAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isAxiom, isIndividual, isOfType, isOfType, isOfType, typeIndexgetNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressionscompareTogetSignature, signature, unsortedSignaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignatureisAnonymous, isNamedannotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotationsdefault Stream<?> components()
components in interface HasComponentsdefault int initHashCode()
initHashCode in interface OWLObjectdefault Stream<?> componentsWithoutAnnotations()
componentsWithoutAnnotations in interface HasComponentsdefault Stream<?> componentsAnnotationsFirst()
componentsAnnotationsFirst in interface HasComponentsdefault int hashIndex()
hashIndex in interface HasHashIndexdefault Set<SWRLAtom> getBody()
SWRLAtoms, which represent the atoms in the body of the rule. The
set that is returned is a copy; modifications to the returned set will not be
reflected in this object.default Set<SWRLAtom> getHead()
SWRLAtoms, which represent the atoms in the head of the rule. The
set that is returned is a copy; modifications to the returned set will not be
reflected in this object.SWRLRule getSimplified()
default Set<SWRLVariable> getVariables()
Stream<SWRLVariable> variables()
boolean containsAnonymousClassExpressions()
true if this rule contains anonymous class expression in class atoms,
otherwise false.default Set<OWLClassExpression> getClassAtomPredicates()
Stream<OWLClassExpression> classAtomPredicates()
SWRLRule getAxiomWithoutAnnotations()
OWLAxiomgetAxiomWithoutAnnotations in interface OWLAxiomdefault void accept(OWLObjectVisitor visitor)
OWLObjectdefault <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObjectdefault void accept(SWRLObjectVisitor visitor)
accept in interface SWRLObjectvisitor - visitor to acceptdefault <O> O accept(SWRLObjectVisitorEx<O> visitor)
accept in interface SWRLObjectO - visitor return typevisitor - visitor to acceptdefault void accept(OWLAxiomVisitor visitor)
default <O> O accept(OWLAxiomVisitorEx<O> visitor)
default AxiomType<?> getAxiomType()
OWLAxiomgetAxiomType in interface OWLAxiomCopyright © 2020 The University of Manchester. All rights reserved.