Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.swrl
Interface SWRLRuleEngine

All Known Implementing Classes:
SWRLRuleEngineBridge

public interface SWRLRuleEngine

This inferface defines the methods that must be provided by a SWRL rule engine.


Method Summary
 void exportOWLKnowledge()
          Send knowledge (excluding SWRL rules) stored in bridge to a rule engine.
 void exportSWRLRulesAndOWLKnowledge()
          Send rules and knowledge stored in bridge to a rule engine.
 Result getQueryResult(String ruleName)
          Get the results from a rule containing query built-ins.
 void importSWRLRulesAndOWLKnowledge()
          Load rules and knowledge from OWL into bridge.
 void importSWRLRulesAndOWLKnowledge(Set<String> ruleGroupNames)
          Load rules from all the named rule groups and associated knowledge from OWL into bridge.
 void importSWRLRulesAndOWLKnowledge(String ruleGroupName)
          Load rules from a particular rule group and associated knowledge from OWL into bridge.
 void infer()
          Load rules and knowledge from OWL into bridge, send them to a rule engine, run the rule engine, and write any inferred knowledge back to OWL.
 void resetRuleEngine()
          Clear all knowledge from rule engine, deleted asserted knowledge from the bridge, and leave imported bridge knowledge intact.
 void run()
          Run the rule engine.
 void writeAssertedIndividualsAndProperties2OWL()
          Write knowledge inferred by rule engine back to OWL.
 

Method Detail

infer

void infer()
           throws SWRLRuleEngineException
Load rules and knowledge from OWL into bridge, send them to a rule engine, run the rule engine, and write any inferred knowledge back to OWL.

Throws:
SWRLRuleEngineException

importSWRLRulesAndOWLKnowledge

void importSWRLRulesAndOWLKnowledge()
                                    throws SWRLRuleEngineException
Load rules and knowledge from OWL into bridge. All existing bridge rules and knowledge will first be cleared and the associated rule engine will be reset.

Throws:
SWRLRuleEngineException

importSWRLRulesAndOWLKnowledge

void importSWRLRulesAndOWLKnowledge(String ruleGroupName)
                                    throws SWRLRuleEngineException
Load rules from a particular rule group and associated knowledge from OWL into bridge. All existing bridge rules and knowledge will first be cleared and the associated rule engine will be reset.

Throws:
SWRLRuleEngineException

importSWRLRulesAndOWLKnowledge

void importSWRLRulesAndOWLKnowledge(Set<String> ruleGroupNames)
                                    throws SWRLRuleEngineException
Load rules from all the named rule groups and associated knowledge from OWL into bridge. All existing bridge rules and knowledge will first be cleared and the associated rule engine will be reset.

Throws:
SWRLRuleEngineException

run

void run()
         throws SWRLRuleEngineException
Run the rule engine.

Throws:
SWRLRuleEngineException

exportSWRLRulesAndOWLKnowledge

void exportSWRLRulesAndOWLKnowledge()
                                    throws SWRLRuleEngineException
Send rules and knowledge stored in bridge to a rule engine.

Throws:
SWRLRuleEngineException

exportOWLKnowledge

void exportOWLKnowledge()
                        throws SWRLRuleEngineException
Send knowledge (excluding SWRL rules) stored in bridge to a rule engine.

Throws:
SWRLRuleEngineException

writeAssertedIndividualsAndProperties2OWL

void writeAssertedIndividualsAndProperties2OWL()
                                               throws SWRLRuleEngineException
Write knowledge inferred by rule engine back to OWL.

Throws:
SWRLRuleEngineException

resetRuleEngine

void resetRuleEngine()
                     throws SWRLRuleEngineException
Clear all knowledge from rule engine, deleted asserted knowledge from the bridge, and leave imported bridge knowledge intact.

Throws:
SWRLRuleEngineException

getQueryResult

Result getQueryResult(String ruleName)
                      throws ResultException
Get the results from a rule containing query built-ins. Null is retured if there are no results or if the query subsystem is not activated.

Throws:
ResultException

Protégé-OWL 3.3.1

Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.