计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (12): 122-125.

• 数据库、信号与信息处理 • 上一篇    下一篇

关系模式到模块化的XML Schema的模型映射方法

侯 莹1,李凤岐1,牛纪桢2,姜厚云1   

  1. 1.大连理工大学 软件学院,辽宁 大连 116621
    2.大连理工大学 电信学院,辽宁 大连 116024
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-04-21 发布日期:2011-04-21

Algorithm to convert from relational schema into modularized XML schema

HOU Ying1,LI Fengqi1,NIU Jizhen2,JIANG Houyun1   

  1. 1.School of Software,Dalian University of Technology,Dalian,Liaoning 116621,China
    2.School of Electronic and Information Engineering,Dalian University of Technology,Dalian,Liaoning 116024,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-04-21 Published:2011-04-21

摘要: 基于关系模式的向量模型和XML模式树模型,提出了一种关系模式到模块化的XML Schema的模型映射方法BTT,其映射规则保持了关系模式的结构、属性以及约束信息的完整保留,自底向上的映射顺序在没有牺牲转换效率的情况下,完成了模块化的封装与重用,使得对转换后的XML Schema文档的更新操作可以在模块化内部完成,大大提高了维护效率。实验结果表明了与传统的嵌套层次的XML Schema文档相比,BTT方法转换形成的XML Schema在维护效率上有明显优势。

关键词: 关系模式, 可扩展标记语言(XML)模式, 模块化

Abstract: Based on relational schema vector model and XML schema tree model,an algorithm BTT to convert from relational schema to XML schema is proposed.BTT mapping rules preserve the integrity information of structure,properties and constraint.The conversion sequence from bottom to top confirms the modules encapsulated and reused,makes the update to XML schema can be finished in related module,greatly enhances the maintenance efficiency.The experimental results show that compared to the traditional nested XML schema,the XML schema converted by BTT has obvious advantage in the maintenance efficiency.

Key words: relation schema, Extensible Markup Language(XML) schema, modularization