• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2010, Vol. 32 ›› Issue (7): 157-160.doi: 10.3969/j.issn.1007130X.2010.

• 论文 • 上一篇    

基于语义约束的数据转换模式研究

孙劲光,杨成森   

  1. (辽宁工程技术大学电子与信息工程学院,辽宁 葫芦岛 125105)
  • 收稿日期:2008-11-19 修回日期:2009-02-13 出版日期:2010-06-25 发布日期:2010-06-25
  • 通讯作者: 杨成森 E-mail:yangsen82@163.com
  • 作者简介:孙劲光(1962),女,辽宁阜新人,教授, 研究方向为图形图像和软件工程;杨成森,硕士生,研究方向为数据库原理。

Research on the Data Conversion PatternBased on Semantic Constraints

SUN Jinguang,YANG Chengsen   

  1. (School of Electronics and Information Engineering,Liaoning Technical University,Huludao 125105,China)
  • Received:2008-11-19 Revised:2009-02-13 Online:2010-06-25 Published:2010-06-25
  • Contact: YANG Chengsen E-mail:yangsen82@163.com

摘要:

XML是因特网中不同企业之间进行信息交流的一种标准的数据转换模式,为了加速数据之间的转换,企业组织通过定义公共数据文档接口来实现基于XML的应用。本文提出了一种新的将关系数据模式转换为XML模式的方法。在转换的过程中,不仅考虑关系模式的结构,而且考虑语义约束,比如内部函数依赖。该方法的输入模式是具有多值函数依赖的关系模式,输出模式是XSchema。最后,通过实验对该转换方法进行了验证。

关键词: 关系模式, 语义约束, 内部依赖

Abstract:

XML is the standard format for data exchange between interenterprise applications on the Internet. To facilitate data exchange, industry groups define public document type definitions that specify the format of the XML data to be exchanged between their applications. In this paper, we propose a new method to convert the relational data into XML. During the conversion, we consider not only the structure of relational schemas, but also semantic constraints such as inclusion dependencies during the translation, which takes input as a relational schema where multiple tables are interconnected through inclusion dependencies and converts it into an XSchema. Finally, we present the experimental results using real schemas to validate the method.

Key words: relational schemas;semantic constraints;inclusion dependencies