public class SWRLRuleImpl extends OWLLogicalAxiomImplWithEntityAndAnonCaching implements SWRLRule
| Constructor and Description |
|---|
SWRLRuleImpl(Set<? extends SWRLAtom> body,
Set<? extends SWRLAtom> head) |
SWRLRuleImpl(Set<? extends SWRLAtom> body,
Set<? extends SWRLAtom> head,
Collection<? extends OWLAnnotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OWLAxiomVisitor visitor) |
<O> O |
accept(OWLAxiomVisitorEx<O> visitor) |
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a visitor
|
void |
accept(SWRLObjectVisitor visitor) |
<O> O |
accept(SWRLObjectVisitorEx<O> visitor) |
boolean |
containsAnonymousClassExpressions()
Determines if this rule uses anonymous class expressions in class atoms.
|
boolean |
equals(Object obj) |
OWLAxiom |
getAnnotatedAxiom(Set<OWLAnnotation> annotations)
Gets a copy of this axiom that is annotated with the specified
annotations.
|
AxiomType<?> |
getAxiomType()
Gets the axiom type for this axiom.
|
SWRLRule |
getAxiomWithoutAnnotations()
Gets an axiom that is structurally equivalent to this axiom without
annotations.
|
Set<SWRLAtom> |
getBody()
Gets the atoms in the body of the rule.
|
Set<OWLClassExpression> |
getClassAtomPredicates()
Gets the predicates of class atoms.
|
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 fliped over and the predicate is the inverse
(simplified) property.
|
Set<SWRLVariable> |
getVariables()
Gets the variables that appear in this rule.
|
isAnnotationAxiom, isLogicalAxiomaccept, equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isOfType, isOfTypecompareTo, containsEntityInSignature, getAnnotationPropertiesInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, isBottomEntity, isTopEntity, toStringequalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isLogicalAxiom, isOfType, isOfTypegetNestedClassExpressions, isBottomEntity, isTopEntity, toStringcompareTogetSignaturecontainsEntityInSignaturegetAnonymousIndividualsgetClassesInSignaturegetObjectPropertiesInSignaturegetDataPropertiesInSignaturegetIndividualsInSignaturegetDatatypesInSignaturegetAnnotationPropertiesInSignaturepublic SWRLRuleImpl(@Nonnull Set<? extends SWRLAtom> body, @Nonnull Set<? extends SWRLAtom> head, @Nonnull Collection<? extends OWLAnnotation> annotations)
body - rule bodyhead - rule headannotations - annotations on the axiompublic SWRLRule getAxiomWithoutAnnotations()
OWLAxiomgetAxiomWithoutAnnotations in interface OWLAxiomgetAxiomWithoutAnnotations in interface SWRLRulepublic OWLAxiom getAnnotatedAxiom(@Nonnull Set<OWLAnnotation> annotations)
OWLAxiomgetAnnotatedAxiom in interface OWLAxiomannotations - The annotations that will be added to existing annotations to
annotate the copy of this axiomOWLAxiom#getAnnotations() method.@Nonnull public Set<SWRLVariable> getVariables()
SWRLRulegetVariables in interface SWRLRulepublic boolean containsAnonymousClassExpressions()
SWRLRulecontainsAnonymousClassExpressions in interface SWRLRuletrue if this rule contains anonymous class expression in
class atoms, otherwise false.public Set<OWLClassExpression> getClassAtomPredicates()
SWRLRulegetClassAtomPredicates in interface SWRLRulepublic void accept(OWLObjectVisitor visitor)
OWLObjectpublic <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObjectpublic void accept(SWRLObjectVisitor visitor)
accept in interface SWRLObjectvisitor - visitor to acceptpublic <O> O accept(SWRLObjectVisitorEx<O> visitor)
accept in interface SWRLObjectO - visitor return typevisitor - visitor to acceptpublic Set<SWRLAtom> getBody()
SWRLRulepublic Set<SWRLAtom> getHead()
SWRLRulepublic void accept(OWLAxiomVisitor visitor)
public <O> O accept(OWLAxiomVisitorEx<O> visitor)
public SWRLRule getSimplified()
SWRLRulegetSimplified in interface SWRLRulepublic boolean equals(Object obj)
equals in class OWLAxiomImplWithEntityAndAnonCachingpublic AxiomType<?> getAxiomType()
OWLAxiomgetAxiomType in interface OWLAxiomCopyright © 2016 The University of Manchester. All Rights Reserved.