作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (16): 63-65. doi: 10.3969/j.issn.1000-3428.2008.16.021

• 软件技术与数据库 • 上一篇    下一篇

基于自动机的XML流多查询处理

张兵令   

  1. (上海杉达学院教务处,上海 201209)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-08-20 发布日期:2008-08-20

Automata-based Multiple Queries Handling over XML Streams

ZHANG Bing-ling   

  1. (Administration Office of Shanghai Sanda Institute, Shanghai 201209)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-08-20 Published:2008-08-20

摘要: XML流数据处理在研究领域引起广泛关注,该文针对XML流上的多查询处理提出一种算法,把多个查询合并为一个共享前缀的查询树,应用自动机和运行时栈相结合的方法,单遍扫描XML流处理数据流上的多个查询。该算法采用一种分层栈结构保存查询模式匹配候选集,利用XML节点的区间编码来确定节点之间的关系,返回整条匹配路径。

关键词: XML数据流, 前缀共享, 自动机

Abstract: The problem of processing streaming XML data is gaining widespread attention from the research community. This paper proposes a novel algorithm for handling of multiple queries over the XML streams. The approach merges the multiple queries into a single prefix sharing query tree, and combines the automata with the runtime stack structure to answer multiple XML path queries through scanning the XML stream at the same time. The algorithm returns the whole matching path by using a new hierarchical stack structure to store the result of query pattern matches, and confirms the relationship within the node through the position encodes in the XML data stream.

Key words: XML data stream, prefix sharing, automata

中图分类号: