An Improved Method of the Prime Number Labeling Scheme for Dynamic XML Documents

빈번히 갱신되는 XML 문서에 대한 프라임 넘버 레이블링 기법

  • 유지열 (서울대학교 컴퓨터공학과) ;
  • 유상원 (서울대학교 컴퓨터공학과) ;
  • 김형주 (서울대학교 컴퓨터공학과)
  • Published : 2006.02.01

Abstract

An XML labeling scheme is an efficient encoding method to determine the ancestor-descendant relationships of elements and the orders of siblings. Recently, many dynamic XML documents have appeared in the Web Services and the AXML(the Active XML), so we need to manage them with a dynamic XML labeling scheme. The prime number labeling scheme is a representative scheme which supports dynamic XML documents. It determines the ancestor-descendant relationships between two elements with the feature of prime numbers. When a new element is inserted into the XML document using this scheme, it has an advantage that an assigning the label of new element don't change the label values of existing nodes. But it has to have additional expensive operations and data structure for maintaining the orders of siblings. In this paper, we suggest the order number sharing method and algorithms categorized by the insertion positions of new nodes. They greatly minimize the existing method's sibling order maintenance cost.

XML 레이블링 기법은 엘리먼트 간의 조상-자손 관계 및 형제들 간의 순서 둥을 쉽게 결정할 수 있도록 하는 색인을 위한 인코딩(encoding)이라고 할 수 있다. 특히 근래에는 Web Services 및 AXML (Active XML)과 같은 기술에 동적 XML 문서가 등장하게 되었고 이로 인해 동적 XML 레이블링 기법이 필요하게 되었다. 대표적인 동적 레이블링 기법인 프라임 넘버 레이블링(prime number labeling)기법은 XML 문서의 엘리먼트 간의 부모-자식간의 관계를 소수의 특성을 이용하여 결정할 수 있도록 하는 기법이다. 이 기법은 새로운 엘리먼트가 삽입이 될 때 부여되는 레이블이 기존의 레이블 정보를 변화시키지 않는다는 장점이 있으나 형제간의 순서를 결정하는 순서 값(Order number)을 갱신하기 위해 추가의 연산 및 자료구조를 유지하는 비용을 갖는 단점을 가지고 있다. 본 논문에서는 이러한 비용을 줄이기 위해 요소의 순서정보를 나타내는 오더 값을 공유하는 기법과 삽입되는 위치에 따라 레이블의 값 또는 오더 값을 이용하여 형제간의 순서를 결정할 수는 방법을 제안하여 기존방법보다 적은 비용으로 처리할 수 있도록 하였다.

Keywords

References

  1. Tim Bray, Jean Paoli, C.M. Sperberg-McQueen, and Eve Maler, Extensible Markup Language (XML)1.0 (second edition), http://www.w3.org/TR/2000 /REC-xml-20001006, 2000
  2. W3C Working Draft. XML Path Language(XPath) 2.0. http://www.w3.org/TR/2002/WD-xpath20-20021115, November 2002
  3. D.Chamberlin et.al, XQuery 1.0: An XML Query Language, W3C Working Draft, 2001
  4. Masatoshi Yoshikawa, Toshiyuki Amagasa, et al., XRel: A Path-Based Approach to Storage and Retrieval of XML Documents Using Relational Databases, ACM Transaction on Internet Technology, 2001 https://doi.org/10.1145/383034.383038
  5. Quanzhong Li, Bongki Moon, Indexing and Querying XML Data for Regular Path Expressions, VLDB, 2001
  6. Igor Tatarinov, Stratis D.Viglas, Chun Zhang, et al., Storing and Querying Ordered XML Using a Relational Database System, Proceedings of SIGMOD 2002 https://doi.org/10.1145/564691.564715
  7. The World Wide Web Consortium, http://www.w3.org/2002/ws/
  8. http://www.inria.fr/
  9. http://activexml.net/
  10. Xiaodong Wu, Mong Li, Lee Wynne Hsu, A Prime Number Labeling Scheme for Dynamic Ordered XML Trees, ICDE, 2004
  11. http://xml.apache.org/xerces2-j/
  12. Serge Abiteboul, Angela Bonifati, Gregory Cobena, et al., Dynamic XML Documents with Distribution and Replication, SIGMOD 2003 https://doi.org/10.1145/872757.872821
  13. http://www.oasis-open.org/cover /bosakShakespeare200.htm