@InternalUseOnly public class GraphPattern extends Object
Constructor and Description |
---|
GraphPattern()
Creates a new graph pattern.
|
GraphPattern(GraphPattern parent)
Creates a new graph pattern that inherits the context and scope from a parent graph pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(ValueExpr constraint) |
void |
addConstraints(Collection<ValueExpr> constraints) |
void |
addOptionalTE(TupleExpr te,
List<ValueExpr> constraints)
add the supplied tuple expression as an optional expression, with a list of constraints that hold as conditions.
|
void |
addRequiredSP(Var subjVar,
Var predVar,
Var objVar) |
void |
addRequiredTE(TupleExpr te) |
TupleExpr |
buildTupleExpr()
Builds a combined tuple expression from the tuple expressions and constraints in this graph pattern.
|
void |
clear()
Removes all tuple expressions and constraints.
|
List<ValueExpr> |
getConstraints() |
Var |
getContextVar() |
List<Map.Entry<TupleExpr,List<ValueExpr>>> |
getOptionalTEs()
Retrieves the optional tuple expressions as a list of tuples with the tuple expression as the key and the list of
value expressions as the value.
|
List<TupleExpr> |
getRequiredTEs() |
StatementPattern.Scope |
getStatementPatternScope() |
List<ValueExpr> |
removeAllConstraints() |
void |
setContextVar(Var contextVar) |
void |
setStatementPatternScope(StatementPattern.Scope spScope) |
public GraphPattern()
public GraphPattern(GraphPattern parent)
public void setContextVar(Var contextVar)
public Var getContextVar()
public void setStatementPatternScope(StatementPattern.Scope spScope)
public StatementPattern.Scope getStatementPatternScope()
public void addRequiredTE(TupleExpr te)
public void addOptionalTE(TupleExpr te, List<ValueExpr> constraints)
te
- a tuple expressionconstraints
- a list of constraints that form a condition for the LeftJoin to be formed from the optional
TE.public List<Map.Entry<TupleExpr,List<ValueExpr>>> getOptionalTEs()
public void addConstraint(ValueExpr constraint)
public void addConstraints(Collection<ValueExpr> constraints)
public void clear()
public TupleExpr buildTupleExpr()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.