org.deri.iris.evaluation.topdown.oldt
Class OLDTEvaluator
java.lang.Object
org.deri.iris.evaluation.topdown.oldt.OLDTEvaluator
- All Implemented Interfaces:
- ITopDownEvaluator
public class OLDTEvaluator
- extends Object
- implements ITopDownEvaluator
Implementation of the OLDT evaluator.
For details see 'Deduktive Datenbanken' by Cremers, Griefahn and Hinze (ISBN
978-3528047009).
- Author:
- gigi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srf
public static final SimpleRelationFactory srf
OLDTEvaluator
public OLDTEvaluator(IFacts facts,
List<IRule> rules)
- Constructor
- Parameters:
facts - one or many factsrules - list of rules
getMemoTable
public MemoTable getMemoTable()
evaluate
public IRelation evaluate(IQuery query)
throws EvaluationException
- Evaluate given query
- Specified by:
evaluate in interface ITopDownEvaluator
- Parameters:
query - a query
- Returns:
- relation containing all resolved tuples.
- Throws:
EvaluationException - thrown on error
getOutputVariables
public List<IVariable> getOutputVariables()
- Return variables of the initial query
- Specified by:
getOutputVariables in interface ITopDownEvaluator
- Returns:
- list of output variables