Skip to main content

Consistency of XML Specifications

  • Chapter
Inconsistency Tolerance

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3300))

Abstract

Specifications of XML documents typically consist of typing information (for example, a DTD), and integrity constraints (for example, keys and foreign keys). We show that combining the two may lead to seemingly reasonable specifications that are nevertheless inconsistent: there is no XML document that both conforms to the DTD and satisfies the constraints. We then survey results on the complexity of consistency checking, and show that, depending on the classes of DTDs and constraints involved, it ranges from linear time to undecidable. Furthermore, we show that for some of the most common classes of specifications checking consistency is intractable.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Reading (1995)

    MATH  Google Scholar 

  2. Abiteboul, S., Vianu, V.: Regular path queries with constraints. J. Computer and System Sciences (JCSS) 58(4), 428–452 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  3. Apparao, V., Byrne, S., Champion, M., Isaacs, S., Jacobs, I., Le Hors, A., Nicol, G., Robie, J., Sutor, R., Wilson, C., Wood, L.: Document Object Model (DOM) Level 1 Specification. W3C Recommendation (October 1998), http://www.w3.org/TR/REC-DOM-Level-1/

  4. Arenas, M., Fan, W., Libkin, L.: On verifying consistency of XML specifications. In: Proc. ACM Symp. on Principles of Database Systems (PODS), pp. 259–270 (2002)

    Google Scholar 

  5. Arenas, M., Fan, W., Libkin, L.: What’s Hard about XML Schema Constraints? In: Hameurlain, A., Cicchetti, R., Traunmüller, R. (eds.) DEXA 2002. LNCS, vol. 2453, pp. 269–278. Springer, Heidelberg (2002)

    Chapter  Google Scholar 

  6. Arenas, M., Libkin, L.: A Normal Form for XML Documents. In: Proc. ACM Symp. on Principles of Database Systems (PODS), pp. 85–96 (2002)

    Google Scholar 

  7. Baru, C., Gupta, A., Ludäscher, B., Marciano, R., Papakonstantinou, Y., Velikhov, P., Chu, V.: XML-based information mediation with MIX. In: Proc. of ACM SIGMOD Conf. on Management of Data (SIGMOD), pp. 597–599 (1999)

    Google Scholar 

  8. Beeri, C., Milo, T.: Schemas for integration and translation of structured and semi-structured data. In: Beeri, C., Bruneman, P. (eds.) ICDT 1999. LNCS, vol. 1540, pp. 296–313. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  9. Benedikt, M., Chan, C., Fan, W., Freire, J., Rastogi, R.: Capturing both Types and Constraints in Data Integration. In: Proc. of ACM SIGMOD Conf. on Management of Data (SIGMOD), pp. 277–288 (2003)

    Google Scholar 

  10. Boag, S., Chamberlin, D., Fernández, M., Florescu, D., Robie, J., Siméon, J.: XQuery 1.0: An XML Query Language. W3C Working Draft (November 2003), http://www.w3.org/TR/xquery

  11. Bray, T., Paoli, J., Sperberg-McQueen, C.M.: Extensible Markup Language (XML) 1.0. W3C Recommendation (February 1998), http://www.w3.org/TR/REC-xml/

  12. Buneman, P., Davidson, S., Fan, W., Hara, C., Tan, W.: Keys for XML. Computer Networks 39(5), 473–487 (2002)

    Article  MATH  Google Scholar 

  13. Buneman, P., Davidson, S., Fan, W., Hara, C., Tan, W.: Reasoning about keys for XML. Information Systems 28(8), 1037–1063 (2003)

    Article  MATH  Google Scholar 

  14. Buneman, P., Fan, W., Weinstein, S.: Interaction between path and type constraints. ACM Trans. on Computational Logic (TOCL) 4(4), 530–577 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  15. Calvanese, D., De Giacomo, G., Lenzerini, M.: Representing and reasoning on XML documents: A description logic approach. J. Logic and Computation 9(3), 295–318 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  16. Calvanese, D., Lenzerini, M.: Making object-oriented schemas more expressive. In: Proc. ACM Symp. on Principles of Database Systems (PODS), pp. 243–254 (1994)

    Google Scholar 

  17. Calvanese, D., Lenzerini, M.: On the interaction between ISA and cardinality constraints. In: Proc. IEEE Int’l. Conf. on Data Engineering (ICDE), pp. 204–213 (1994)

    Google Scholar 

  18. Carey, M., Florescu, D., Ives, Z., Lu, Y., Shanmugasundaram, J., Shekita, E., Subramanian, S.: XPERANTO: Publishing object-relational data as XML. In: Suciu, D., Vossen, G. (eds.) WebDB 2000. LNCS, vol. 1997. Springer, Heidelberg (2001)

    Google Scholar 

  19. Clark, J.: XSL Transformations (XSLT). W3C Recommendation (November 1999), http://www.w3.org/TR/xslt

  20. Clark, J., DeRose, S.: XML Path Language (XPath). W3C Recommendation (November 1999), http://www.w3.org/TR/xpath

  21. Cosmadakis, S.S., Kanellakis, P.C., Vardi, M.Y.: Polynomial-time implication problems for unary inclusion dependencies. J. ACM 37(1), 15–46 (1990)

    Article  MathSciNet  MATH  Google Scholar 

  22. Eyal, A., Milo, T.: Integrating and customizing heterogeneous e-commerce applications. VLDB Journal 10(1), 16–38 (2001)

    MATH  Google Scholar 

  23. Fan, W., Libkin, L.: On XML integrity constraints in the presence of DTDs. J. ACM 49(3), 368–406 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  24. Fan, W., Siméon, J.: Integrity constraints for XML. In: PODS 2000, pp. 23–34 (2000)

    Google Scholar 

  25. Fernandez, M., Morishima, A., Suciu, D., Tan, W.: Publishing relational data in XML: the SilkRoute approach. IEEE Data Eng. Bull. 24(2), 12–19 (2001)

    Google Scholar 

  26. Florescu, D., Kossmann, D.: Storing and querying XML data using an RDMBS. IEEE Data Eng. Bull. 22(3), 27–34 (1999)

    Google Scholar 

  27. Florescu, D., Raschid, L., Valduriez, P.: A methodology for query reformulation in CIS using semantic knowledge. Int’l. J. Cooperative Information Systems (IJCIS) 5(4), 431–468 (1996)

    Article  Google Scholar 

  28. Kanellakis, P.C.: On the computational complexity of cardinality constraints in relational databases. Information Processing Letters 11(2), 98–101 (1980)

    Article  MathSciNet  MATH  Google Scholar 

  29. Matiyasevich, Y.: Hilbert’s 10th Problem. MIT Press, Cambridge (1993)

    MATH  Google Scholar 

  30. Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages and Computation, 2nd edn. Addison Wesley, Reading (2000)

    MATH  Google Scholar 

  31. Layman, A., Jung, E., Maler, E., Thompson, H., Paoli, J., Tigue, J., Mikula, N., De Rose, S.: XML-Data. W3C Note (January 1998), http://www.w3.org/TR/1998/NOTE-XML-data

  32. Lee, D., Chu, W.W.: Constraint-preserving transformation from XML document type to relational schema. In: Laender, A.H.F., Liddle, S.W., Storey, V.C. (eds.) ER 2000. LNCS, vol. 1920, pp. 323–338. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  33. McAllester, D., Givan, R., Witty, C., Kozen, D.: Tarskian set constraints. In: IEEE Symp. on Logic in Computer Science (LICS), pp. 138–147 (1996)

    Google Scholar 

  34. Melton, J., Simon, A.: Understanding the New SQL: A Complete Guide. Morgan Kaufmann, San Francisco (1993)

    Google Scholar 

  35. Neven, F.: Extensions of attribute grammars for structured document queries. In: Connor, R.C.H., Mendelzon, A.O. (eds.) DBPL 1999. LNCS, vol. 1949, pp. 99–116. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  36. Papadimitriou, C.H., Steiglitz, K.: Combinatorial Optimization: Algorithms and Complexity. Prentice Hall, Englewood Cliffs (1982)

    MATH  Google Scholar 

  37. Popa, L.: Object/Relational Query Optimization with Chase and Backchase. PhD thesis, University of Pennsylvania (2000)

    Google Scholar 

  38. Shanmugasundaram, J., Shekita, E., Barr, R., Carey, M., Lindsay, B., Pirahesh, H., Reinwald, B.: Efficiently publishing relational data as XML documents. In: Proc. of Int’l. Conf. on Very Large Databases (VLDB), pp. 65–76 (2000)

    Google Scholar 

  39. Shanmugasundaram, J., Tufte, K., Zhang, C., He, G., DeWitt, D.J., Naughton, J.F.: Relational databases for querying XML documents: Limitations and opportunities. In: Proc. of Int’l. Conf. on Very Large Databases (VLDB), pp. 302–314 (1999)

    Google Scholar 

  40. Thompson, H., Beech, D., Malone, M., Mendelsohn, N.: XML Schema. W3C Recommendation (May 2001), http://www.w3.org/XML/Schema

  41. Ullman, J.D.: Database and Knowledge Base Systems. Computer Science Press, Rockville (1988)

    Google Scholar 

  42. Yu, S.: Regular Languages. In: Rosenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, vol. 1, pp. 41–110. Springer, Heidelberg (1996)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Arenas, M., Fan, W., Libkin, L. (2005). Consistency of XML Specifications. In: Bertossi, L., Hunter, A., Schaub, T. (eds) Inconsistency Tolerance. Lecture Notes in Computer Science, vol 3300. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30597-2_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-30597-2_2

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-24260-4

  • Online ISBN: 978-3-540-30597-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics