|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.syntax.abstrakt.TreeNode
org.openanzo.glitter.syntax.abstrakt.GraphPattern
org.openanzo.glitter.syntax.abstrakt.BGP
public class BGP
A SPARQL basic graph pattern. Logically, a BGP is an ordered list of triple patterns
and possibly a FunctionalPredicate.
| Constructor Summary | |
|---|---|
BGP()
Default constructor. |
|
BGP(java.util.ArrayList<TriplePatternNode> triples)
Construct a BGP from a list of triple patterns. |
|
BGP(TriplePatternNode[] triples)
Construct a BGP from an array of triple patterns. |
|
| Method Summary | |
|---|---|
void |
addChild(TreeNode child)
Adds the given child at the end of this node's children. |
void |
addTriplePattern(TriplePatternNode tp)
Add a new triple pattern to this BGP. |
java.util.Iterator<TriplePatternNode> |
getChildren()
|
FunctionalPredicate |
getFunctionalPredicate()
|
java.lang.Iterable<TriplePatternNode> |
getTriplePatterns()
|
boolean |
removeChild(TreeNode child)
Removes the given child from the collection of children |
boolean |
replaceChild(TreeNode oldChild,
TreeNode newChild)
Changes the tree below this node by replacing oldChild with newChild |
void |
setFunctionalPredicate(FunctionalPredicate fp)
|
java.lang.String |
toString()
|
| Methods inherited from class org.openanzo.glitter.syntax.abstrakt.TreeNode |
|---|
containsVariable, getBindableVariableCount, getBindableVariableSet, getFilters, getInScopeFilterSet, getParent, getRoot, getVariableCount, getVariableSet, invalidateCache, invalidateCache, mightBindVariable, prettyPrint, prettyPrint |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BGP()
public BGP(TriplePatternNode[] triples)
triples - public BGP(java.util.ArrayList<TriplePatternNode> triples)
triples - | Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void addTriplePattern(TriplePatternNode tp)
tp - public java.lang.Iterable<TriplePatternNode> getTriplePatterns()
public FunctionalPredicate getFunctionalPredicate()
FunctionalPredicate captured by this basic graph pattern.public void setFunctionalPredicate(FunctionalPredicate fp)
fp - Sets a functional predicate for this BGP.public java.util.Iterator<TriplePatternNode> getChildren()
getChildren in class TreeNodeIterator over the children of this node.
public boolean replaceChild(TreeNode oldChild,
TreeNode newChild)
TreeNode
replaceChild in class TreeNodepublic boolean removeChild(TreeNode child)
TreeNode
removeChild in class TreeNodepublic void addChild(TreeNode child)
TreeNode
addChild in class TreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||