Method and system for supporting XQuery trigger in XML-DBMS based on relational DBMS
First Claim
1. A method for supporting an XQuery trigger in XML-DBMS based on a relational DBMS, the method comprising:
- a first step of registering an XML schema, a relational DBMS schema, and a mapping rule of the XML schema and the relational DBMS schema through an XML database layer so as to store, manage and search XML data in the relational DBMS;
a second step of, in case where a user creates an XQuery trigger following a statement structure of XQuery being a standard of an XML query language, automatically creating an SQL trigger having the relational DBMS schema as a query target, using the mapping rule of the first step, from the XQuery trigger having the XML schema as a query target, and returning the XML result set so that the user can access the latest result set of the automatically executed XQuery trigger; and
a third step of, whenever the XML data is added, changed or deleted in the XML-DBMS layer, automatically changing the relational DBMS, and informing the user of the facts of the change of the XML database and the execution of the XQuery trigger so that the user can access the latest execution result of the XQuery trigger through the XML result set that is returned when the XQuery trigger is created in the second step, whereby a query is automatically executed depending on the change of the XML data, and its result is monitored.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for supporting an XQuery trigger in XML-DBMS based on relational DBMS is provided. In an Ubiquitous environment where XML data are incessantly generated by an enormous number of objects, so as to overcome inconvenience and its resultant reduction of performance in which a user should query after checking a change of XML-DBMS one by one, in XML-DBMS based on relational DBMS, the present invention supports an XQuery trigger technique based on SQL trigger automatically executing insert, update and delete statements, and a storage or external procedure related with the change of data when a change of data is generated at a specific table in a conventional relational DBMS.
-
Citations
13 Claims
-
1. A method for supporting an XQuery trigger in XML-DBMS based on a relational DBMS, the method comprising:
-
a first step of registering an XML schema, a relational DBMS schema, and a mapping rule of the XML schema and the relational DBMS schema through an XML database layer so as to store, manage and search XML data in the relational DBMS;
a second step of, in case where a user creates an XQuery trigger following a statement structure of XQuery being a standard of an XML query language, automatically creating an SQL trigger having the relational DBMS schema as a query target, using the mapping rule of the first step, from the XQuery trigger having the XML schema as a query target, and returning the XML result set so that the user can access the latest result set of the automatically executed XQuery trigger; and
a third step of, whenever the XML data is added, changed or deleted in the XML-DBMS layer, automatically changing the relational DBMS, and informing the user of the facts of the change of the XML database and the execution of the XQuery trigger so that the user can access the latest execution result of the XQuery trigger through the XML result set that is returned when the XQuery trigger is created in the second step, whereby a query is automatically executed depending on the change of the XML data, and its result is monitored. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for supporting an XQuery trigger in XML-DBMS based on a relational DBMS, the system comprising:
-
a metadata manager for processing and managing an XML schema, a relational DBMS schema, and a mapping rule of the XML schema and the relational DBMS schema;
an XML data processor for converting the XML data to be stored in the XML-DBMS into an INSERT statement of SQL, for statement analyzing and storing the XML data in the relational DBMS; and
an XQuery trigger processor for analyzing the XQuery trigger statement created by the user, creating a trigger table and a temporary table for SQL trigger, converting the XQuery trigger statement into a corresponding SQL trigger sentence and creating the SQL trigger in the relational DBMS, and providing an XML result set for the temporary table to the user. - View Dependent Claims (11, 12, 13)
-
Specification