Class SPARQLQueryRenderer
java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.SPARQLQueryRenderer
- All Implemented Interfaces:
QueryRenderer
Implementation of the QueryRenderer
interface which renders queries into the SPARQL syntax.
- Author:
- Michael Grove
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the language this QueryRenderer will render queries in.render
(ParsedQuery theQuery) Render the query object to a string in the language supported by this renderer
-
Constructor Details
-
SPARQLQueryRenderer
public SPARQLQueryRenderer()
-
-
Method Details
-
getLanguage
Return the language this QueryRenderer will render queries in.- Specified by:
getLanguage
in interfaceQueryRenderer
- Returns:
- the query language
-
render
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:
Exception
- if there is an error while rendering
-