Patent Document ID: 7529733
Application ID: 10985431

Base Claim:
1. A computer implemented method for generating queries in a query language, the method comprising: a computer displaying a graphical user interface (GUI); receiving a user selection in the GUI selecting one of a plurality of functional units of the query language displayed in the GUI, the plurality of functional units being statements and comprising an if-then-else statement, a for statement, and a return statement; displaying in the GUI a plurality of resources relating to the selected functional unit, the plurality of resources displayed being limited to those that are valid for use with the selected functional unit, the plurality of resources comprising one or more schemas or documents to query, one or more nodes of each schema or document, one or more functions, and one or more related functional units, the one or more related functional units comprising one or more of a variable, an expression, a comment, an if-then-else statement, a for statement, and a return statement; receiving a user selection of at least one of the displayed resources; displaying in the QUI a predefined grid set corresponding to and valid for use with the selected functional unit, the grid set being also based on at least one of the selected resources, the grid set comprising one or more fields, each field in the grid set representing a portion of the functional unit and requiring information to be inputted to enable the functional unit to operate in the query, the grid set corresponding to the selected functional unit being different from a grid set corresponding to another of the plurality of functional units; receiving a user input in the QUI for each field in the grid set, the user input for each field in the grid set inputting at least one of the plurality of resources into the field as an argument for the field; generating a query in the query language based on the selected functional unit, the grid set corresponding to the selected functional unit, and the user input for each field in the grid set, wherein the query, and a semantics and a syntax of the query, are determined and generated automatically without requiring the user to input the semantics, the syntax, or text characters; and displaying the generated query, wherein the query language is XQUERY, and wherein the one or more schemas or documents are XML schemas or documents, the one or more functions are XML functions, and the functional units are XML functional units, and wherein the QUI includes a window displaying the set of resources, the set of resources including a hierarchical set of resources and oaths inside a data tree which includes the hierarchical set of resources, the hierarchical set of resources being limited to those that are valid for use with the selected functional unit, wherein user input can select one or more resources from the hierarchical set of resources.

---

Claim 6:
6. The method of claim 1 , wherein responsive to a related functional unit that is one of the plurality of functional units of the query language and being inputted as an argument for at least one field in the grid set corresponding to the selected functional unit, generation of the query is further based on the related functional unit, a grid set corresponding to the related functional unit, and a user input for each field in the grid set corresponding to the related functional unit.