For example, we show the elevator design
support system in Figure 9. Elevator design sheets
are sent from the sales design divisions to the order
design divisions. DRDL processors are used to
check whether the elevator design sheets satisfy the
document rules stipulated in the input conditions for
the design support systems. The distinct number of
XML elements for each design sheets is about 300,
and the total number of check rules is about 900.
DRDL is used effectively to describe table mapping
constraints depending on the number of floors and
lifts in the building. The DRDL framework
decreased 50 % of the time for creating Web-input
forms compared with an existing form builder.
5 RELATED WORKS
Various schema languages have been proposed in
order to describe document constraints stated in 2.1
without hard-coding (Murata et al., 2005). Famous
ones are Schematron (Jelliffe, 2004) and DSD
(Klarlund et al., 2002) as a pattern-based language.
DRDL is different form them in logic-based. DRDL
is expected easy to translate semantic constraint to
other languages by referring logic-based existing
formal specification works.
XSLT is a standard and popular language for
XML transformation. However its specification is
too huge to easily master, so there are some tools to
support XSLT generation (Tang et al., 2001). Table
mapping constraint description in DRDL is an
approach to specify the mapping pattern from XML
tree structure to table structure. In fact, DRDL has a
translation function from table mapping constraints
in DRDL to XSLT descriptions.
Recently, in the database community, declarative
and unifying approaches with document schema and
database query language have been proposed for data
integration and exchange. The BEA AquaLogic Data
Service Platform adopts data integration framework
based on XML Schema and XQuery to modelling and
accessing the variety of data source types such as
relational, Web service, function-based and file-based
(Reveliotis et al., 2006). In this paper, we discussed the
data integration and exchange from a document
processing and knowledge representation point of view.
6 CONCLUSIONS
We have proposed a minimum semantic constraint
description language DRDL which satisfies the XML
document-processing requirements of expressive
power, development efficiency and connectivity to
other functions needed in real application systems.
Interpretation of the DRDL formula realizes a
validation function for XML documents. Assignment
interpretation of DRDL formulae realize operations
on DOM trees, such as addition, deletion and value-
assignment like DOM-API, and also control
structures, such as the “if “ statement in imperative
languages and the “for-each” statement in XSLT.
Furthermore, DRDL provide table mapping constraint
for Web-input form generation.
Open issues are the following.
(1) Logic programming with terms as XML elements
We have treated the assignment interpretation in a way
analogous to popular imperative languages such as
Java or C for usability and performance. From the
theoretical point of view, however, it is important that a
determination procedure for the satisfiability of XCL
formulae should give a unification algorithm between
XCL formulae (Smoka, 1992). Replacing a term in Prolog
with an XCL formula allows us to obtain a new
constraint logic programming (Jaffar et al., 1994)(Mukai,
1991). This logic programming language is an
alternative XML transformation language to XSLT.
(2) Decision procedure for satisfiability of subsume
relation of XCL formulae.
(3) Comparison with other declarative XML constraint
description languages such as Xcerpt (Schaffert, 2004)
and Relational.OWL (Laborda et.al., 2005).
REFERENCES
Daum,B. 2003, Validation beyond XML Schema,
Modelling Business Objects with XML Schema,
Morgan Kaufmann Publishers, pp.323 -362.
Imamura, M. et al. 2000. Metadata representation for
Internet-based XML application from business to
government, in proc. of 7th International Conference on
Parallel and Distributed Systems Workshops, pp.387-392.
Imamura, M. et al. 2005. An XML Input Form Generation
Method Based on a Tree-table mapping Model,
Transactions of Information Processing Society of
Japan, Vol.46 No.12, pp3066-3077.
Jaffar,J. and Maher,M.J. 1994. Constraint Logic
Programming: A Survey, Journal of Logic
Programming 19, 20 pp.503-581.
Jelliffe, R., 2004. The Schematron, http://xml.ascc.net/
schematron/
Klarlund, N., Anders Møller,A., Schwartzbach ,M.I. 2002,
The DSD Schema Language, Automated Software
Engineering 9 3, 285-319
ICE-B 2007 - International Conference on e-Business
76