...
【24h】

On the Minimization of XPath Queries

机译:关于XPath查询的最小化

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

获取外文期刊封面封底 >>

       

摘要

XPath expressions define navigational queries on XML data and are issued on XML documents to select sets of element nodes. Due to the wide use of XPath, which is embedded into several languages for querying and manipulating XML data, the problem of efficiently answering XPath queries has received increasing attention from the research community. As the efficiency of computing the answer of an XPath query depends on its size, replacing XPath expressions with equivalent ones having the smallest size is a crucial issue in this direction. This article investigates the minimization problem for a wide fragment of XPath (namely XP~([≠])), where the use of the most common operators (child, descendant, wildcard and branching) is allowed with some syntactic restrictions. The examined fragment consists of expressions which have not been specifically studied in the relational setting before: neither are they mere conjunctive queries (as the combination of "// " and "*" enables an implicit form of disjunction to be expressed) nor do they coincide with disjunctive ones (as the latter are more expressive). Three main contributions are provided. The "global minimality" property is shown to hold: the minimization of a given XPath expression can be accomplished by removing pieces of the expression, without having to re-formulate it (as for "general" disjunctive queries). Then, the complexity of the minimization problem is characterized, showing that it is the same as the containment problem. Finally, specific forms of XPath expressions are identified, which can be minimized in polynomial time.
机译:XPath表达式定义对XML数据的导航查询,并在XML文档上发布以选择元素节点集。由于广泛嵌入了多种语言的XPath用于查询和处理XML数据,因此有效回答XPath查询的问题已引起研究界的越来越多的关注。由于计算XPath查询的答案的效率取决于其大小,因此在这个方向上,用具有最小大小的等效表达式替换XPath表达式是至关重要的问题。本文研究了XPath的一个较大片段(即XP〜([≠]))的最小化问题,在该片段中,可以使用最常见的运算符(子代,子代,通配符和分支),但存在一些语法限制。所检查的片段由以前在关系环境中未专门研究过的表达式组成:它们既不是单纯的联合查询(因为“ //”和“ *”的组合可以表达隐含的析取形式)也不与析取语相吻合(因为后者更具表现力)。提供了三个主要的贡献。显示出“全局最小性”属性:可以通过删除表达式的各个部分来实现给定XPath表达式的最小化,而不必重新构造它(对于“常规”析取查询)。然后,对最小化问题的复杂性进行了表征,表明它与遏制问题相同。最后,确定XPath表达式的特定形式,可以在多项式时间内将其最小化。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号