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 flipped over
and the predicate is the inverse (simplified) property.
|
Set<SWRLVariable> |
getVariables()
Gets the variables that appear in this rule.
|
isAnnotationAxiom, isLogicalAxiom
accept, equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isOfType, isOfType
compareTo, containsEntityInSignature, getAnnotationPropertiesInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, isBottomEntity, isTopEntity, toString
equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isLogicalAxiom, isOfType, isOfType
getNestedClassExpressions, isBottomEntity, isIndividual, isIRI, isTopEntity, toString
compareTo
getSignature
containsEntityInSignature
getAnonymousIndividuals
getClassesInSignature
getObjectPropertiesInSignature
getDataPropertiesInSignature
getIndividualsInSignature
getDatatypesInSignature
getAnnotationPropertiesInSignature
isAnonymous, isNamed
public 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()
OWLAxiom
getAxiomWithoutAnnotations
in interface OWLAxiom
getAxiomWithoutAnnotations
in interface SWRLRule
public OWLAxiom getAnnotatedAxiom(@Nonnull Set<OWLAnnotation> annotations)
OWLAxiom
getAnnotatedAxiom
in interface OWLAxiom
annotations
- The annotations that will be added to existing annotations to annotate the
copy of this axiomOWLAxiom#getAnnotations()
method.@Nonnull public Set<SWRLVariable> getVariables()
SWRLRule
getVariables
in interface SWRLRule
public boolean containsAnonymousClassExpressions()
SWRLRule
containsAnonymousClassExpressions
in interface SWRLRule
true
if this rule contains anonymous class expression in class atoms,
otherwise false
.public Set<OWLClassExpression> getClassAtomPredicates()
SWRLRule
getClassAtomPredicates
in interface SWRLRule
public void accept(OWLObjectVisitor visitor)
OWLObject
public <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
public void accept(SWRLObjectVisitor visitor)
accept
in interface SWRLObject
visitor
- visitor to acceptpublic <O> O accept(SWRLObjectVisitorEx<O> visitor)
accept
in interface SWRLObject
O
- visitor return typevisitor
- visitor to acceptpublic Set<SWRLAtom> getBody()
SWRLRule
public Set<SWRLAtom> getHead()
SWRLRule
public void accept(OWLAxiomVisitor visitor)
public <O> O accept(OWLAxiomVisitorEx<O> visitor)
public SWRLRule getSimplified()
SWRLRule
getSimplified
in interface SWRLRule
public boolean equals(Object obj)
equals
in class OWLAxiomImplWithEntityAndAnonCaching
public AxiomType<?> getAxiomType()
OWLAxiom
getAxiomType
in interface OWLAxiom
Copyright © 2020 The University of Manchester. All rights reserved.