Skip to main content

Inferring the Principal Type and the Schema Requirements of an OQL Query

  • Conference paper
  • First Online:
Advances in Databases (BNCOD 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2097))

Included in the following conference series:

Abstract

In this paper, we present an inference algorithm for OQL which both identifies the most general type of a query in the absence of schema type information, and derives the minimum type requirements a schema should satisfy to be compatible with this query. Our algorithm is useful in any database application where heterogeneity is encountered, for example, schema evolution, queries addressed against multiple schemata, inter-operation or reconciliation of heterogeneous schemata. Our inference algorithm is technically interesting as it concerns an object functional language with a rich semantics and complex type system. More precisely, we have devised a set of constraints and an algorithm to resolve them. Our resulting type inference system for OQL should be useful in any open distributed, or even semi-structured, database environment.

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. O. Agesen and U. Holzle. Type feedback vs. concrete type inference: a comparison of optimization techniques for object-oriented languages. In OOPSLA, pages 91–107, 1995.

    Google Scholar 

  2. S. Alagic. Type checking OQL queries in the ODMG type systems. ACM Transactions on Database Systems, 24(3):319–360, September 1999.

    Article  Google Scholar 

  3. G.M. Bierman and A. Trigoni. Towards a formal type system for ODMG OQL. Technical Report 497, University of Cambridge, Computer Laboratory, October 2000.

    Google Scholar 

  4. M.W. Bright, A.R. Hurson, and S. Pakzad. Automated resolution of semantic heterogeneity in multidatabases. ACM Transactions on Database Systems, 19(2), 1994.

    Google Scholar 

  5. P. Buneman and A. Ohori. Polymorphism and type inference in database programming. ACM Transactions on Database Systems, 21(1):30–76, March 1996.

    Article  Google Scholar 

  6. R.G.G. Cattell et al. The Object Data Standard: ODMG 3.0. Morgan Kaufmann, 2000.

    Google Scholar 

  7. R. Hull. Managing semantic heterogeneity in databases: A theoretical perspective. In PODS, 1997.

    Google Scholar 

  8. J. Palsberg and M. I. Schwartzbach. Object-oriented type inference. In OOPSLA, pages 146–161, 1991.

    Google Scholar 

  9. J. Plevyak and A.A. Chien. Precise concrete type inference for object-oriented languages. In OOPSLA, pages 324–340, 1994.

    Google Scholar 

  10. J. A. Robinson. A machine-oriented logic based on the resolution principle. Journal of the ACM, 12(1):23–41, January 1965.

    Article  MATH  Google Scholar 

  11. A. Trigoni. Phd thesis, to appear. 2001.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Trigoni, A., Bierman, G.M. (2001). Inferring the Principal Type and the Schema Requirements of an OQL Query. In: Read, B. (eds) Advances in Databases. BNCOD 2001. Lecture Notes in Computer Science, vol 2097. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45754-2_12

Download citation

  • DOI: https://doi.org/10.1007/3-540-45754-2_12

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-42265-5

  • Online ISBN: 978-3-540-45754-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics