首页> 外文会议>International conference on Very Large Data Bases >A Domain-theoretic Approach to Integrating Functional and Logic Database Languages
【24h】

A Domain-theoretic Approach to Integrating Functional and Logic Database Languages

机译:集成功能和逻辑数据库语言的域 - 理论方法

获取原文

摘要

The advantages of logic languages with respect to search-based computation are well-understood, while the advantages of functional languages with respect to deterministic computation are becoming increasingly recognised. It is therefore natural to investigate the development of languages which reconcile the two paradigms. As a contribution to this effort, we extend an existing functional database language called PFL with sets as first class objects. The resulting language subsumes Datalog~(fun+neg) in the sense that any set of Datalog~(fun+neg) rules can be translated into a set of PFL equations with the same semantics. Since functional and logic database languages can be considered as proper sub-languages of PFL, well-known optimisation techniques from both can usefully be employed (for example lazy evaluation for recursive functions and bottom-up evaluation techniques for recursive predicates). We motivate our work by reviewing the respective advantages of functional and logic programming for computation, data manipulation and data modelling. An overview of the previous version of PFL is presented and the syntax of this language is then extended to incorporate sets. We show how the Plotkin powcrdomain construction can be used to assign meaning to set expressions and we give a denotational semantics for the extended language. To illustrate its expressiveness, we show how Datalog rules can be expressed as PFL functions. We discuss the optimisation of these functions. We also show how integrity constraints can be defined, and describe how a particular constraint enforcement technique developed for logic databases can be adopted by PFL.
机译:逻辑语言相对于基于搜索的计算的优点是很好的理解,而功能语言相对于确定性计算的优点变得越来越识别。因此,研究了调节两种范例的语言的发展是自然的。作为对此努力的贡献,我们将一个名为PFL的现有功能数据库语言扩展为First类对象。生成的语言归载数据库〜(fun + neg)在某种意义上,任何数据库〜(fun + neg)规则可以转换为具有相同语义的一组PFL方程。由于功能和逻辑数据库语言可以被认为是PFL的适当子语言,可以使用来自两者的众所周知的优化技术(例如,用于递归函数的延迟评估和用于递归谓词的自下而上的评估技术)。我们通过审查计算,数据操纵和数据建模的功能和逻辑规划的各自优势来激励我们的工作。提出了先前版本的PFL版本的概述,然后将此语言的语法扩展以合并集合。我们展示了Plotkin PowcRomain建设如何用于为设置表达式分配含义,并为扩展语言提供一个表示语义的语义。为了说明其表现力,我们展示了Datalog规则如何表示为PFL函数。我们讨论了这些功能的优化。我们还展示了如何定义完整性约束,并描述如何通过PFL采用为逻辑数据库开发的特定约束强制技术。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号