Abstract
Data description for XML usually comes in the form of a type specification (e.g., a DTD) together with integrity constraints. XML Schema allows one to mix DTD features with semantic information, such as keys and foreign keys. It was shown recently [[2],[7]] that the interaction of DTDs with constraints may be rather nontrivial. In particular, testing if a general specification is consistent is undecidable, but for the most common case of single-attribute constraints it is NP-complete, and linear time if no foreign keys are present.
However, XML Schema design did not adopt the form of constraints prevalent in the database literature, and slightly changed the semantics of keys, foreign keys, and unique constraints. In this paper we demonstrate the very costly effect of this slight change on the feasibility of consistency checking. In particular, all the known hardness results extend to the XML Schema case, but tractability results do not. We show that even without foreign keys, and with very simple DTD features, checking consistency of XML-Schema specifications is intractable.
Throughout the paper, by a DTD we mean its type specification; we ignore its ID/IDREF constraints since their limitations have been well recognized [3].
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
S. Abiteboul, P. Buneman and D. Suciu Data on the Web: From Relations to Semistructured Data and XML. Morgan Kaufman, 2000.
M. Arenas, W. Fan and L. Libkin. On verifying consistency of XML specifications. In PODS’02, pages 259–270.
P. Buneman, S. Davidson, W. Fan, C. Hara and W. Tan. Keys for XML. In WWW’10, 2001, pages 201–210.
P. Buneman, S. Davidson, W. Fan, C. Hara and W. Tan. Reasoning about Keys for XML. In DBPL, 2001.
D. Calvanese, G. De Giacomo, and M. Lenzerini. Representing and reasoning on XML documents: A description logic approach. J. Logic and Computation 9(3):295–318, 1999.
S. Ceri, P. Fraternali, S. Paraboschi. XML: Current developments and future challenges for the database community. In EDBT 2000, pages 3–17.
W. Fan and L. Libkin. On XML integrity constraints in the presence of DTDs. In PODS’01, pages 114–125.
M. Garey and D. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman and Company, 1979.
D. Lee and W. W. Chu. Constraints-preserving transformation from XML document type definition to relational schema. In ER’2000, pages 323–338.
V. Vianu. A Web odyssey: From Codd to XML. In PODS’01, pages 1–15.
W3C. Extensible Markup Language (XML) 1.0. W3C Recommendation, Feb. 1998.
W3C. XML-Data, W3C Working Draft, Jan. 1998.
W3C. XML Path Language (XPath). W3C Working Draft, Nov. 1999.
W3C. XML Schema. W3C Recommendation, May 2001.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Arenas, M., Fan, W., Libkin, L. (2002). What’s Hard about XML Schema Constraints?. In: Hameurlain, A., Cicchetti, R., Traunmüller, R. (eds) Database and Expert Systems Applications. DEXA 2002. Lecture Notes in Computer Science, vol 2453. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46146-9_27
Download citation
DOI: https://doi.org/10.1007/3-540-46146-9_27
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-44126-7
Online ISBN: 978-3-540-46146-3
eBook Packages: Springer Book Archive