|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sail.query.GraphPattern
A pattern consisting of a set of path expressions and boolean constraints on the values in the path expressions, and zero or more optional child graph patterns.
| Constructor Summary | |
GraphPattern()
Creates a new GraphPattern. |
|
| Method Summary | |
void |
add(PathExpression pathExpr)
Adds a path expression to the this object. |
void |
addAll(Collection triplePatterns)
Adds a collection of PathExpression objects to this object. |
void |
addConstraint(BooleanExpr constraint)
Adds the supplied constraint to the set of constraints for this graph pattern. |
void |
addOptional(GraphPattern optionalGP)
Adds an optional child graph pattern to this graph pattern. |
void |
clear()
Clears the internal state of this object. |
boolean |
findFirst(RdfSource rdfSource)
|
boolean |
findNext(RdfSource rdfSource)
|
List |
getConjunctiveConstraints()
Gets a list of conjunctive constraints. |
List |
getExpressions()
|
void |
getLocalVariables(Collection variables)
Gets all variables that are used in the path expressions of this GraphPattern. |
List |
getOptionals()
Gets a list of optional child graph patterns. |
List |
getPathExpressions()
Gets a list of path expressions contained in this object. |
List |
getPathExpressionsRecursively()
Gets a list of path expressions contained in this object and all of its optional child graph patterns recursively. |
BooleanExpr |
getRootConstraint()
Gets the constraints on this graph pattern as a single boolean 'root' constraint. |
void |
getVariables(Collection variables)
Gets all variables that are used in this PathExpression. |
void |
initialize(RdfSource rdfSource)
Initializes the PathExpression. |
boolean |
selectNext(RdfSource rdfSource)
Selects the next path matching this path expression. |
void |
setConstraints(BooleanExpr constraint)
Sets the constraints for this graph pattern to the supplied constraint, removing any existing constraints. |
void |
setConstraints(List constraints)
Sets the constraints for this graph pattern to the supplied constraints, removing any existing constraints. |
void |
setExpressions(List expressions)
|
void |
setOptionals(Collection optionals)
Sets the optional child graph patterns for this object to the supplied set. |
void |
setPathExpressions(List pathExpressions)
Sets the list of path expressions for this object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GraphPattern()
| Method Detail |
public void addAll(Collection triplePatterns)
public void add(PathExpression pathExpr)
public List getPathExpressions()
public void setPathExpressions(List pathExpressions)
public List getPathExpressionsRecursively()
public BooleanExpr getRootConstraint()
getConjunctiveConstraints()public List getConjunctiveConstraints()
getRootConstraint()public void setConstraints(BooleanExpr constraint)
constraint - The new constraint(s) for the graph pattern.public void setConstraints(List constraints)
constraints - The new constraints for the graph pattern.public void addConstraint(BooleanExpr constraint)
constraint - A new constraint.public void addOptional(GraphPattern optionalGP)
public List getOptionals()
public void setOptionals(Collection optionals)
public List getExpressions()
public void setExpressions(List expressions)
public boolean findFirst(RdfSource rdfSource)
throws SailQueryException
SailQueryException
public boolean findNext(RdfSource rdfSource)
throws SailQueryException
SailQueryExceptionpublic void initialize(RdfSource rdfSource)
PathExpression
initialize in interface PathExpression
public boolean selectNext(RdfSource rdfSource)
throws SailQueryException
PathExpression
selectNext in interface PathExpressionSailQueryExceptionpublic void clear()
clear in interface PathExpressionpublic void getLocalVariables(Collection variables)
public void getVariables(Collection variables)
PathExpression
getVariables in interface PathExpressionvariables - A Collection to add the Var objects to.public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||