|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.manchester.cs.owl.OWLObjectImpl
uk.ac.manchester.cs.owl.OWLAxiomImpl
uk.ac.manchester.cs.owl.SWRLRuleImpl
public class SWRLRuleImpl
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 15-Jan-2007
| Constructor Summary | |
|---|---|
SWRLRuleImpl(OWLDataFactory dataFactory,
boolean anon,
java.net.URI uri,
java.util.Set<? extends SWRLAtom> antecedent,
java.util.Set<? extends SWRLAtom> consequent)
|
|
SWRLRuleImpl(OWLDataFactory dataFactory,
java.util.Set<? extends SWRLAtom> antecedent,
java.util.Set<? extends SWRLAtom> consequent)
|
|
SWRLRuleImpl(OWLDataFactory dataFactory,
java.net.URI uri,
java.util.Set<? extends SWRLAtom> antecedent,
java.util.Set<? extends SWRLAtom> consequent)
|
|
| Method Summary | ||
|---|---|---|
void |
accept(OWLAxiomVisitor visitor)
|
|
|
accept(OWLAxiomVisitorEx<O> visitor)
|
|
void |
accept(OWLObjectVisitor visitor)
|
|
|
accept(OWLObjectVisitorEx<O> visitor)
|
|
void |
accept(SWRLObjectVisitor visitor)
|
|
|
accept(SWRLObjectVisitorEx<O> visitor)
|
|
boolean |
containsAnonymousDescriptions()
Determines if this rule uses anonymous descriptions in class atoms. |
|
boolean |
equals(java.lang.Object obj)
|
|
AxiomType |
getAxiomType()
Gets the axiom type for this axiom. |
|
java.util.Set<SWRLAtom> |
getBody()
Gets the atoms in the antecedent |
|
java.util.Set<OWLDescription> |
getClassAtomPredicates()
Gets the predicates of class atoms. |
|
java.util.Set<SWRLAtomDVariable> |
getDVariables()
Gets the data variables that appear in this rule |
|
java.util.Set<SWRLAtom> |
getHead()
Gets the atoms in the consequent. |
|
java.util.Set<SWRLAtomIVariable> |
getIVariables()
Gets the object variables that appear in this rule |
|
java.net.URI |
getURI()
Gets the name of this object. |
|
java.util.Set<SWRLAtomVariable> |
getVariables()
Gets the variables that appear in this rule. |
|
boolean |
isAnonymous()
Determines if this rule is anonymous. |
|
boolean |
isLogicalAxiom()
Determines if this axiom is a logical axiom. |
|
| Methods inherited from class uk.ac.manchester.cs.owl.OWLAxiomImpl |
|---|
getAnnotationAxioms, getReferencedEntities |
| Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl |
|---|
compareTo, getOWLDataFactory, getSignature, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.semanticweb.owl.model.OWLAxiom |
|---|
getAnnotationAxioms, getReferencedEntities |
| Methods inherited from interface org.semanticweb.owl.model.OWLObject |
|---|
getSignature |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public SWRLRuleImpl(OWLDataFactory dataFactory,
java.net.URI uri,
java.util.Set<? extends SWRLAtom> antecedent,
java.util.Set<? extends SWRLAtom> consequent)
public SWRLRuleImpl(OWLDataFactory dataFactory,
boolean anon,
java.net.URI uri,
java.util.Set<? extends SWRLAtom> antecedent,
java.util.Set<? extends SWRLAtom> consequent)
public SWRLRuleImpl(OWLDataFactory dataFactory,
java.util.Set<? extends SWRLAtom> antecedent,
java.util.Set<? extends SWRLAtom> consequent)
| Method Detail |
|---|
public java.util.Set<SWRLAtomVariable> getVariables()
SWRLRule
getVariables in interface SWRLRulepublic java.util.Set<SWRLAtomDVariable> getDVariables()
SWRLRule
getDVariables in interface SWRLRulepublic java.util.Set<SWRLAtomIVariable> getIVariables()
SWRLRule
getIVariables in interface SWRLRulepublic boolean containsAnonymousDescriptions()
SWRLRule
containsAnonymousDescriptions in interface SWRLRuletrue if this rule contains anonymous
class description in class atoms, otherwise false.public java.util.Set<OWLDescription> getClassAtomPredicates()
SWRLRule
getClassAtomPredicates in interface SWRLRulepublic void accept(OWLObjectVisitor visitor)
accept in interface OWLObjectpublic <O> O accept(OWLObjectVisitorEx<O> visitor)
accept in interface OWLObjectpublic void accept(SWRLObjectVisitor visitor)
accept in interface SWRLObjectpublic <O> O accept(SWRLObjectVisitorEx<O> visitor)
accept in interface SWRLObjectpublic boolean isAnonymous()
isAnonymous in interface SWRLRuletrue if this rule is anonymous and therefore
doesn't have a URI.public java.util.Set<SWRLAtom> getBody()
getBody in interface SWRLRuleSWRLAtoms, which represent the atoms
in the antecedent of the rule.public java.util.Set<SWRLAtom> getHead()
getHead in interface SWRLRuleSWRLAtoms, which represent the atoms
in the consequent of the rulepublic void accept(OWLAxiomVisitor visitor)
accept in interface OWLAxiompublic <O> O accept(OWLAxiomVisitorEx<O> visitor)
accept in interface OWLAxiompublic boolean isLogicalAxiom()
isLogicalAxiom in interface OWLAxiomtrue if the axiom is a logical axiom, false
if the axiom is not a logical axiom.public java.net.URI getURI()
getURI in interface SWRLRuleURI that represents the name
of the objectpublic boolean equals(java.lang.Object obj)
equals in class OWLAxiomImplpublic AxiomType getAxiomType()
OWLAxiom
getAxiomType in interface OWLAxiom
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||