4 CONCLUSION AND FUTURE
WORK
In this paper, we consider a document type that
includes requirements and where a user comprehends
these requirements as rules to be followed to achieve
a certain designation. As a result, we consider each
document a single compound rule that may be
assembled from many fragments. When such a docu-
ment (e.g. 3-Year BSc Geography) is evaluated in a
certain context (e.g. for a specific student) there will
be a value generated for it. For this type of document,
fragmented SQTs succinctly represent document
content, evaluation and query requirements; a simple
tree traversal is required to evaluate or display a doc-
ument.
Since some requirements may appear many times
in different documents, these documents can exhibit
a great deal of redundancy. We have introduced an
algorithm to fragment a collection of documents, and
described an efficient approach for document evalua-
tion where each fragment/VBSQT is evaluated just
once, but many results are made available (i.e. for a
set of students).
We have developed a prototype system that
assembles and displays requirements documents
from fragments and determines on request the gradu-
ation status for students on a) an individual basis or
b) a set-oriented approach for handling many stu-
dents at one time. The former is useful by an individ-
ual student to measure their own progress, and the
latter approach is useful in a university setting at say,
the end of term, when students should be graduating.
The prototype has been constructed using Java, a
SAX parser, and student history data stored in a
mySQL relational database. Requirements docu-
ments are stored as fragments (related via Xinclude)
that are independent XML documents. Various func-
tions such as Logical And, Logical Or, Minimum,
and Arithmetic Add required for the general synthe-
sized query tree have been implemented.
We are examining algorithms for document eval-
uation, query optimization, discovery of common
subtrees, and other processing models such as the
pipe and filter architecture (Albin 2003).
We are examining other situations to apply the
query tree approach. We have not used functions that
return data in XML format. Such functions can be
used to perform an include operation, in the same
way that we have used Xinclude. Also, if we allow
functions as found in (Abiteboul et al 2002, Abite-
boul et al 2003, Bonifati et al 2001) that invoke arbi-
trary Web Services returning XML then our model
allows, as a special case, Active XML documents.
We intend to examine other issues related to the
processing of these query-based documents includ-
ing concerns such as “Which major, given my cur-
rent status, permits me to graduate most quickly?” or
“What are the added requirements if I were to do a
double major in Geography and Physics, instead of a
single major in Geography”?
REFERENCES
Abiteboul, S., Benjelloun, O., Manolescu I., Milo, T.,
Weber, R., 2002, Active XML: peer-to-peer data and
web services integration (demo), in Proceedings of
VLDB.
Abiteboul, S., Bonifati, A., Cobena, G., Manolescu, I.,
Milo, T., 2003, Dynamic XML documents with distri-
bution and replication, in SIGMOD 2003, June 9-12,
2003, San Diego, CA, USA.
Albin, S. T., The art of software architecture: design meth-
ods and techniques, Wiley Publishing, 2003, 1
st
edi-
tion, ISBN 0471228869.
Bonifati, A., Ceri, S. and Paraboschi, S., 2001, Active rules
for XML: A new paradigm for E-services, in VLDB
Journal, 10, 39-47.
Business Rules Group, Defining business rules: What are
they really?, 3rd. edition, July 2000, http://www.busi-
nessrulesgroup.org.
McFadyen, R., Chen, Y., Chan, F-Y., 2005, XML-based
evaluation of synthesized queries, in 1st International
Conference on Web Information Systems and Technolo-
gies (WEBIST 2005), 24-31, Miami, USA.
Quint, V., Vatton, I., 2004, Techniques for authoring com-
plex XML documents, in ACM Symposium on Docu-
ment Engineering (DOCENG 2004), Milwaukee,
Wisconsin, USA.
Ross, R. G., 1997, The business rule book, Business Rule
Solutions, Houston, 2
nd
edition.
Salminen, A., Tompa, F. W., 2001, Requirements for XML
document database systems, in ACM Symposium on
Document Engineering (DOCENG 2001), Atlanta,
Georgia, USA.
XML.org, http://www.w3.org/TR/xinclude/, retrieved June
8, 2005
RULE-BASED QUERY TREE EVALUATION OVER FRAGMENTED XML DOCUMENTS
205