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

XPath逻辑与XPathLog:逻辑编程风格的XML数据操作语言

XPath-Logic and XPathLog: A Logic-Programming Style XML Data Manipulation Language

Wolfgang May

摘要:

我们将XPathLog定义为一个DataLog风格的扩展。XPathLog为查询和操作XML提供了一种清晰的声明性语言,其透视图尤其适用于XML数据集成。在我们的刻画中,形式语义被定义为wrt。一个基于边标记的图模型,它覆盖了XML数据模型。我们给出了一个完整的,基于逻辑的XML数据和XML的主要语言概念,XML的特征。XPath-Logic用变量绑定扩展了XPath语言,并将其嵌入到一阶逻辑中。XPathLog则是XPath-Logic的Horn片段,它提供了一种Datalog风格的、基于规则的语言,用于查询和操作XML数据。XPath-Logic的模型论语义是XPathLog作为逻辑程序设计语言的基础,同时也给出了一个等价的用于评估XPathLog查询的答案集语义。与其他方法相比,XML语法和语义也用于声明性规范数据库应该如何更新:当在规则头中使用时,XML过滤器被解释为应该添加到数据库的元素和属性的规范。

英文摘要:

We define XPathLog as a Datalog-style extension of XPath. XPathLog provides a clear, declarative language for querying and manipulating XML whose perspectives are especially in XML data integration. In our characterization, the formal semantics is defined wrt. an edge-labeled graph-based model which covers the XML data model. We give a complete, logic-based characterization of XML data and the main language concept for XML, XPath. XPath-Logic extends the XPath language with variable bindings and embeds it into first-order logic. XPathLog is then the Horn fragment of XPath-Logic, providing a Datalog-style, rule-based language for querying and manipulating XML data. The model-theoretic semantics of XPath-Logic serves as the base of XPathLog as a logic-programming language, whereas also an equivalent answer-set semantics for evaluating XPathLog queries is given. In contrast to other approaches, the XPath syntax and semantics is also used for a declarative specification how the database should be updated: when used in rule heads, XPath filters are interpreted as specifications of elements and properties which should be added to the database.

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

↑