Class SpinParser.SpinVisitor
java.lang.Object
org.eclipse.rdf4j.spin.SpinParser.SpinVisitor
- Enclosing class:
SpinParser
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Collection<AggregateOperator> (package private) Group(package private) Var(package private) Map<String, ProjectionElem> (package private) final TripleSource(package private) TupleExpr(package private) TupleExpr(package private) UpdateExpr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate ProjectionElemcreateProjectionElem(Value v, String projName, Map<String, ProjectionElem> previousProjElems) private Varprivate Varprivate Stringprivate Compare.CompareOptoCompareOp(IRI func) private MathExpr.MathOpprivate ValueExprtoValueExpr(Resource r, IRI func) voidprivate voidvoidvisitClear(Resource query) voidvisitConstruct(Resource construct) voidvisitCreate(Resource query) private voidvisitDelete(Resource delete) voidvisitDeleteData(Resource query) voidvisitDeleteWhere(Resource query) voidvisitDescribe(Resource describe) private ValueExprprivate voidprivate voidvisitGroupBy(Resource groupby) visitGroupGraphPattern(Resource group) private TupleExprvisitHaving(Resource having) private voidvisitInsert(Resource insert) voidvisitInsertData(Resource query) voidvoidvisitModify(Resource query) private OrdervisitOrderBy(Resource orderby) private OrderElemprivate voidvisitPattern(Resource r, Set<IRI> types, TupleExpr currentGroupExpr) private ProjectionElemprivate ProjectionvisitResultNodes(Resource resultNodes) private ProjectionElemvisitResultVariable(Resource r, Map<String, ProjectionElem> previousProjElems) private ProjectionvisitResultVariables(Resource resultVars, Map<String, ProjectionElem> previousProjElems) voidvisitSelect(Resource select) private ProjectionElemListprivate UnaryTupleOperatorvisitTemplates(Resource templates) visitWhere(Resource query)
-
Field Details
-
store
-
tupleRoot
TupleExpr tupleRoot -
tupleNode
TupleExpr tupleNode -
updateRoot
UpdateExpr updateRoot -
namedGraph
Var namedGraph -
projElems
Map<String, ProjectionElem> projElems -
group
Group group -
vars
-
aggregates
Collection<AggregateOperator> aggregates
-
-
Constructor Details
-
SpinVisitor
SpinVisitor(TripleSource store)
-
-
Method Details
-
getTupleExpr
-
getUpdateExpr
-
visitConstruct
- Throws:
RDF4JException
-
visitDescribe
- Throws:
RDF4JException
-
visitSelect
- Throws:
RDF4JException
-
visitAsk
- Throws:
RDF4JException
-
addSourceExpressions
-
visitTemplates
- Throws:
RDF4JException
-
visitTemplate
- Throws:
RDF4JException
-
visitResultNodes
- Throws:
RDF4JException
-
visitResultNode
- Throws:
RDF4JException
-
visitResultVariables
private Projection visitResultVariables(Resource resultVars, Map<String, ProjectionElem> previousProjElems) throws RDF4JException - Throws:
RDF4JException
-
visitResultVariable
private ProjectionElem visitResultVariable(Resource r, Map<String, ProjectionElem> previousProjElems) throws RDF4JException - Throws:
RDF4JException
-
visitGroupBy
- Throws:
RDF4JException
-
visitHaving
- Throws:
RDF4JException
-
visitOrderBy
- Throws:
RDF4JException
-
visitOrderByCondition
- Throws:
RDF4JException
-
createProjectionElem
private ProjectionElem createProjectionElem(Value v, String projName, Map<String, ProjectionElem> previousProjElems) throws RDF4JException - Throws:
RDF4JException
-
visitModify
- Throws:
RDF4JException
-
visitDeleteWhere
- Throws:
RDF4JException
-
visitInsertData
- Throws:
RDF4JException
-
visitDeleteData
- Throws:
RDF4JException
-
visitLoad
- Throws:
RDF4JException
-
visitClear
- Throws:
RDF4JException
-
visitCreate
- Throws:
RDF4JException
-
visitWhere
- Throws:
RDF4JException
-
visitGroupGraphPattern
- Throws:
RDF4JException
-
visitInsert
- Throws:
RDF4JException
-
visitDelete
- Throws:
RDF4JException
-
visitPattern
private void visitPattern(Resource r, Set<IRI> types, TupleExpr currentGroupExpr) throws RDF4JException - Throws:
RDF4JException
-
visitFilter
- Throws:
RDF4JException
-
visitBind
- Throws:
RDF4JException
-
visitExpression
- Throws:
RDF4JException
-
toValueExpr
- Throws:
RDF4JException
-
toCompareOp
-
toMathOp
-
getArgs
- Parameters:
knownArgs- empty for vararg, null for unknown.- Throws:
RDF4JException
-
getVarName
- Throws:
RDF4JException
-
getVar
- Throws:
RDF4JException
-
createVar
-