Abstract
We describe a functional database language OR-SML for handling disjunctive information in database queries, and its implementation on top of Standard ML [12]. The core language has the power of the nested relational algebra, augmented by or-sets which are used to deal with disjunctive information. Sets, or-sets and tuples can be freely combined to create objects, which gives the language a greater flexibility. It is configurable by user-defined base types, and can be used independently or interfaced to other systems built in ML. We give examples of queries which require disjunctive information (such as querying incomplete or independent databases) and show how to use the language to answer these queries.
Partial support was provided by NSF Grant IRI-90-04137 and AT&T Doctoral Fellowship, while this author was a graduate student at the University of Pennsylvania.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
V. Breazu-Tannen, P. Buneman, and S. Naqvi. Structural recursion as a query language. In Proc. of DBPL-91, pages 9–19.
V. Breazu-Tannen, P. Buneman, and L. Wong. Naturally embedded query languages. In LNCS 646: Proc. ICDT-92, pages 140–154. Springer, October 92.
P. Buneman, S. Davidson, A. Watters, A semantics for complex objects and approximate answers, JCSS 43:170–218, 1991.
P. Buneman, A. Jung, A. Ohori, Using powerdomains to generalize relational databases, Theoret. Comp. Sci. 91:23–55, 1991.
S. Grumbach, T. Milo, Towards tractable algebras for bags, Proceedings of the 12th PODS, Washington DC, 1993, pages 49–58.
C. Gunter, The mixed powerdomain, Theoret. Comp. Sci. 103:311–334, 1992.
E. Gunter and L. Libkin. A functional database programming language with support for disjunctive information, AT&T Technical Memo, 1993.
T. Imielinski, S. Naqvi, and K. Vadaparty. Incomplete objects — a data model for design and planning applications. In Proc. of SIGMOD, Denver CO, May 1991.
L. Libkin, A relational algebra for complex objects based on partial information, In LNCS 495: Proc. of MFDBS-91, Springer-Verlag, 1991, pages 36–41.
L. Libkin and L. Wong, Semantic representations and query languages for or-sets, Proceedings of the 12th PODS, Washington DC, 1993, pages 37–48.
L. Libkin and L. Wong, Some properties of query languages for bags, In Proc. of DBPL-93, Springer Verlag, 1994, pages 97–114.
R. Milner, M. Tofte, R. Harper, “The Definition of Standard ML”, The MIT Press, Cambridge, Mass, 1990.
A. Ohori, V. Breazu-Tannen and P. Buneman, Database programming in Machiavelli: a polymorphic language with static type inference, In SIGMOD 89.
B. Rounds, Situation-theoretic aspects of databases, In Proc. Conf. on Situation Theory and Applications, CSLI vol. 26, 1991, pages 229–256.
H.-J. Schek and M. Scholl, The relational model with relation-valued attributes, Inform. Systems 11 (1986), 137–147.
P.W. Trinder and P.L. Wadler, List comprehensions and the relational calculus, In Proceedings of the Glasgow Workshop on Functional Programming, pages 187–202.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Gunter, E., Libkin, L. (1994). OR-SML: A functional database programming language for disjunctive information and its applications. In: Karagiannis, D. (eds) Database and Expert Systems Applications. DEXA 1994. Lecture Notes in Computer Science, vol 856. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58435-8_230
Download citation
DOI: https://doi.org/10.1007/3-540-58435-8_230
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-58435-3
Online ISBN: 978-3-540-48796-8
eBook Packages: Springer Book Archive