...
【24h】

Type inference for datalog with complex type hierarchies

机译:具有复杂类型层次结构的数据日志的类型推断

获取原文
获取原文并翻译 | 示例
           

摘要

Type inference for Datalog can be understood as the problem of mapping programs to a sublanguage for which containment is decidable. To wit, given a program in Datalog, a schema describing the types of extensional relations, and a user-supplied set of facts about the basic types (stating conditions such as disjointness, implication or equivalence), we aim to infer an over-approximation of the semantics of the program, which should be expressible in a suitable sublanguage of Datalog. We argue that Datalog with monadic extensionals is an appropriate choice for that sublanguage of types, and we present an inference algorithm. The inference algorithm is proved sound, and we also show that it infers the tightest possible over-approximation for a large class of Datalog programs. Furthermore, we present a practical containment check for a large subset of our type language. The crux of that containment check is a novel generalisation of Quine’s procedure for computing prime implicants. The type system has been implemented in a state-of-the-art industrial database system, and we report on experiments with this implementation.
机译:可以将Datalog的类型推断理解为将程序映射到可确定包含的子语言的问题。例如,给定Datalog中的程序,描述扩展关系类型的架构以及用户提供的有关基本类型的事实集(陈述条件,例如不相交,隐含或等价),我们的目的是推断出过度近似程序的语义,应该在适当的Datalog子语言中表达。我们认为,具有一元扩展名的Datalog是该类型子语言的适当选择,并且我们提出了一种推理算法。推论算法被证明是合理的,并且我们还证明了它可以推论大类Datalog程序的最严格的过度逼近。此外,我们提出了针对类型语言的大部分子集的实用遏制检查。遏制检查的关键是Quine用于计算主要蕴含量的过程的新颖概括。类型系统已在最先进的工业数据库系统中实现,我们将报告使用此实现的实验。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号