Class SparqlQueryRenderer
java.lang.Object
org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor<Exception>
org.eclipse.rdf4j.queryrender.BaseTupleExprRenderer
org.eclipse.rdf4j.queryrender.sparql.experimental.SparqlQueryRenderer
- All Implemented Interfaces:
QueryModelVisitor<Exception>
,QueryRenderer
@Experimental
public class SparqlQueryRenderer
extends BaseTupleExprRenderer
implements QueryRenderer
An alternative implementation of the SPARQL query renderer (more complete than the default
SPARQLQueryRenderer
)- Author:
- Andriy Nikolov, Jeen Broekstra, Andreas Schwarte
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.queryrender.BaseTupleExprRenderer
mDistinct, mExtensions, mLimit, mOffset, mOrdering, mProjection, mReduced
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the language this QueryRenderer will render queries in.Render the TupleExpr as a query or query fragment depending on what kind of TupleExpr it isrender
(ParsedOperation theOperation) render
(ParsedQuery theQuery) Render the ParsedQuery as a query stringrenderValueExpr
(ValueExpr theExpr) Render the given ValueExprMethods inherited from class org.eclipse.rdf4j.queryrender.BaseTupleExprRenderer
getExtensions, getLimit, getOffset, getOrdering, getProjection, isDistinct, isReduced, isSelect, isSPOElemList, meet, meet, meet, meet, meet, meet, meet, reset, scrubVarName, toStatementPattern
Methods inherited from class org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor
meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meet, meetBinaryTupleOperator, meetBinaryValueOperator, meetCompareSubQueryValueOperator, meetNAryValueOperator, meetNode, meetOther, meetSubQueryValueOperator, meetUnaryTupleOperator, meetUnaryValueOperator, meetUpdateExpr
-
Constructor Details
-
SparqlQueryRenderer
public SparqlQueryRenderer()
-
-
Method Details
-
getLanguage
Description copied from interface:QueryRenderer
Return the language this QueryRenderer will render queries in.- Specified by:
getLanguage
in interfaceQueryRenderer
- Returns:
- the query language
-
render
Description copied from class:BaseTupleExprRenderer
Render the ParsedQuery as a query string- Specified by:
render
in interfaceQueryRenderer
- Overrides:
render
in classBaseTupleExprRenderer
- Parameters:
theQuery
- the parsed query to render- Returns:
- the query object rendered in the query language syntax
-
render
-
render
Description copied from class:BaseTupleExprRenderer
Render the TupleExpr as a query or query fragment depending on what kind of TupleExpr it is- Specified by:
render
in classBaseTupleExprRenderer
- Parameters:
theExpr
- the expression to render- Returns:
- the TupleExpr rendered in the query language syntax
-
renderValueExpr
Description copied from class:BaseTupleExprRenderer
Render the given ValueExpr- Specified by:
renderValueExpr
in classBaseTupleExprRenderer
- Parameters:
theExpr
- the expr to render- Returns:
- the rendered expression
-