public class BigdataASTContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BigdataValueFactory |
valueFactory |
protected Map<org.openrdf.model.Value,BigdataValue> |
vocab
A mapping of parsed RDF Values and well known vocabulary items used when
generating the AST to resolved
BigdataValues. |
| Constructor and Description |
|---|
BigdataASTContext(Map<org.openrdf.model.Value,BigdataValue> values) |
| Modifier and Type | Method and Description |
|---|---|
protected VarNode |
createAnonVar(String varName)
Create an anonymous variable.
|
protected ConstantNode |
createConstVar(org.openrdf.model.Value value)
Return a constant for a pre-defined vocabulary item.
|
protected VarNode |
createSidVar()
Return a new variable for a SID (Statement Identifier)
|
protected final BigdataValueFactory valueFactory
protected final Map<org.openrdf.model.Value,BigdataValue> vocab
BigdataValues. This includes
everything which was parsed plus certain well-known items such as
RDF.FIRST, RDF.REST, and RDF.NIL which are only
used when handling syntactic sugar constructions.public BigdataASTContext(Map<org.openrdf.model.Value,BigdataValue> values)
values - A map from the distinct RDF Value objects in the QUERY
or UPDATE request to the corresponding BigdataValue
objects that will be used to process the request.protected VarNode createAnonVar(String varName)
VarNode.isAnonymous() will
return true.varName - The prefix of the name of an anonymous variable. This should
have the pattern -foo-. An unique (within query)
variable identifier will be appended to the prefix.protected ConstantNode createConstVar(org.openrdf.model.Value value) throws VisitorException
VisitorExceptionprotected VarNode createSidVar()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.