org.topbraid.rules.inference
Class AllRulesProvider

java.lang.Object
  extended by org.topbraid.rules.inference.AllRulesProvider
All Implemented Interfaces:
IRulesProvider
Direct Known Subclasses:
RulesContentProvider

public class AllRulesProvider
extends java.lang.Object
implements IRulesProvider


Constructor Summary
AllRulesProvider()
           
 
Method Summary
 java.util.Map<com.hp.hpl.jena.reasoner.rulesys.Rule,com.hp.hpl.jena.rdf.model.Statement> getRule2StatementMap()
          Can be called directly after getRules to get a Map from Rule objects to the underlying Statements.
 java.util.List<com.hp.hpl.jena.reasoner.rulesys.Rule> getRules()
           
 java.util.List<com.hp.hpl.jena.reasoner.rulesys.Rule> getRules(com.hp.hpl.jena.rdf.model.Model model)
           
 com.hp.hpl.jena.rdf.model.Statement getSource(com.hp.hpl.jena.reasoner.rulesys.Rule rule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllRulesProvider

public AllRulesProvider()
Method Detail

getRule2StatementMap

public java.util.Map<com.hp.hpl.jena.reasoner.rulesys.Rule,com.hp.hpl.jena.rdf.model.Statement> getRule2StatementMap()
Can be called directly after getRules to get a Map from Rule objects to the underlying Statements. The statements are either the rdf:type triples of swrl:Imps, or have jena:rule as predicate.

Returns:
a Map (Rule -> Statement)

getRules

public java.util.List<com.hp.hpl.jena.reasoner.rulesys.Rule> getRules()
Specified by:
getRules in interface IRulesProvider

getRules

public java.util.List<com.hp.hpl.jena.reasoner.rulesys.Rule> getRules(com.hp.hpl.jena.rdf.model.Model model)

getSource

public com.hp.hpl.jena.rdf.model.Statement getSource(com.hp.hpl.jena.reasoner.rulesys.Rule rule)