Method, computer program product, and system converting relational data into hierarchical data structure based upon tagging trees
First Claim
1. A method for defining data transfer from a database into a hierarchical structure, the method comprising:
- generating a tagging tree that corresponds to a mapping between a relational database and a hierarchical data structure, the tagging tree comprising a plurality of nodes, at least one of the nodes having a node type, selected from the group of node types consisting of execution node, data node, binding node, attribute node, and element node;
traversing at least one node of the tagging tree;
retrieving, in response to traversing an execution node, a data object from the at least one relational database as specified in the execution node; and
inserting, in response to a data node and based upon the mapping, the data object into an output conforming to the hierarchical structure.
1 Assignment
0 Petitions
Accused Products
Abstract
Tagging trees are generated and used to facilitate transforming data from relational databases into hierarchical formats, such as in XML documents. Tagging trees contain both XML hierarchical structure information as well a query information that is needed to access different data sources, e.g., databases, to retrieve the information to be placed in the hierarchical structure. A designer optionally creates a mapping script that specifies the transformation from relational databases to the hierarchical format. A tagging tree is created by either parsing that mapping script or by other means. A runtime environment then processes the tagging tree by a depth first traversal. The runtime environment is able to be configured to output a hierarchical data object, such as an XML document, or pipelined to control, for example, SAX processing.
45 Citations
18 Claims
-
1. A method for defining data transfer from a database into a hierarchical structure, the method comprising:
-
generating a tagging tree that corresponds to a mapping between a relational database and a hierarchical data structure, the tagging tree comprising a plurality of nodes, at least one of the nodes having a node type, selected from the group of node types consisting of execution node, data node, binding node, attribute node, and element node;
traversing at least one node of the tagging tree;
retrieving, in response to traversing an execution node, a data object from the at least one relational database as specified in the execution node; and
inserting, in response to a data node and based upon the mapping, the data object into an output conforming to the hierarchical structure. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A data transformation processor comprising:
-
a tagging tree generator that generates a tagging tree that corresponds to a mapping between a relational database and a hierarchical data structure, the tagging tree comprising a plurality of nodes, at least one of the nodes having a node type, selected from the groups of node types consisting of execution node, data node, binding node, attribute node, and element node; and
a runtime environment that;
traverses at least one node of the tagging tree;
retrieves, in response to traversing an execution node, a data object from the at least one relational database as specified in the execution node; and
inserts, in response to a data node and based upon the mapping, the data object into an output conforming to the hierarchical structure. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product for defining data transfer from a database into a hierarchical structure, the computer program product comprising:
-
a storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising;
generating a tagging tree that corresponds to a mapping between a relational database and a hierarchical data structure, the tagging tree comprising a plurality of nodes, at least one of the nodes having a node type, selected from the group of node types consisting of execution node, data node, binding node, attribute node, and element node;
traversing at least one node of the tagging tree;
retrieving, in response to traversing an execution node, a data object from the at least one relational database as specified in the execution node; and
inserting, in response to a data node and based upon the mapping, the data object into an output conforming to the hierarchical structure. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification