|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fuberlin.wiwiss.wiqa.explanation.ExplanationStore
A temporary storage for explanation fragments. This is used
to associate the explanations returned from
ExplainableFunctions
with the bindings that they explain.
ARQ Bindings cannot store explanation parts. They can only store RDF nodes. Therefore, we store the parts in this class, and store numeric tokens in the bindings, in ÒmagicÓ variables ?__explanation_function1 and so on.
The QueryIterExplain retrieves the parts after query
execution and integrates them into the overall explanation.
A new ExplanationStore must be used for each query execution to avoid memory leaks.
| Constructor Summary | |
ExplanationStore()
|
|
| Method Summary | |
ExplanationPart |
get(Binding binding,
String functionName)
Retrieves an explanation part from the store. |
void |
store(BindingMap binding,
ExplanationPart part,
String functionName)
Puts an explanation into the store and adds a magic variable to the binding. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExplanationStore()
| Method Detail |
public void store(BindingMap binding,
ExplanationPart part,
String functionName)
binding - A bindingpart - An explanation partfunctionName - The name of the explaining function
public ExplanationPart get(Binding binding,
String functionName)
binding - A bindingfunctionName - The name of the explaining function
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||