Skip to main content

Object-Oriented Constraints for XML Schema

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 6348))

Abstract

This paper presents an object-oriented representation of the core structural and constraint-related features of XML Schema. The structural features are represented within the limitations of object-oriented type systems including particles (elements and groups) and type hierarchies (simple and complex types and type derivations). The applicability of the developed representation is demonstrated through a collection of complex object-oriented queries. The main novelty is that features of XML Schema that are not expressible in object-oriented type systems such as range constraints, keys and referential integrity, and type derivation by restriction are specified in an object-oriented assertion language Spec#. An assertion language overcomes major problems in the object-oriented/XML mismatch. It allows specification of schema integrity constraints and transactions that are required to preserve those constraints. Most importantly, Spec# technology comes with automatic static verification of code with respect to the specified constraints. This technology is applied in the paper to transaction verification.

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

Buying options

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alagić, S., Royer, M., Briggs, D.: Verification technology for object-oriented/XML transactions. In: Norrie, M.C., Grossniklaus, M. (eds.) ICOODB 2009. LNCS, vol. 5936, pp. 23–40. Springer, Heidelberg (2010)

    Google Scholar 

  2. Alagić, S., Bernstein, P.: An object-oriented core for XML Schema, Microsoft Research Technical Report MSR-TR-2008-182 (December 2008), http://research.microsoft.com/apps/pubs/default.aspx?id=76533

  3. Alagić, S., Bernstein, P.: Mapping XSD to OO schemas. In: Norrie, M.C., Grossniklaus, M. (eds.) ICOODB 2009. LNCS, vol. 5936, pp. 149–166. Springer, Heidelberg (2010)

    Google Scholar 

  4. Alagić, S., Royer, M., Briggs, D.: Verification theories for XML Schema. In: Bell, D.A., Hong, J. (eds.) BNCOD 2006. LNCS, vol. 4042, pp. 262–265. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  5. Alagić, S., Logan, J.: Consistency of Java transactions. In: Lausen, G., Suciu, D. (eds.) DBPL 2003. LNCS, vol. 2921, pp. 71–89. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

  6. Benzanken, V., Schaefer, X.: Static integrity constraint management in object-oriented database programming languages via predicate transformers. In: Aksit, M., Matsuoka, S. (eds.) ECOOP 1997. LNCS, vol. 1241, pp. 60–84. Springer, Heidelberg (1997)

    Chapter  Google Scholar 

  7. Data Contracts, http://msdn2.microsoft.com/en-us/library/ms123402.aspx

  8. Document Object Model (DOM), http://www.w3.org/TR/REC-DOM-Level-1/

  9. Lammel, R., Meijer, E.: Revealing the X/O impedance mismatch, Datatype-Generic Programming. In: Backhouse, R., Gibbons, J., Hinze, R., Jeuring, J. (eds.) SSDGP 2006. LNCS, vol. 4719, pp. 285–367. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  10. Language Integrated Query, Microsoft Corporation, http://msdn.microsoft.com/en-us/vbasic/aa904594.aspx

  11. Microsoft Corp., LINQ to XML, http://msdn.microsoft.com/en-us/library/bb387098.aspx

  12. Microsoft Corp., LINQ to XSD Alpha 0.2 (2008), http://blogs.msdn.com/xmlteam/archive/2006/11/27/typed-xml-programmer-welcome-to-LINQ.aspx

  13. Microsoft Corp., Spec#, http://research.microsoft.com/specsharp/

  14. Microsoft Corp., XML.: Schema Object Model (SOM) (vs.71).aspx, http://msdn2.microsoft.com/en-us/library/bs8hh90b

  15. Shariar, Md.S., Liu, J.: Checking satisfaction of XML referential integrity constraints. In: Liu, J., Wu, J., Yao, Y., Nishida, T. (eds.) AMT 2009. LNCS, vol. 5820, pp. 148–159. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  16. Sheard, T., Stemple, D.: Automatic verification of database transaction safety. ACM Transactions on Database Systems 14, 322–368 (1989)

    Article  Google Scholar 

  17. Spelt, D., Even, S.: A theorem prover-based analysis tool for object-oriented databases. In: Cleaveland, W.R. (ed.) TACAS 1999. LNCS, vol. 1579, pp. 375–389. Springer, Heidelberg (1999)

    Chapter  Google Scholar 

  18. W3C: XML Schema 1.1, http://www.w3.org/XML/Schema

  19. XML Data Binder, http://www.liquid-technologies.com/XmlStudio/Xml-Data-Binder.aspx

  20. XMLBeans, http://xmlbeans.apache.org

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Alagić, S., Bernstein, P.A., Jairath, R. (2010). Object-Oriented Constraints for XML Schema. In: Dearle, A., Zicari, R.V. (eds) Objects and Databases. ICOODB 2010. Lecture Notes in Computer Science, vol 6348. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-16092-9_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-16092-9_11

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-16091-2

  • Online ISBN: 978-3-642-16092-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics