Class RootPlan


  • public class RootPlan
    extends Object
    Entry point to a SPARQL-Generate query execution.
    Author:
    Maxime Lefrançois
    • Field Detail

      • selectPlan

        public final SelectPlan selectPlan
        The plan for the SPARQL SELECT.
    • Method Detail

      • execGenerate

        public Model execGenerate​(Context context)
        Executes a GENERATE query and returns the generated RDF Graph.
        Parameters:
        context - the execution context, created using ContextUtils
        Returns:
        the RDF Graph.
      • execGenerate

        public Model execGenerate​(List<Binding> values,
                                  Context context)
        Executes a GENERATE query and returns the generated RDF Graph.
        Parameters:
        values - the values for the query signature, or null.
        context - the execution context, created using ContextUtils
        Returns:
        the RDF Graph.
      • execGenerateStream

        public void execGenerateStream​(Context context)
        Executes a GENERATE query.
        Parameters:
        context - the execution context, created using ContextUtils
      • execGenerateStream

        public void execGenerateStream​(List<Binding> values,
                                       Context context)
        Executes a GENERATE query and emits generated triples to the stream.
        Parameters:
        values - the values for the query signature, or null.
        context - the execution context, created using ContextUtils
        output - the RDF Stream object.
      • execSelect

        public ResultSet execSelect​(Context context)
        Executes a SELECT query and returns the results.
        Parameters:
        context - the execution context, created using ContextUtils
        Returns:
        the ResultSet.
      • execSelect

        public ResultSet execSelect​(List<Binding> values,
                                    Context context)
        Executes a SELECT query and returns the results.
        Parameters:
        values - the values for the query signature, or null.
        context - the execution context, created using ContextUtils
        Returns:
        the ResultSet.
      • execSelectStream

        public void execSelectStream​(Context context)
      • execSelectStream

        public void execSelectStream​(List<Binding> values,
                                     Context context)
        Executes a SELECT query and emits generated results to the stream.
        Parameters:
        values - the values for the query signature, or null.
        context - the execution context, created using ContextUtils
        output - where to emit ResultSet objects.
      • execTemplate

        public String execTemplate​(Context context)
        Executes a TEMPLATE query.
        Parameters:
        context - the execution context, created using ContextUtils
        Returns:
        the output string.
      • execTemplate

        public String execTemplate​(List<Binding> values,
                                   Context context)
        Executes a TEMPLATE query.
        Parameters:
        values - the values for the query signature, or null.
        context - the execution context, created using ContextUtils
        Returns:
        the output string.
      • execTemplateStream

        public void execTemplateStream​(Context context)
      • execTemplateStream

        public void execTemplateStream​(List<Binding> values,
                                       Context context)
        Executes a TEMPLATE query.
        Parameters:
        values - the values for the query signature, or null.
        context - the execution context, created using ContextUtils