DB Category:基于视图的数据库映射的指称语义
DB Category: Denotational Semantics for View-based Database Mappings
摘要:
我们提出了一个分类的指称语义的数据库映射,视图的基础上,在最一般的框架中的数据库集成/交换。已开发的数据库范畴DB,用于数据库(对象)和它们之间基于视图的映射(态射),与Set范畴不同:态射(基于一组复杂的查询计算)不是函数,而对象是数据库实例(关系集)。数据库之间基于逻辑的模式映射,通常用高度表达性的逻辑语言(例如,LAV、GAV、GLAV映射或元组生成依赖性)可以函数地转换成该“计算”类别DB。采用了一种新的方法,基于数据库的行为的观点,并建立数据库及其映射的行为等价。通过引入基于视图的数据库观测,这是没有副作用的计算,我们定义了一个基本的(泛代数)单子与幂视图endofunctor T。所得到的2-category DB是对称的,因此任何映射也可以表示为对象(数据库实例),其中映射之间的更高级别映射是2-cell态射。数据库类DB具有如下性质:它等于它的对偶、完全和共完全。特别注意实际的例子:一个查询定义,在GAV数据库集成环境中的查询重写,和一个规范的数据集成模型的定点解决方案。
英文摘要:
We present a categorical denotational semantics for a database mapping, based on views, in the most general framework of a database integration/exchange. Developed database category DB, for databases (objects) and view-based mappings (morphisms) between them, is different from Set category: the morphisms (based on a set of complex query computations) are not functions, while the objects are database instances (sets of relations). The logic based schema mappings between databases, usually written in a highly expressive logical language (ex. LAV, GAV, GLAV mappings, or tuple generating dependency) may be functorially translated into this "computation" category DB. A new approach is adopted, based on the behavioral point of view for databases, and behavioral equivalences for databases and their mappings are established. By introduction of view-based observations for databases, which are computations without side-effects, we define a fundamental (Universal algebra) monad with a power-view endofunctor T. The resulting 2-category DB is symmetric, so that any mapping can be represented as an object (database instance) as well, where a higher-level mapping between mappings is a 2-cell morphism. Database category DB has the following properties: it is equal to its dual, complete and cocomplete. Special attention is devoted to practical examples: a query definition, a query rewriting in GAV Database-integration environment, and the fixpoint solution of a canonical data integration model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。