de.fuberlin.wiwiss.wiqa
Class ExplainableFunction

java.lang.Object
  extended bycom.hp.hpl.jena.query.function.FunctionBase
      extended byde.fuberlin.wiwiss.wiqa.ExplainableFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
MorePositiveRatings, TidalTrust

public abstract class ExplainableFunction
extends FunctionBase

Abstract base class for ARQ functions that can generate explanations.

In fact, any class implementing Function can return explanations. This class merely provides a convenience method returnExplanation(de.fuberlin.wiwiss.wiqa.ExplanationPart) to simplify the process.

Functions produce an RDF node from a number of input RDF nodes. Function instances are generated once at query parse time and then reused. A function can return an explanation for every invocation.

Version:
$Id: ExplainableFunction.java,v 1.4 2006/06/14 14:27:55 cyganiak Exp $
Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
ExplainableFunction()
           
 
Method Summary
 void build(String uri, List args)
          Provide a default implementation of build that does nothing.
 DatasetGraph getDataset()
          Provides the function with access to the unfiltered dataset.
 void returnExplanation(ExplanationPart explanation)
          Returns an explanation.
 
Methods inherited from class com.hp.hpl.jena.query.function.FunctionBase
exec, exec, getArg, getContext, getCurrentBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplainableFunction

public ExplainableFunction()
Method Detail

build

public void build(String uri,
                  List args)
Provide a default implementation of build that does nothing.


getDataset

public DatasetGraph getDataset()
Provides the function with access to the unfiltered dataset.

Returns:
The unfiltered dataset

returnExplanation

public void returnExplanation(ExplanationPart explanation)
Returns an explanation.

Parameters:
explanation -