|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fuberlin.wiwiss.wiqa.Explanation
A textual explanation why a given triple matched a given policy.
Explanations are structured as a tree of text fragments.
This class represents the root of the tree and has no associated
text fragment; the other nodes are ExplanationParts and all
have associated text fragments. Explanations are generated
either programmatically by ExplainableFunctions and
ExplainableExtensions, or through the instantiation
of ExplanationTemplates.
The main capability of an explanation is to write itself into
an RDF graph using the EXPL vocabulary.
| Constructor Summary | |
Explanation(Triple triple,
Policy policy)
Creates a new, empty explanation. |
|
| Method Summary | |
void |
addPart(ExplanationPart part)
Adds a new child to the root node of this explanation tree. |
boolean |
equals(Object other)
Checks two explanations for equality. |
Triple |
getExplainedTriple()
|
String |
getPolicyDescription()
|
String |
getPolicyName()
|
int |
hashCode()
|
Collection |
parts()
|
Graph |
toRDF()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Explanation(Triple triple,
Policy policy)
triple - An RDF triplepolicy - The policy that has accepted the triple| Method Detail |
public void addPart(ExplanationPart part)
addPart in interface ExplanationNodepart - The new childpublic Collection parts()
public boolean equals(Object other)
other - Another object
public int hashCode()
public Graph toRDF()
EXPL vocabularypublic Triple getExplainedTriple()
public String getPolicyName()
public String getPolicyDescription()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||