Interface QueryRenderer

All Known Implementing Classes:
SparqlQueryRenderer, SPARQLQueryRenderer

public interface QueryRenderer

Interface for RDF4J-based query renderers

Author:
Michael Grove
  • Method Summary

    Modifier and Type
    Method
    Description
    Return 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
  • Method Details

    • getLanguage

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

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