Class SPARQLQueryRenderer

  • All Implemented Interfaces:
    QueryRenderer

    public class SPARQLQueryRenderer
    extends Object
    implements QueryRenderer

    Implementation of the QueryRenderer interface which renders queries into the SPARQL syntax.

    Author:
    Michael Grove
    • Constructor Detail

      • SPARQLQueryRenderer

        public SPARQLQueryRenderer()
    • Method Detail

      • getLanguage

        public QueryLanguage getLanguage()
        Return the language this QueryRenderer will render queries in.
        Specified by:
        getLanguage in interface QueryRenderer
        Returns:
        the query language
      • render

        public String render​(ParsedQuery theQuery)
                      throws Exception
        Render the query object to a string in the language supported by this renderer
        Specified by:
        render in interface QueryRenderer
        Parameters:
        theQuery - the query to render
        Returns:
        the rendered query
        Throws:
        Exception - if there is an error while rendering