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

Prolog作为MongoDB的查询语言

Prolog as a Querying Language for MongoDB

Daniel Beßler, Sascha Jongebloed, Michael Beetz

摘要:

今天的数据库系统已经证明能够支持需要大量数据处理的AI应用程序。为此,这些系统采用了强大的查询语言,远远超出了单纯的数据检索,并提供了先进的设施,以及数据处理。在SQL的情况下,该语言甚至在该语言的某些实现中被证明是图灵完备的。在NoSQL数据库领域,目前广泛采用的是MongoDB数据库。MongoDB数据库中的XML表示为聚合管道中的顺序阶段,其中每个阶段定义输入数据的转换,并将转换后的数据传递到下一阶段。但是对于更复杂的计算问题,聚合查询往往变得相当大,缺乏组织成可重用的片段,因此难以调试和维护。我们提出了一个新的数据库查询语言称为Mongolog的Prolog语言的语法的一个子集,我们定义其操作语义通过翻译成聚合管道。为此,我们利用和扩展的MQuery语言的形式框架,其特征在于聚合框架集理论上。

英文摘要:

Today's database systems have shown to be capable of supporting AI applications that demand a lot of data processing. To this end, these systems incorporate powerful querying languages that go far beyond the mere retrieval of data, and provide sophisticated facilities for data processing as well. In the case of SQL, the language has been even demonstrated to be Turing-complete in some implementations of the language. In the area of NoSQL databases, a widely adopted one nowadays is the MongoDB database. Queries in MongoDB databases are represented as sequential stages within an aggregation pipeline where each stage defines a transformation of the input data, and passes the transformed data to the next stage. But aggregation queries tend to become rather large for more complex computational problems, lack organization into re-usable pieces, and are thus hard to debug and maintain. We propose a new database querying language called Mongolog which is syntactically a subset of the Prolog language, and we define its operational semantics through translations into aggregation pipelines. To this end, we make use of and extend the formal framework of the MQuery language which characterizes the aggregation framework set-theoretically.

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

↑