System and method of translating a relational database into an XML document and vice versa
First Claim
1. A method of translating a relational database into an XML document comprising the steps of:
- generating, using a computer, an Extended Entity Relationship (EER) model from a relational schema associated with said relational database;
applying, using the computer, a schema translation process to the Extended Entity Relationship model to map the relational schema into a Document Type Definition (DTD) of an XML schema;
generating, using the computer, a XML Tree Model from said Document Type Definition representative of one or more data semantics of the relational schema which are preserved as one or more data semantics in said XML document; and
converting, using the computer, relational data from said relational database into said XML document by;
using said relational schema and said XML schema from one selected from a group consisting of;
said Document Type Definition, said XML Tree Model and a combination thereof, wherein structural constraints of any relationships from said relational database are preserved using identifiers (ID), identifier reference (IDREF) and instance occurrence indicators;
converting, using the computer, one or more relations associated with relational data in said relational database into a Java Document Object Model (DOM); and
manipulating, using the computer, said XML document using said Java Document Object Model.
0 Assignments
0 Petitions
Accused Products
Abstract
A method of translating a relational database into an XML document comprises generating an Extended Entity Relationship model from relational schema associated with the relational database and applying a schema translation process to the Extended Entity Relationship model to map the relational schema into a Document Type Definition (DTD) of an XML schema. An XML Tree Model is then generated from the Document Type Definition, the XML Tree Model being representative of one or more data semantics of the relational schema which are preserved as one or more data semantics in the XML document. Relational data from the relational database is then converted into the XML document using the relational schema and the XML schema from the Document Type Definition and/or the XML Tree Model. There is also described a method of translating an XML database into a relational database which comprises the reversal of the steps of the disclosed method, and a system for implementing both methods.
53 Citations
19 Claims
-
1. A method of translating a relational database into an XML document comprising the steps of:
-
generating, using a computer, an Extended Entity Relationship (EER) model from a relational schema associated with said relational database; applying, using the computer, a schema translation process to the Extended Entity Relationship model to map the relational schema into a Document Type Definition (DTD) of an XML schema; generating, using the computer, a XML Tree Model from said Document Type Definition representative of one or more data semantics of the relational schema which are preserved as one or more data semantics in said XML document; and converting, using the computer, relational data from said relational database into said XML document by; using said relational schema and said XML schema from one selected from a group consisting of;
said Document Type Definition, said XML Tree Model and a combination thereof, wherein structural constraints of any relationships from said relational database are preserved using identifiers (ID), identifier reference (IDREF) and instance occurrence indicators;converting, using the computer, one or more relations associated with relational data in said relational database into a Java Document Object Model (DOM); and manipulating, using the computer, said XML document using said Java Document Object Model. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method of data transmission of relational data through an XML document between a sender and a receiver over a network comprising:
-
translating, using a computer, a relational database into an XML document, wherein the translating comprises; generating, using the computer, an Extended Entity Relationship (EER) model from a relational schema associated with said relational database; applying, using the computer, a schema translation process to the Extended Entity Relationship model to map the relational schema into a Document Type Definition (DTD) of an XML schema; generating, using the computer, a XML Tree Model from said Document Type Definition representative of one or more data semantics of the relational schema which are preserved as one or more data semantics in said XML document; and converting, using the computer, relational data from said relational database into said XML document by; using said relational schema and said XML schema from one selected from a group consisting of said Document Type Definition, said XML Tree Model and a combination thereof, wherein structural constraints of any relationships from said relational database are preserved using identifiers (ID), identifier reference (IDREF) and instance occurrence indicators; converting, using the computer, one or more relations associated with relational data in said relational database into a Java Document Object Model (DOM); manipulating, using the computer, said XML document using said Java Document Object Model; transmitting, using the computer, from said sender said XML document over said network; receiving at said receiver said XML document; and converting said XML document into a local relational schema language used in said receiver. - View Dependent Claims (17, 18)
-
-
19. A computer program product, stored on a non-transitory computer readable medium, for translating a relational database into an XML document during execution by a computer, the program product comprising
program code for generating an Extended Entity Relationship (EER) model from a relational schema associated with said relational database; -
program code for applying a schema translation process to the Extended Entity Relationship model to map the relational schema into a Document Type Definition (DTD) of an XML schema; program code for generating a XML Tree Model from said Document Type Definition representative of one or more data semantics of the relational schema which are preserved as one or more data semantics in said XML document; program code for converting relational data from said relational database into said XML document by; using said relational schema and said XML schema from one selected from a group consisting of;
said Document Type Definition, said XML Tree Model and a combination thereof, wherein structural constraints of any relationships from said relational database are preserved using identifiers (ID), identifier reference (IDREF) and instance occurrence indicators;converting one or more relations associated with relational data in said relational database into a Java Document Object Model (DOM); and manipulating said XML document using said Java Document Object Model.
-
Specification