Class QueryExecutor


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

      • QueryExecutor

        public QueryExecutor()
    • Method Detail

      • getPlanFromName

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

        public RootPlan getPlanFromString​(java.lang.String queryString,
                                          java.lang.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​(java.lang.String queryName,
                                         java.util.List<java.util.List<Node>> callParameters,
                                         Context context)
        Parameters:
        queryName -
        callParameters - never null
        context -
      • execGeneratePlan

        public void execGeneratePlan​(RootPlan plan,
                                     java.util.List<Binding> values,
                                     Context context)
      • execSelectFromName

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

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

        public void execSelectFromQuery​(SPARQLExtQuery query,
                                        java.util.List<java.util.List<Node>> callParameters,
                                        Context context)
      • execSelectPlan

        public void execSelectPlan​(RootPlan plan,
                                   java.util.List<Binding> newValues,
                                   Context context)
      • execTemplateFromName

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

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

        public void execTemplateFromQuery​(SPARQLExtQuery query,
                                          java.util.List<java.util.List<Node>> callParameters,
                                          Context context)
      • execTemplatePlan

        public void execTemplatePlan​(RootPlan plan,
                                     java.util.List<Binding> newValues,
                                     Context context)