Compositional query comprehensions
First Claim
1. A computer-implemented system that facilitates query comprehensions, comprising:
- a processor; and
a memory communicatively coupled to the processor, the memory having stored therein computer-executable instructions configured to implement the query comprehension system including;
a comprehension component that manages a scope of a control variable; and
a transformation component that receives from a user a query that includes initialization data and a set of query clauses in a sequence characterized by a query expression, wherein the user can perform at least the following;
input new control variables into the received user-inputted query, the control variables comprising unique local variables that are configured to represent a property or column of an individual data row in a collection as the user-inputted query evaluates, hide existing control variables in the user-inputted query that are determined to be out of scope when the hidden variables are no longer part of the user-inputted query, reveal hidden variables that are determined to be in scope when the previously hidden variables are now part of the user-inputted query and implement the existing control variables in a different syntactical order than that in which the new control variables were inputted in the user-inputted query, wherein the control variable of the user inputted query have no syntactical order restriction, and wherein;
the initialization data includes a control variable and at least one of a collection or an expression;
the transformation component resolves values of the control variable in scope for each query clause, and based upon a type of each query clause, respectively;
the transformation component operates on each query clause in a manner that is independent of an ordering of the sequence; and
the transformation component outputs the results of the transformation performed on the collection or expression based upon the query expression and based on the number of control variables in scope, wherein the format in which the results are output is variable depending on the number of control variables in scope.
2 Assignments
0 Petitions
Accused Products
Abstract
The claimed subject matter relates to an architecture that can facilitate query comprehension that are constructed in a compositional manner. In accordance therewith, the query comprehensions can be assembled together in virtually in order without common requirements that force query operators of a query expression to follow ordering/syntactic rules. In addition, the architecture can provide for query expressions that arbitrarily composable and which can be terminated at any point. If the query expression terminates without a Select or Return clause at the end, the architecture can facilitate generation of an implicit Select or Return, and output results.
39 Citations
18 Claims
-
1. A computer-implemented system that facilitates query comprehensions, comprising:
-
a processor; and
a memory communicatively coupled to the processor, the memory having stored therein computer-executable instructions configured to implement the query comprehension system including;a comprehension component that manages a scope of a control variable; and a transformation component that receives from a user a query that includes initialization data and a set of query clauses in a sequence characterized by a query expression, wherein the user can perform at least the following; input new control variables into the received user-inputted query, the control variables comprising unique local variables that are configured to represent a property or column of an individual data row in a collection as the user-inputted query evaluates, hide existing control variables in the user-inputted query that are determined to be out of scope when the hidden variables are no longer part of the user-inputted query, reveal hidden variables that are determined to be in scope when the previously hidden variables are now part of the user-inputted query and implement the existing control variables in a different syntactical order than that in which the new control variables were inputted in the user-inputted query, wherein the control variable of the user inputted query have no syntactical order restriction, and wherein; the initialization data includes a control variable and at least one of a collection or an expression; the transformation component resolves values of the control variable in scope for each query clause, and based upon a type of each query clause, respectively; the transformation component operates on each query clause in a manner that is independent of an ordering of the sequence; and the transformation component outputs the results of the transformation performed on the collection or expression based upon the query expression and based on the number of control variables in scope, wherein the format in which the results are output is variable depending on the number of control variables in scope. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-implemented method for facilitating construction of query comprehensions in a compositional manner, comprising:
-
employing a processor executing computer executable instructions stored on a computer readable storage medium to implement the following acts; obtaining a collection and a control variable associated with the collection; receiving from a user in succession a query that includes a current query clause from a set of query clauses included in a query expression without placing syntactical ordering restrictions on the query expression, wherein the user can perform at least the following; input new control variables into the received user-inputted query, the control variables comprising unique local variables that are configured to represent a property or column of an individual data row in a collection as the user-inputted query evaluates, hide existing control variables in the user-inputted query that are determined to be out of scope when the hidden variables are no longer part of the user-inputted query, reveal hidden variables that are determined to be in scope when the previously hidden variables are now part of the user-inputted query and implement the existing control variables in a different syntactical order than that in which the new control variables were inputted in the user- inputted query, wherein the control variable of the user inputted query have no syntactical order restriction; modifying the collection based upon the current query clause; and providing access to control variables that are in scope for the current query clause, the access is provided to a next query clause; outputting the results of the transformation based upon the query expression and based on the number of control variables in scope, wherein the format in which the results are output is variable depending on the number of control variables in scope.
-
-
18. A computer-implemented system for facilitating compositional query comprehensions, comprising:
-
a processor; a memory communicatively coupled to the processor; the memory having stored therein computer-executable instructions configure to implement the query comprehension system including; computer-implemented means for acquiring a collection or an expression, and a control variable associated with the collection or the expression;
computer-implemented means for receiving from a user a query that includes a present query clause from a sequence of query clauses, the sequence is not required to conform to a predefined order, wherein the user can input new control variables into the received user-inputted query, the control variables comprising unique local variables that are configured to represent a property or column of an individual data row in a collection as the user-inputted query evaluates, hide existing control variables in the user-inputted query that are determined to be out of scope when the hidden variables are no longer part of the user-inputted query, reveal hidden variables that are determined to be in scope when the previously hidden variables are now part of the user-inputted query and implement the existing control variables in a different syntactical order than that in which the new control variables were inputted in the user-inputted query, wherein the control variable of the user inputted query have no syntactical order restriction;computer-implemented means for transforming the collection based upon the present query clause, wherein the results of the transformation are outputted based on the expression and based on the number of control variables in scope, wherein the format in which the results are output is variable depending on the number of control variables in scope; and computer-implemented means for granting a next query clause access to control variables in scope for the present query clause.
-
Specification