de.fuberlin.wiwiss.wiqa.explanation
Class E_ExplainableFunction
java.lang.Object
com.hp.hpl.jena.query.expr.ExprNode
com.hp.hpl.jena.query.expr.ExprNodeFunction
com.hp.hpl.jena.query.expr.E_Function
de.fuberlin.wiwiss.wiqa.explanation.E_ExplainableFunction
- All Implemented Interfaces:
- Constraint, Expr
- public class E_ExplainableFunction
- extends E_Function
A node in the parse tree for FILTER expressions that represents
a function call and which the WIQA parser emits instead of ARQ's
E_Function. After calling the function, this class will
check if an ExplanationPart was placed into the
ExecutionContext, and store it into the binding.
Note: This is a hack. It assumes that the
binding is a BindingMap. ARQ doesn't guarantee this.
We use the QueryIterExplainableFilter to convert other
bindings into BindingMaps, but this relies on the fact that
ARQ passes bindings through to the functions without change,
something that is not guaranteed by the ARQ interfaces.
- Version:
- $Id: E_ExplainableFunction.java,v 1.1 2006/01/31 19:19:04 cyganiak Exp $
- Author:
- Richard Cyganiak (richard@cyganiak.de)
E_ExplainableFunction
public E_ExplainableFunction(String name,
List args)
eval
public NodeValue eval(Binding binding,
ExecutionContext execCxt)