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.


Method Summary
 java.util.Set<SWRLAtom> getBody()
          Gets the atoms in the body
 java.util.Set<SWRLAtom> getHead()
          Gets the atoms in the head.
 java.net.URI getURI()
           
 boolean isAnonymous()
          Determines if this rule is anonymous.
 
Methods inherited from interface org.semanticweb.owl.model.OWLAxiom
accept, accept, getAnnotationAxioms, getAxiomType, getReferencedEntities, isLogicalAxiom
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.semanticweb.owl.model.SWRLObject
accept, accept
 

Method Detail

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 SWRLAtoms, 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 SWRLAtoms, which represent the atoms in the head of the rule