java.lang.Object
fr.mines_stetienne.ci.sparql_generate.engine.RootPlan

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

    • selectPlan

      public final SelectPlan selectPlan
      The plan for the SPARQL SELECT.
  • Constructor Details

  • Method Details

    • getQuery

      public SPARQLExtQuery getQuery()
    • execGenerate

      public org.apache.jena.rdf.model.Model execGenerate(org.apache.jena.sparql.util.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 org.apache.jena.rdf.model.Model execGenerate(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context)
      Executes a GENERATE query.
      Parameters:
      context - the execution context, created using ContextUtils
    • execGenerateStream

      public void execGenerateStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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 org.apache.jena.query.ResultSet execSelect(org.apache.jena.sparql.util.Context context)
      Executes a SELECT query and returns the results.
      Parameters:
      context - the execution context, created using ContextUtils
      Returns:
      the ResultSet.
    • execSelect

      public org.apache.jena.query.ResultSet execSelect(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context)
    • execSelectStream

      public void execSelectStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context)
      Executes a TEMPLATE query.
      Parameters:
      context - the execution context, created using ContextUtils
      Returns:
      the output string.
    • execTemplate

      public String execTemplate(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.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(org.apache.jena.sparql.util.Context context)
    • execTemplateStream

      public void execTemplateStream(List<org.apache.jena.sparql.engine.binding.Binding> values, org.apache.jena.sparql.util.Context context)
      Executes a TEMPLATE query.
      Parameters:
      values - the values for the query signature, or null.
      context - the execution context, created using ContextUtils