arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13895cs.DB
收藏

上下文模型:一种图数据库模型

The Context Model: A Graph Database Model

Nicolas Spyratos

AI总结:

提出一种以有向无环图为基本结构的图数据库上下文模型,在统一函数代数框架内支持数据管理和分析,并能作为语义层和友好界面处理关系数据。

摘要:

我们提出了一种新颖的数据库模型,其基本结构是一个带标签的、有向的、具有单一根节点的无环图,其中节点表示应用程序的数据集,边表示数据集之间的函数关系。我们将这样的图称为应用程序上下文或简称上下文。上下文的查询语言包含两类查询:遍历查询和分析查询。这两类查询都使用一种简单的函数代数来定义,其操作包括函数限制、函数复合、函数配对和集合的笛卡尔积。粗略地说,遍历查询类似于关系代数查询,而分析查询类似于 SQL Group-by 查询。换句话说,在我们的模型中,遍历查询和分析查询都在同一个形式化框架内定义——这与关系模型不同,在关系模型中分析查询定义在关系代数之外。因此,我们模型的一个显著特征是它支持在同一个形式化框架内进行数据管理和数据分析。我们通过展示以下几点来证明我们模型的表达能力:(a) 如何将关系数据库定义为上下文上的视图,其中上下文扮演底层语义层的角色;(b) 上下文上的分析查询如何在两个正交层面上被重写:在执行分组和度量的遍历查询层面,以及在分析查询本身的层面;以及(c) 上下文如何被用作查询关系和分析关系数据的用户友好界面。

英文摘要:

We propose a novel database model whose basic structure is a labeled, directed, acyclic graph with a single root, in which the nodes represent the data sets of an application and the edges represent functional relationships among the data sets. We call such a graph an application context or simply context. The query language of a context consists of two types of queries, traversal queries and analytic queries. Both types of queries are defined using a simple functional algebra whose operations are functional restriction, composition of functions, pairing of functions and Cartesian product of sets. Roughly speaking, traversal queries parallel relational algebra queries, whereas analytic queries parallel SQL Group-by queries. In other words, in our model, traversal queries and analytic queries, are both defined within the same formal framework - in contrast to the relational model, where analytic queries are defined outside the relational algebra. Therefore a distinctive feature of our model is that it supports data management and data analytics within the same formal framework. We demonstrate the expressive power of our model by showing: (a) how a relational database can be defined as a view over a context, with the context playing the role of an underlying semantic layer; (b) how an analytic query over a context can be rewritten at two orthogonal levels: at the level of the traversal queries that do the grouping and measuring, and at the level of the analytic query itself; and (c) how a context can be used as a user-friendly interface for querying relations and analysing relational data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑