Class RootPlan


  • public class RootPlan
    extends java.lang.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​(java.util.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​(java.util.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​(java.util.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​(java.util.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 java.lang.String execTemplate​(Context context)
        Executes a TEMPLATE query.
        Parameters:
        context - the execution context, created using ContextUtils
        Returns:
        the output string.
      • execTemplate

        public java.lang.String execTemplate​(java.util.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​(java.util.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