System and method for syntax abstraction in query language generation
First Claim
1. A computer-implemented system comprises at least a programmed computer processor for automated generation of one or more query language statements, the computer implemented system comprising:
- a syntax pattern selector module using the programmed computer processor for selecting, in an automated process, a syntax pattern corresponding to a desired function defining a default syntax pattern provided to the syntax pattern selector module and a syntax standard for use in generating the one or more query language statements;
a statement assembly module using the programmed computer processor for populating the syntax pattern, in the automated process with an argument data set associated with parameters that specify information of a desired data set and the desired function provided to the statement assembly module as part of the process of generating the one or more query language statements, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements; and
whereby at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set is assembled to be run against a data source to return the desired data set.
5 Assignments
0 Petitions
Accused Products
Abstract
A system and method for syntax abstraction in query language generation in an online analytical processing system, a business intelligence system, a reporting system, or a data mining system. The system generates one or more query language statements that can be run against one or more data sources to return a desired data result set. The system includes a syntax pattern selector module and a statement assembly module. The syntax pattern selector module selects a syntax pattern corresponding to a desired function and a syntax standard. The statement assembly module populates the syntax pattern with an argument data set associated with the desired data set. The result is the generation of one or more query language statements with the correct function, syntax, and data parameters to return the desired data result set from the data sources. A method and medium having processor readable code therein are also described.
58 Citations
24 Claims
-
1. A computer-implemented system comprises at least a programmed computer processor for automated generation of one or more query language statements, the computer implemented system comprising:
-
a syntax pattern selector module using the programmed computer processor for selecting, in an automated process, a syntax pattern corresponding to a desired function defining a default syntax pattern provided to the syntax pattern selector module and a syntax standard for use in generating the one or more query language statements; a statement assembly module using the programmed computer processor for populating the syntax pattern, in the automated process with an argument data set associated with parameters that specify information of a desired data set and the desired function provided to the statement assembly module as part of the process of generating the one or more query language statements, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements; and whereby at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set is assembled to be run against a data source to return the desired data set. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer-implemented system comprises at least a programmed computer processor for generating one or more query language statements, the computer implemented system comprising:
-
a syntax pattern selector module using the programmed computer processor for selecting a syntax pattern corresponding to a desired function defining a default syntax pattern, and a syntax standard; a statement assembly module using the programmed computer processor for populating the syntax pattern with an argument data set associated with parameters that specify information of a desired data set and the desired function, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements;
a structure generator module using the programmed computer processor for generating a query structure based on the desired data set, the query structure providing a basis for identifying the desired function to be used by the syntax pattern selector module; andwhereby at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set is assembled to be run against a data source to return the desired data set.
-
-
7. A computer-implemented system comprises at least a programmed computer processor for generating one or more query language statements, the computer implemented system comprising:
-
a syntax pattern selector module using the programmed computer processor for selecting a syntax pattern corresponding to a desired function defining a default syntax pattern, and a syntax standard; a statement assembly module using the programmed computer processor for populating the syntax pattern with an argument data set associated with parameters that specify information of a desired data set and the desired function, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements;
a function identifier module using the programmed computer processor for identifying a functional element corresponding to the desired function and at least one syntax pattern; andwhereby at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set is assembled to be run against a data source to return the desired data set.
-
-
8. A computer-implemented system comprises at least a programmed computer processor for generating one or more query language statements, the computer implemented system comprising:
-
a syntax pattern selector module using the programmed computer processor for selecting a syntax pattern corresponding to a desired function defining a default syntax pattern, and a syntax standard; a statement assembly module using the programmed computer processor for populating the syntax pattern with an argument data set associated with parameters that specify information of a desired data set and the desired function, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements;
an argument generator module using the programmed computer processor for identifying the argument data set associated with the desired data set; andwhereby at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set is assembled to be run against a data source to return the desired data set. - View Dependent Claims (9)
-
-
10. A computer-implemented method of generating one or more query language statements to be run against a one or more data sources, comprising the steps, performed by a computer system, of:
-
selecting a syntax pattern corresponding to a desired function defining a default syntax pattern, provided as an input and a syntax standard for use in generating the one or more query language statements; populating the syntax pattern with an argument data set associated with parameters that specify information of a desired data set and the desired function provided as an input identifying the data set on which to operate from the data source as part of generating the one or more query language statements, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements; and wherein, the populated syntax pattern is used to generate one or more query language statements having a tree query structure generated based at least in part on the parameters that specify information of the desired data set runnable against one or more data sources to return the desired data result set. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. A method of generating one or more query language statements to be run against a one or more data sources, comprising the steps of:
-
selecting a syntax pattern corresponding to a desired function defining a default syntax pattern, and a syntax standard; populating the syntax pattern with an argument data set associated with parameters that specify information of a desired data set from the data source and the desired function, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements; identifying a functional element corresponding to the desired function and at least one syntax pattern, the functional element providing a basis for selecting the syntax pattern; and
wherein, the populated syntax pattern comprises one or more query language statements having a tree query structure generated based at least in part on the parameters that specify information of the desired data set runnable against one or more data sources to return the desired data result set.
-
-
18. A method of generating one or more query language statements to be run against a one or more data sources, comprising the steps of:
-
selecting a syntax pattern corresponding to a desired function defining a default syntax pattern, and a syntax standard; populating the syntax pattern with an argument data set associated with parameters that specify information of a desired data set from the data source and the desired function, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the default syntax pattern to generate the one or more query language statements; identifying the argument data set associated with the desired data set; and
wherein, the populated syntax pattern comprises one or more query language statements having a tree query structure generated based at least in part on the parameters that specify information of the desired data set runnable against one or more data sources to return the desired data result set. - View Dependent Claims (19)
-
-
20. A tangible medium having a computer readable program code embodied therein for generating one or more query language statements through an automated computer-implemented method comprising:
-
code for causing the processor to identify a functional element corresponding to a desired function for use in generating the one or more query language statements, wherein the functional element defines a default syntax pattern; code for causing the processor to identify an arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements, wherein the argument data set is mapped to positions within the default syntax pattern to generate the one or more query language statements; code for causing the processor to select a syntax pattern corresponding to the functional element; and
code for causing the processor to populate the selected syntax pattern with the identified argument data set to assemble at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set to be run against a data source to return the desired data set.
-
-
21. A method of generating a query language statement from computer code embodied on a computer readable media comprising the steps of:
-
defining a syntax pattern accessible to a system for generating a query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set; accessing the defined syntax pattern from the system to generate the query language statement;
wherein arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statementsand wherein the system does not need to be recompiled as a result of defining the syntax pattern. - View Dependent Claims (22)
-
-
23. A tangible medium having a computer readable program code embodied therein for generating one or more query language statements comprising:
-
code for causing the processor to identify a functional element corresponding to a desired function, wherein the functional element defines a default syntax pattern; code for causing the processor to identify an argument data set associated with parameters that specify information of a desired data set and the identified functional element, wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements; code for causing the processor to select a syntax pattern corresponding to the functional element;
code for identifying a functional element corresponding to the desired function and at least one syntax pattern, the functional element providing a basis for selecting the syntax pattern; andcode for causing the processor to populate the selected syntax pattern with the identified argument data set to assemble at/east one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set to be run against a data source to return the desired data set.
-
-
24. A tangible medium having a computer readable program code embodied therein for generating one or more query language statements comprising:
-
code for causing the processor to identify a functional element corresponding to a desired function, wherein the functional element defines a default syntax pattern; code for causing the processor to identify an argument data set associated with parameters that specify/information of a desired data set and the identified functional element wherein the arguments data are arranged in a vector associated with a functional component by parameter type and mapped to plurality of positions within the syntax pattern to generate the one or more query language statements; code for causing the processor to select a syntax pattern corresponding to the functional element;
code for identifying the argument data set associated with the desired data set; and
code for causing the processor to populate the selected syntax pattern with the identified argument data set to assemble at least one query language statement having a tree query structure generated based at least in part on the parameters that specify information of the desired data set to be run against a data source to return the desired data set.
-
Specification