Approximate XML document matching
Approximate XML document matching
复制标题
近似 XML 文档匹配
DOI:
10.1145/1066677.1066857
复制
发表时间:
2005
期刊:
影响因子:
--
通讯作者:
Guangming Xing
中科院分区:
文献类型:
--
作者:
E. Canfield;Guangming Xing
Regular Hedge Grammar is a formal method to specify XML schema. XML document can be viewed as an ordered labeled tree. Computing the approximate matching between an XML document with a schema with minimum cost is not only theoretically interesting. This problem can be modeled as: Given an ordered labeled tree <i>F</i> and a regular hedge grammar <i>P</i>, how to compute the minimum edit distance to transform the forest <i>F</i> into <i>F'</i> so that <i>F'</i> is exactly matched by <i>P</i>. In this paper, with the introduction of leaf forest, we gave an algorithm for this problem in <i>O</i>(<i>F</i><sup>2</sup><i>P</i>(<i>F</i> + log <i>P</i>)) time, where <i>F</i> is the size of the forest and <i>P</i> is the size of the grammar. From the authors' knowledge, this is the first algorithm to transform an XML document (ordered labeled tree) to conform to a schema (tree grammar).