request, these attributes must be added in the
return
clauses of the two sub-requests by tagging them in
order to be able to identify them. In the same way if
after the decomposition, each one of DDB_R and/or
RDB_R has at least one nested sub-request with a
joint condition between one of its attributes and one
of the enclosing request and if this attribute does not
appear in the
return clause then we must to add it in
the
return clauses of the request and the sub-request.
The results of the two DDB_R and RDB_R sub-
requests will be stored respectively in the two XML
documents: res1.xml and res2.xml which has
respectively as compound global element:
DDB_global_result and RDB_global_result. The
synthesis joints will be treated after obtaining the
results of the two DDB_R and RDB_R sub-requests
by using the SYN_R synthesis sub-request which is
generated automatically.
The SYN_R synthesis sub-request will be
constituted by two
for clauses with two variables $r
1
and $r
2
in order to query respectively the two result
XML documents res1.xml and res2.xml. These two
variables $r
1
and $r
2
specify the XML element
corresponding respectively to the first tags of the
return clauses of the DDB_R and RDB_R sub-
request. The
where part of SYN_R sub-request will
contain the synthesis joint expressions SYN_JFs. The
return parts the XQuery sub-requests SYN_R will be
constituted by the XML_doc tagging function of Rt
applied, for each Results Xpath expression of the Rt
XQuery request
return clause, to the equivalent
Xpath expression in the DDB_R or RDB_R sub-
request. The building of SYN_R will continue
recursively in the same way on the SRs sub-requests.
The XML schema describing the structure of the
XML document result of the SYN_R synthesis sub-
request will be built from the XML schema
describing the XML view on the relational database,
the XML schema of the documentary database and
the
return clause of the XQuery request R. The types
of the simple elements making up the XML
document result are deduced from the original
schema. In the case of a simple element coming from
the XML view of the relational database, the type of
this element is deduced form the XML schema
describing this view. If this element is coming from
an XML document of the documentary database, the
type of this element depends on the existence of the
document XML schema. If the document does not
possess an XML schema, the type of the simple
element will be anyType. The building of the XML
schema of the synthesis sub-request SYN_R result
will be done according to a similar method than that
used for the building of the XML schema of the
document created from the tuples returned by the
relational engine thanks to the XML_Schema function
described in the third section.
6 CONCLUSION
Our system takes advantage of relational systems
which are powerful for the management of structured
data and it takes advantage of XML systems for the
management of non-structured or semi-structured
data. It is in this meaning where our work is different
from the systems which store XML documents in the
shape of tables. In these systems, it is often non-
optimal to reconstitute the document. Our system
enables us to build results made up of non-structured
data, coming from documentary database, and
structured data, coming from relational database, in
the shape of an XML document. These results could
then be consulted as persistent documents thanks to
an Xquery request.
This work is intended to be extended to a
distributed system where relational and documentary
data could be on geographically distributed sites. In
this distributed system, the XML schema will be the
pivot schema and the Xquery language will be the
pivot language.
REFERENCES
Fan, C., Funderburk, J., Lam, H.I., Kiernan, J., Shekita, E.,
Shanmugasundaram J., 2002. XTABLES : Bridging
Relational Technology and XML. IBM Corporation.
Fernandez, M., Kadiyska, Y., Morishima, A., Suciu, D.,
Tan W.C., 2002. SilkRoute : a framework for
publishing relational data in XML. ACM Transactions
on Database Technology.
Fernandez, M., Tan, W.C., Suciu D., 2000. SilkRoute :
Trading between relations and XML. International
Conference WWW'00.
Hernandez, M., Miller, R. J., Haas L. M., 2001.
Clio: A
Semi-Automatic Tool For Schema Mapping.
International conference SIGMOD'01. ACM Press.
INRIA., 1998. LeSelect (CARAVEL project).
http://www-caravel.inria.fr/~leselect/
Kenab, M., Ould Braham, T., Bazex P., 2004. Evaluation
of a document database description by different XML
schemas. International conference IASTED: DBA'04.
Acta Press.
Kenab, M., Ould Braham, T., Bazex P., 2004.
Parameterized Formatting of an XML document by
XSL rules. International conference ADVIS'04.
Springer-Verlag.
Manolescu, I., Florescu, D., Kossmann, D., Olteanu, D.,
Xhumari F., 2000. Agora: Living with XML and
relational.
International conference VLDB. Morgan-
Kaufmann.
ICEIS 2005 - DATABASES AND INFORMATION SYSTEMS INTEGRATION
358