public class SWRLRuleImpl extends OWLLogicalAxiomImpl implements SWRLRule
| Modifier and Type | Class and Description |
|---|---|
protected class |
SWRLRuleImpl.AtomSimplifier |
| Modifier and Type | Field and Description |
|---|---|
protected SWRLRuleImpl.AtomSimplifier |
ATOM_SIMPLIFIER |
NO_ANNOTATIONS, OWL_THING| Constructor and Description |
|---|
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) |
protected int |
compareObjectOfSameType(OWLObject object) |
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.
|
boolean |
isLogicalAxiom()
Determines if this axiom is a logical axiom.
|
isAnnotationAxiomaccept, equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isOfType, isOfType, mergeAnnoscompareLists, compareSets, compareTo, containsEntityInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, isBottomEntity, isTopEntity, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isOfType, isOfTypegetAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntitycompareTocontainsEntityInSignatureprotected final SWRLRuleImpl.AtomSimplifier ATOM_SIMPLIFIER
public SWRLRuleImpl(Set<? extends SWRLAtom> body, Set<? extends SWRLAtom> head, Collection<? extends OWLAnnotation> annotations)
body - rule bodyhead - rule headannotations - annotations on the axiompublic SWRLRule getAxiomWithoutAnnotations()
OWLAxiomgetAxiomWithoutAnnotations in interface OWLAxiomgetAxiomWithoutAnnotations in interface SWRLRulepublic OWLAxiom getAnnotatedAxiom(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.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 isLogicalAxiom()
OWLAxiomisLogicalAxiom in interface OWLAxiomisLogicalAxiom in class OWLLogicalAxiomImpltrue if the axiom is a logical axiom, false if
the axiom is not a logical axiom.public boolean equals(Object obj)
equals in class OWLAxiomImplpublic AxiomType<?> getAxiomType()
OWLAxiomgetAxiomType in interface OWLAxiomprotected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType in class OWLObjectImplCopyright © 2014 The University of Manchester. All Rights Reserved.