摘要 |
The invention provides a system and method for translating <SMALLCAPS>XPATH </SMALLCAPS>queries into <SMALLCAPS>SQL </SMALLCAPS>queries with a simple least fixpoint (<SMALLCAPS>LFP</SMALLCAPS>) operator, which is already supported by most commercial <SMALLCAPS>RDBMS</SMALLCAPS>. The method comprises the steps of (a) rewriting an input query into a regular query, which is capable of capturing both <SMALLCAPS>DTD </SMALLCAPS>recursion and <SMALLCAPS>XPATH </SMALLCAPS>queries in a uniform framework; and (b) translating the regular query to an <SMALLCAPS>SQL </SMALLCAPS>query with <SMALLCAPS>LFP</SMALLCAPS>. The invention further provides optimization techniques for reducing the use of the <SMALLCAPS>LFP </SMALLCAPS>operator. As a result, the invention is capable of answering a large class of <SMALLCAPS>XPATH </SMALLCAPS>queries by means of only low-end <SMALLCAPS>RDBMS </SMALLCAPS>features already available in most <SMALLCAPS>RDBMS. </SMALLCAPS>
|