A syntactic approach to twig-query matching on XML streams

  • Authors:
  • Chien-Ping Chou;Kuen-Fang Jea;Heng-Hsun Liao

  • Affiliations:
  • Department of Computer Science and Engineering, National Chung-Hsing University, Taichung 402, Taiwan, ROC;Department of Computer Science and Engineering, National Chung-Hsing University, Taichung 402, Taiwan, ROC;Department of Computer Science and Engineering, National Chung-Hsing University, Taichung 402, Taiwan, ROC

  • Venue:
  • Journal of Systems and Software
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Query matching on XML streams is challenging work for querying efficiency when the amount of queried stream data is huge and the data can be streamed in continuously. In this paper, the method Syntactic Twig-Query Matching (STQM) is proposed to process queries on an XML stream and return the query results continuously and immediately. STQM matches twig queries on the XML stream in a syntactic manner by using a lexical analyzer and a parser, both of which are built from our lexical-rules and grammar-rules generators according to the user's queries and document schema, respectively. For query matching, the lexical analyzer scans the incoming XML stream and the parser recognizes XML structures for retrieving every twig-query result from the XML stream. Moreover, STQM obtains query results without a post-phase for excluding false positives, which are common in many streaming query methods. Through the experimental results, we found that STQM matches the twig query efficiently and also has good scalability both in the queried data size and the branch degree of the twig query. The proposed method takes less execution time than that of a sequence-based approach, which is widely accepted as a proper solution to the XML stream query.