Class QueryExecutor


  • public class QueryExecutor
    extends Object
    Author:
    Maxime Lefrançois
    • Constructor Detail

      • QueryExecutor

        public QueryExecutor()
    • Method Detail

      • getPlanFromName

        public RootPlan getPlanFromName​(String queryName,
                                        Context context)
        Parameters:
        queryName -
        base -
        context -
        Returns:
        the plan, or null.
      • getPlanFromString

        public RootPlan getPlanFromString​(String queryString,
                                          String base)
        Parameters:
        queryString -
        base -
        Returns:
        the plan, or null.
      • getPlan

        public RootPlan getPlan​(SPARQLExtQuery query)
        Parameters:
        query -
        context -
        Returns:
        the plan, or null.
      • execGenerateFromQuery

        public void execGenerateFromQuery​(SPARQLExtQuery query,
                                          Binding binding,
                                          Context context)
        Parameters:
        queryName -
        callParameters - never null
        context -
      • execGenerateFromName

        public void execGenerateFromName​(String queryName,
                                         List<List<Node>> callParameters,
                                         Context context)
        Parameters:
        queryName -
        callParameters - never null
        context -
      • execSelectFromName

        public void execSelectFromName​(String queryName,
                                       List<List<Node>> callParameters,
                                       Context context)
        Parameters:
        queryName - the name of the query (needs to be fetched)
        callParameters -
        context -
      • execSelectFromString

        public void execSelectFromString​(String queryString,
                                         List<List<Node>> callParameters,
                                         Context context)
        Parameters:
        queryString - the query as a string
        callParameters -
        context -
        outputSelect -
      • execTemplateFromName

        public void execTemplateFromName​(String queryName,
                                         List<List<Node>> callParameters,
                                         Context context)
        Parameters:
        queryName - the query uri
        callParameters -
        context -
        outputTemplate -
      • execTemplateFromString

        public void execTemplateFromString​(String queryString,
                                           Binding binding,
                                           Context context)
        Parameters:
        queryString - the query as a string
        binding -
        context -
        outputTemplate -