...
首页> 外文期刊>Theory and Practice of Logic Programming >Querying XML documents in logic programming
【24h】

Querying XML documents in logic programming

机译:在逻辑编程中查询XML文档

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

摘要

Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML. Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere. XPath language is the result of an effort to provide address parts of an XML document. In support of this primary purpose, it becomes in a query language against an XML document. In this paper we present a proposal for the implementation of the XPath language in logic programming. With this aim we will describe the representation of XML documents by means of a logic program. Rules and facts can be used for representing the document schema and the XML document itself. In particular, we will present how to index XML documents in logic programs: rules are supposed to be stored in main memory, however facts are stored in secondary memory by using two kind of indexes: one for each XML tag, and other for each group of terminal items. In addition, we will study how to query by means of the XPath language against a logic program representing an XML document. It evolves the specialization of the logic program with regard to the XPath expression. Finally, we will also explain how to combine the indexing and the top-down evaluation of the logic program.
机译:可扩展标记语言(XML)是从SGML派生的一种简单,非常灵活的文本格式。 XML最初旨在应付大规模电子出版的挑战,但在Web和其他地方交换各种数据方面也起着越来越重要的作用。 XPath语言是提供XML文档的地址部分的结果。为了支持此主要目的,它变成了针对XML文档的查询语言。在本文中,我们提出了在逻辑编程中实现XPath语言的建议。为此,我们将通过逻辑程序描述XML文档的表示形式。规则和事实可用于表示文档架构和XML文档本身。特别是,我们将介绍如何在逻辑程序中为XML文档建立索引:规则应存储在主存储器中,而事实则通过使用两种索引存储在辅助存储器中:一个索引用于每个XML标签,另一个索引用于每个组。终端项目。另外,我们将研究如何通过XPath语言针对代表XML文档的逻辑程序进行查询。它发展了有关XPath表达式的逻辑程序的专业化。最后,我们还将说明如何结合索引和逻辑程序的自顶向下评估。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号