×

Compositional query comprehensions

  • US 7,865,533 B2
  • Filed: 02/05/2007
  • Issued: 01/04/2011
  • Est. Priority Date: 02/05/2007
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×