|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IKnowledgeBase
The interface of a knowledge-base as seen by a user of IRIS.
| Method Summary | |
|---|---|
IRelation |
execute(IQuery query)
Execute a query over this knowledge-base. |
IRelation |
execute(IQuery query,
List<IVariable> variableBindings)
Evaluate a query and optionally return the variable bindings. |
List<IRule> |
getRules()
Get the rules hidden within the knowledge-base. |
| Method Detail |
|---|
IRelation execute(IQuery query)
throws ProgramNotStratifiedException,
RuleUnsafeException,
EvaluationException
query - The query to evaluate.
ProgramNotStratifiedException - If the program (knowledge-base)can not be stratified
RuleUnsafeException - If the program (knowledge-base) contains an unsafe rule.
EvaluationException - If the execution of a query fails for any other reason.
IRelation execute(IQuery query,
List<IVariable> variableBindings)
throws ProgramNotStratifiedException,
RuleUnsafeException,
EvaluationException
query - The query to evaluate.outputVariables - If this is not null, it will be filled with the variable bindings
of the result relation, i.e. there will be one variable instance for each term
(in one row) of the results set
ProgramNotStratifiedException - If the program (knowledge-base)can not be stratified
RuleUnsafeException - If the program (knowledge-base) contains an unsafe rule.
EvaluationException - If the execution of a query fails for any other reason.List<IRule> getRules()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||