|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.KnowledgeBase
public class KnowledgeBase
The concrete knowledge-base.
| Constructor Summary | |
|---|---|
KnowledgeBase(Map<IPredicate,IRelation> inputFacts,
List<IRule> rules,
Configuration configuration)
Constructor. |
|
| 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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KnowledgeBase(Map<IPredicate,IRelation> inputFacts,
List<IRule> rules,
Configuration configuration)
throws EvaluationException
facts - The starting facts for the knowledge-base.rules - The rules of the knowledge-base.configuration - The configuration object for the knowledge-base.
EvaluationException
EvaluationException| Method Detail |
|---|
public IRelation execute(IQuery query,
List<IVariable> variableBindings)
throws EvaluationException
IKnowledgeBase
execute in interface IKnowledgeBasequery - 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.
public IRelation execute(IQuery query)
throws EvaluationException
IKnowledgeBase
execute in interface IKnowledgeBasequery - 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.public List<IRule> getRules()
IKnowledgeBase
getRules in interface IKnowledgeBasepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||