Storing XML documents efficiently in an RDBMS
First Claim
1. A method for accessing data in an information hierarchy, comprising the steps of:
- receiving a query that requests a set of nodes in said information hierarchy, said query including first data that identifies the set of nodes based on a location within the information hierarchy;
wherein data for nodes of said information hierarchy are stored in a plurality of rows of a table;
wherein a plurality of path signatures are stored in association with said plurality of rows, each row being associated with a path signature of said plurality of path signatures;
wherein each path signature of said plurality of path signatures indicates, within the information hierarchy, the location of the node whose data is stored in the row associated with the path signature;
generating, based on said first data, data representing a string pattern; and
retrieving data from the rows that are associated with path signatures that match said string pattern.
1 Assignment
0 Petitions
Accused Products
Abstract
Information hierarchies are efficiently stored and accessed in a relational or object-relational database system. A path signature, similar to a pathname, is stored in a database system in association with data for the node identified by the pathname. For example, a path signature identifying an element is stored in a row that holds data for the element. To retrieve data for a hierarchical query that identifies the data requested using, for example, an XPATH string, a string pattern is generated that is matched by path signatures identified by the XPATH string. Pattern matching is then used to select rows associated with matching path signatures, and data from the selected rows is used to compute the XPATH query. Furthermore, hash values representing path signatures are generated in a way that preserves the ordering of data in an information hierarchy. The hash values can be indexed to provide quick access.
136 Citations
16 Claims
-
1. A method for accessing data in an information hierarchy, comprising the steps of:
-
receiving a query that requests a set of nodes in said information hierarchy, said query including first data that identifies the set of nodes based on a location within the information hierarchy;
wherein data for nodes of said information hierarchy are stored in a plurality of rows of a table;
wherein a plurality of path signatures are stored in association with said plurality of rows, each row being associated with a path signature of said plurality of path signatures;
wherein each path signature of said plurality of path signatures indicates, within the information hierarchy, the location of the node whose data is stored in the row associated with the path signature;
generating, based on said first data, data representing a string pattern; and
retrieving data from the rows that are associated with path signatures that match said string pattern. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
Specification