public class UpdateExprBuilder extends BigdataExprBuilder
BigdataExprBuilder
that builds Update Expressions.graphPattern
context
Constructor and Description |
---|
UpdateExprBuilder(BigdataASTContext context) |
Modifier and Type | Method and Description |
---|---|
AddGraph |
visit(ASTAdd node,
Object data) |
ClearGraph |
visit(ASTClear node,
Object data)
Note: DROP and CLEAR have the identical semantics for bigdata since it
does not support empty graphs.
|
CopyGraph |
visit(ASTCopy node,
Object data) |
CreateEntailments |
visit(ASTCreateEntailments node,
Object data) |
CreateGraph |
visit(ASTCreate node,
Object data) |
QuadData |
visit(ASTDeleteClause node,
Object data) |
DeleteData |
visit(ASTDeleteData node,
Object data)
Note: For DELETE DATA, QuadData denotes triples to be removed and is as
described in INSERT DATA, with the difference that in a DELETE DATA
operation neither variables nor blank nodes are allowed (see Notes 8+9 in
the grammar).
|
DeleteInsertGraph |
visit(ASTDeleteWhere node,
Object data)
This handles the "DELETE WHERE" syntax short hand.
|
DisableEntailments |
visit(ASTDisableEntailments node,
Object data) |
DropEntailments |
visit(ASTDropEntailments node,
Object data) |
DropGraph |
visit(ASTDrop node,
Object data)
Note: DROP and CLEAR have the identical semantics for bigdata since it
does not support empty graphs.
|
EnableEntailments |
visit(ASTEnableEntailments node,
Object data) |
QuadData |
visit(ASTInsertClause node,
Object data) |
InsertData |
visit(ASTInsertData node,
Object data)
Note: Variables in QuadDatas are disallowed in INSERT DATA requests (see
Notes 8 in the grammar).
|
LoadGraph |
visit(ASTLoad node,
Object data) |
DeleteInsertGraph |
visit(ASTModify node,
Object data)
The DELETE/INSERT operation can be used to remove or add triples from/to
the Graph Store based on bindings for a query pattern specified in a
WHERE clause:
|
MoveGraph |
visit(ASTMove node,
Object data) |
QuadData |
visit(ASTQuadsNotTriples node,
Object data) |
VarNode |
visit(ASTSolutionsRef node,
Object data)
Solution set names get modeled as variables which report
true for VarNode.isSolutionSet() . |
handleSelect, verifyAggregate, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
aggregate, binary, left, nary, noneary, quadary, right, ternary, unary, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
depth, firstASTGraphGraphAncestor, indent, indent, scopedGroupGraphPattern, visit, visit, visit, visit, visit, visit, visit, visit, visit
public UpdateExprBuilder(BigdataASTContext context)
public InsertData visit(ASTInsertData node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public DeleteData visit(ASTDeleteData node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public QuadData visit(ASTQuadsNotTriples node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public DeleteInsertGraph visit(ASTDeleteWhere node, Object data) throws VisitorException
DELETE WHERE QuadPatternThis is similar to a CONSTRUCT without an explicit template. The WHERE clause provides both the pattern to match and the template for the quads to be removed.
Note: The grammar production for the WHERE clause for the DELETE WHERE
shortcut form is the same production that is used for the DELETE and
INSERT clauses. This results in a QuadData
object containing
StatementPatternNode
s. That object must be transformed into a
JoinGroupNode
in order to be valid as a WHERE clause.
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
(DELETE WHERE
fails with Java AssertionError)
public LoadGraph visit(ASTLoad node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public ClearGraph visit(ASTClear node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public DropGraph visit(ASTDrop node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public CreateGraph visit(ASTCreate node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public CopyGraph visit(ASTCopy node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public MoveGraph visit(ASTMove node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public AddGraph visit(ASTAdd node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public DeleteInsertGraph visit(ASTModify node, Object data) throws VisitorException
( WITH IRIref )? ( ( DeleteClause InsertClause? ) | InsertClause ) ( USING ( NAMED )? IRIref )* WHERE GroupGraphPatternThe DeleteClause and InsertClause forms can be broken down as follows:
DeleteClause ::= DELETE QuadPattern InsertClause ::= INSERT QuadPattern
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public QuadData visit(ASTDeleteClause node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public QuadData visit(ASTInsertClause node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public final VarNode visit(ASTSolutionsRef node, Object data) throws VisitorException
true
for VarNode.isSolutionSet()
.visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public DropEntailments visit(ASTDropEntailments node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public CreateEntailments visit(ASTCreateEntailments node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public EnableEntailments visit(ASTEnableEntailments node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
public DisableEntailments visit(ASTDisableEntailments node, Object data) throws VisitorException
visit
in interface SyntaxTreeBuilderVisitor
visit
in class ASTVisitorBase
VisitorException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.