Skip to main content

A Functional Database Language for the Associative Model of Data

  • Chapter
  • 144 Accesses

Summary

The Associative Model of Data represents information, both schema and instance, in the form of a directed graph but with certain constraints on the labelling of nodes and edges, in our context termed arcs. Such a directed graph can readily be shown to be uniquely represented as a set of triples and thus held in some form of triple store repository. Many practical applications involve networks which can be represented as directed graphs and for which special purpose languages have been developed[2.10, 2.6, 2.5].

Previous work on FDL [2.9, 3.13] on which that described in this chapter builds, has shown that Shipman’s functional data model can be integrated with a functional programming language to considerable advantage with the definitions of all the functions invoved, whether extension-ally or intentionally defined or of mixed definition, being held in a triple store repository. This integration was an important advance but was soon discoverd to have limitations consequent upon its semantic power being equivalent only to that of the lambda calculus.

In this chapter we describe how we take a functional view of the associative model of data very similar to that of Shipman’s approach if resricted to functions of a single variable, and integrate if with a functional programming language using a triple store repository just as with FDL. Then, by taking a somewhat more relaxed approach to typing than with conventional functional programming, by treating named functions as first class objects in the computation, and by defing a set of higher order functions, we show that the functional database/language paradigm can be extended to include the power of the graph query languages referred to above. We also show how this approach greatly facilitates working in areas where the schema is subject to continuous change and update, since useful queries can be made without any knowledge of the schema.

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   129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   169.99
Price excludes VAT (USA)
  • Durable hardcover 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. R. Ayres and P.J.H. King. Enhancing database query languages with associ-ational facilities. Ingenierie des Systemes d’Information, 3(3):441–463, 1995.

    Google Scholar 

  2. R. Ayres and P.J.H. King. Querying graph databases using a functional language extended with second order facilities. In Proc. BNCOD’96, LNCS1094, pages 189–203, 1996.

    Google Scholar 

  3. R. Ayres. Enhancing the Semantic Power of Functional Database Languages. PhD thesis, University of London, 1995.

    Google Scholar 

  4. P. Buneman, R.E. Frankel, and R. Nikhil. An implementation technique for database query languages. ACM Transactions on Database Systems, 7(2): 164–186, 1982.

    Article  Google Scholar 

  5. M.P. Consens, I.F. Cruz, and A.O. Mendelzon. Visualizing queries and querying visualizations. ACM SIGMOD Record, 21(l):39–46, 1992.

    Article  Google Scholar 

  6. M.P. Consens and A.O. Mendelzon. Graphlog: a visual formalism for real life recursion. In Proc. ACM PODS’90, pages 404–416, 1990.

    Google Scholar 

  7. R.A. Frost. Binary relational storage structures. The Computer Journal, 28(5):359–67, 1985.

    MathSciNet  Google Scholar 

  8. P.J.H. King, M. Derakhshan, A. Poulovassilis, and C. Small. TriStarp—an investigation into the Implementation and Exploitation of Binary Relational Storage Structures. In Proc. BN COD’90, 1990.

    Google Scholar 

  9. P.J.H. King and A. Poulovassilis. FDL: a language which integrates database and functional programming. In Proc. INFORSID’88, La Rochelle, 1988.

    Google Scholar 

  10. A.O. Mendelzon and P.T. Wood. Finding regular simple paths in graph databases. In Proc. VLDB’89, pages 185–193, 1989.

    Google Scholar 

  11. A Motro. Constructing queries from tokens. In Proc. ACM SIGMOD’86, pages 120–131, 1986.

    Google Scholar 

  12. S.L. Peyton Jones. The Implementation of Functional Programming Languages. Prentice Hall, 1987.

    MATH  Google Scholar 

  13. A. Poulovassilis and P.J.H. King. Extending the functional data model to computational completeness. In Proc. ED BT’90, LNCS 16, pages 75–91, 1990.

    Google Scholar 

  14. D.W. Shipman. The functional data model and the data language DAPLEX. ACM Trans. on Database Systems, 6(1):140–173, 1981.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

King, P.J.H. (2004). A Functional Database Language for the Associative Model of Data. In: Gray, P.M.D., Kerschberg, L., King, P.J.H., Poulovassilis, A. (eds) The Functional Approach to Data Management. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-05372-0_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-05372-0_2

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-05575-1

  • Online ISBN: 978-3-662-05372-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics