计算机工程 ›› 2007, Vol. 33 ›› Issue (21): 63-65.doi: 10.3969/j.issn.1000-3428.2007.21.023

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

XML查询方法的设计与研究

沈剑沧1,鲍培明2   

  1. (1. 南京大学物理学系,南京 210093;2. 南京师范大学计算机科学系,南京 210097)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-11-05 发布日期:2007-11-05

Design and Research of XML Query Method

SHEN Jian-cang1, BAO Pei-ming2   

  1. (1. Dept. of Physics, Nanjing University, Nanjing 210093; 2. Dept. of Computer Science, Nanjing Normal University, Nanjing 210097)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-11-05 Published:2007-11-05

摘要: 提出了用Petri网建立XML语义结构模型的设计方法,根据XML的DTD结构建立描述XML语义结构的Petri网模型,DTD结构中的元素声明和属性声明对应Petri网模型中的一个或一组变迁,声明中的元素或属性对应Petri 网模型中的库所,把XML查询中的路径表达式定义为Petri网库所中的Token。根据Petri网模型的结构生成存储XML数据的关系数据库模型,将XML的查询问题最终转化为数据库中数据的查询操作。
XML;Petri网;路径表达式;查询

关键词: XML, Petri网, 路径表达式, 查询

Abstract: This paper proposes a method for modeling XML semantic structure with a Petri net. According to the DTD structure of XML, it constructs the Petri net model to describe the XML semantic structure, in which DTD element declaration and attribute declaration are described as some transitions, elements and attributes are described as places, and the path expressions in XML query are described as Tokens in Petri net model. Based on the structure of Petri net model, relational database model is set up to save XML data, and the query of XML is converted to the query of database.

Key words: XML, Petri net, path expression, query

中图分类号: