|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fuberlin.wiwiss.wiqa.gp.GraphPatternTreeNode
A node in the tree of graph patterns. Represents one of the policy's graph patterns, manages its children, and may contain an explanation template associated with the pattern.
| Constructor Summary | |
GraphPatternTreeNode(ExplanationTemplate explanation)
Creates a root graph pattern. |
|
GraphPatternTreeNode(String sharedVariable,
ElementNamedGraph element,
ExplanationTemplate explanation)
Creates a new GraphPattern which corresponds to one of the PATTERN blocks in a WIQA policy. |
|
| Method Summary | |
void |
addChild(GraphPatternTreeNode childPattern)
|
List |
children()
|
ElementNamedGraph |
element()
|
BindingStreamConsumer |
explanationPartGenerator(ExplanationNode parent,
ExplanationStore store)
Creates a binding stream consumer that will instantiate the pattern's explanation template, and all of its child templates, and append the generated explanation parts to a given explanation node. |
ExplanationTemplate |
explanationTemplate()
|
List |
nextDescendantsWithExplanation()
Finds those children, grandchildren etc that have an associated explanation. |
String |
sharedVariable()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphPatternTreeNode(ExplanationTemplate explanation)
ElementNamedGraph, only a dummy
that mentions ?GRAPH.
explanation - The root explanation. May be null.
public GraphPatternTreeNode(String sharedVariable,
ElementNamedGraph element,
ExplanationTemplate explanation)
sharedVariable - The variable that is shared with the parentelement - The corresponding SPARQL syntax elementexplanation - The corresponding explanation. May be null.| Method Detail |
public String sharedVariable()
public ElementNamedGraph element()
public void addChild(GraphPatternTreeNode childPattern)
childPattern - Another pattern to be added as a childpublic List children()
public ExplanationTemplate explanationTemplate()
public List nextDescendantsWithExplanation()
GraphPatternTreeNodes
public BindingStreamConsumer explanationPartGenerator(ExplanationNode parent,
ExplanationStore store)
parent - The explanation node to which newly generated
explanation parts will be appended as childrenstore - An explanation store with explanations for functions and extensions
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||