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

计算机工程 ›› 2012, Vol. 38 ›› Issue (06): 69-70. doi: 10.3969/j.issn.1000-3428.2012.06.022

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

一种XML数据流小枝模式查询算法

白 山,陶世群?   

  1. (山西大学计算机与信息技术学院,太原 030006)
  • 收稿日期:2011-07-22 出版日期:2012-03-20 发布日期:2012-03-20
  • 作者简介:白 山(1970-),男,硕士,主研方向:XML数据库技术,数据挖掘;陶世群,教授、博士生导师

Twig Pattern Query Algorithm for XML Data Stream

BAI Shan, TAO Shi-qun   

  1. (School of Computer and Information Technology, Shanxi University, Taiyuan 030006, China)
  • Received:2011-07-22 Online:2012-03-20 Published:2012-03-20

摘要: 针对传统XML文档小枝模式查询算法系统开销大的问题,提出一种XML数据流小枝模式查询算法。该算法结合SAX数据流解析技术,将层次关系队列结构应用于XML文档查询中,采用动态生成区间编码的方式,免除建立编码索引文件的步骤。实验结果表明,在对相关数据集进行查询时,该算法可减少I/O操作,缩短查询响应时间,提高查询效率。

关键词: 可扩展标记语言, 小枝模式, 区间编码, 数据流, SAX解析

Abstract: Aiming at the system overhead problem of traditional twig pattern query algorithm for XML document, this paper proposes a twig pattern query algorithm for XML data stream. By integrating a type of data structure of multi-layer related queues with SAX data stream parse technology, it uses the method of dynamic gernerating the region code for the querying and avoids the creation of index file. Experimental results show that the algorithm promotes the querying efficiency through reducing I/O operation and querying time on certain data set.

Key words: eXtensive Makeup Language(XML), twig pattern, region encoding, data stream, Simple API for XML(SAX) parse

中图分类号: