Class SPARQLQueryRenderer
- java.lang.Object
-
- org.eclipse.rdf4j.queryrender.sparql.SPARQLQueryRenderer
-
- All Implemented Interfaces:
QueryRenderer
public class SPARQLQueryRenderer extends java.lang.Object implements QueryRenderer
Implementation of the
QueryRenderer
interface which renders queries into the SPARQL syntax.
-
-
Field Summary
Fields Modifier and Type Field Description private SparqlTupleExprRenderer
mRenderer
The query renderer
-
Constructor Summary
Constructors Constructor Description SPARQLQueryRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryLanguage
getLanguage()
Return the language this QueryRenderer will render queries in.java.lang.String
render(ParsedQuery theQuery)
Render the query object to a string in the language supported by this renderer
-
-
-
Field Detail
-
mRenderer
private final SparqlTupleExprRenderer mRenderer
The query renderer
-
-
Method Detail
-
getLanguage
public QueryLanguage getLanguage()
Return the language this QueryRenderer will render queries in.- Specified by:
getLanguage
in interfaceQueryRenderer
- Returns:
- the query language
-
render
public java.lang.String render(ParsedQuery theQuery) throws java.lang.Exception
Render the query object to a string in the language supported by this renderer- Specified by:
render
in interfaceQueryRenderer
- Parameters:
theQuery
- the query to render- Returns:
- the rendered query
- Throws:
java.lang.Exception
- if there is an error while rendering
-
-