org.semanticweb.owl.model
Interface SWRLRule
- All Superinterfaces:
- java.lang.Comparable<OWLObject>, OWLAxiom, OWLLogicalAxiom, OWLObject, SWRLObject
public interface SWRLRule
- extends OWLLogicalAxiom, SWRLObject
Author: Matthew Horridge
The University Of Manchester
Medical Informatics Group
Date: Jan 15, 2007
matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm
Represent a rule. A rule consists of a head and a body.
Both the head and the body consist of a conjunction of
atoms.
Methods inherited from interface java.lang.Comparable |
compareTo |
isAnonymous
boolean isAnonymous()
- Determines if this rule is anonymous. Rules may be named
using URIs.
- Returns:
true
if this rule is anonymous and therefore
doesn't have a URI.
getURI
java.net.URI getURI()
getBody
java.util.Set<SWRLAtom> getBody()
- Gets the atoms in the body
- Returns:
- A set of
SWRLAtom
s, which represent the atoms
in the body of the rule.
getHead
java.util.Set<SWRLAtom> getHead()
- Gets the atoms in the head.
- Returns:
- A set of
SWRLAtom
s, which represent the atoms
in the head of the rule