摘要 |
This invention relates to query management. A query management method includes receiving a database query, generating an abstract syntax tree representation of the database path query into a set of java objects, and processing the abstract syntax tree representation of the database path query. The method further includes determining a selector upon processing the abstract syntax tree representation of the database path query and deriving a SELECT clause from the selector clause, where the SELECT clause indicates a portion of an expression from an XMeta Query Language (XMQL) query. The method yet further includes appending a FROM clause to the expression for the XMQL query, appending a WHERE clause to the expression for the XMQL query, and executing the expression for the XMQL query including the appended FROM clause and also the appended WHERE clause to access objects in an object repository. |
主权项 |
1. A method comprising:
receiving an input Xpath query; generating, by a software component written in a general-purpose, concurrent, class-based, object-oriented computer programming language, an abstract syntax tree (AST) object representation of the input XPath query; building, using a class defined in the general-purpose, concurrent, class-based, object-oriented computer programming language, an output XMQL (extensible markup query language) query, with the building including: interpreting, by the class, a plurality of objects included in the AST object representation, and performing syntax validation and translation using a mapping object; and performing validation of the input Xpath query including using the class as a mapping layer. |