|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TargetSWRLRuleEngine
This interface defines the methods that must be provided by an implementation of a SWRL rule engine.
A rule engine can communicate with the bridge using the SWRLRuleEngineBridge interface. The engine can use the bridge to, for example, infer axioms or to invoke built-ins.
Detailed documentation for this mechanism can be found here.
| Method Summary | |
|---|---|
void |
defineBuiltInArgumentBinding(String ruleName,
String builtInName,
int builtInIndex,
List<BuiltInArgument> arguments)
Define a rule engine representation of one set of the arguments generated by a built-in that binds one or more of its arguments. |
void |
defineOWLAxiom(OWLAxiomReference axiom)
Define a target rule engine representation of an OWL axiom. |
String |
getName()
|
String |
getVersion()
|
void |
initialize(SWRLRuleEngineBridge bridge)
Initialize the target engine. |
void |
resetRuleEngine()
Reset the rule engine. |
void |
runRuleEngine()
Run the rule engine. |
| Method Detail |
|---|
String getName()
String getVersion()
void initialize(SWRLRuleEngineBridge bridge)
throws TargetSWRLRuleEngineException
TargetSWRLRuleEngineException
void resetRuleEngine()
throws TargetSWRLRuleEngineException
TargetSWRLRuleEngineException
void runRuleEngine()
throws TargetSWRLRuleEngineException
TargetSWRLRuleEngineException
void defineOWLAxiom(OWLAxiomReference axiom)
throws TargetSWRLRuleEngineException
TargetSWRLRuleEngineException
void defineBuiltInArgumentBinding(String ruleName,
String builtInName,
int builtInIndex,
List<BuiltInArgument> arguments)
throws TargetSWRLRuleEngineException
For example, if tbox:isSubClassOf(?x, Person) is called with unbound argument ?x and Person has subclasses Male and Female then two arguments bindings (Male, Person) and (Female, Person) will be generated by the built-in bridge and passed to this method.
TargetSWRLRuleEngineException
|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||