Techniques of rewriting descendant and wildcard XPath using combination of SQL OR, UNION ALL, and XMLConcat() construct
First Claim
1. A method for processing queries, the method comprising the computer-implemented steps of:
- generating a first representation of a certain query, wherein the certain query includes a certain operator to be performed based on an XML Path Language (XPath) expression, wherein the XPath expression indicates a plurality of location paths into which the XPath expression can be expanded; and
rewriting the first representation into a second representation that corresponds to an equivalent query of the certain query, wherein rewriting the first representation comprises;
expanding the XPath expression into the plurality of location paths; and
based on the certain operator, including a plurality of operators in the second representation, wherein the plurality of operators include;
a first set of operators to be performed based on each of the plurality of location paths, anda second set of operators to be performed based on data to be returned from at least one operator included in the first set of operators.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for processing queries is provided. A first representation of a query is generated, where the query includes a certain operator that is to be performed based on an XPath expression that is expandable into multiple location paths. The first representation of the query is rewritten into a second representation that corresponds to an equivalent query, where rewriting the first representation includes expanding the XPath expression into the plurality of location paths and, based on the certain operator, including a plurality of operators in the second representation, where the plurality of operators include: a first set of operators that is to be performed based on each of the plurality of location paths, and a second set of operators that is to be performed based on data returned from at least one operator included in the first set of operators. The query may thereafter be executed based on the second representation. The second representation may be further rewritten to third representation depending on the physical storage of XML.
67 Citations
38 Claims
-
1. A method for processing queries, the method comprising the computer-implemented steps of:
-
generating a first representation of a certain query, wherein the certain query includes a certain operator to be performed based on an XML Path Language (XPath) expression, wherein the XPath expression indicates a plurality of location paths into which the XPath expression can be expanded; and rewriting the first representation into a second representation that corresponds to an equivalent query of the certain query, wherein rewriting the first representation comprises; expanding the XPath expression into the plurality of location paths; and based on the certain operator, including a plurality of operators in the second representation, wherein the plurality of operators include; a first set of operators to be performed based on each of the plurality of location paths, and a second set of operators to be performed based on data to be returned from at least one operator included in the first set of operators. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38)
-
Specification