【24h】

An XML-to-RDB Independent Translating XQuery to SQL

机译:从XML到RDB的独立XQuery到SQL的转换

获取原文
获取原文并翻译 | 示例

摘要

XML is fast emerging as the dominant standard for representing data in Internet, so there are increasing needs to efficiently query it. One potential path to this goal is using relational database as bottom storage system for XML data by translating XML into relational database. There are many algorithms for mapping XML Schema to relational schema, while translating XQuery to SQL received less attention. Even the few exiting XQuery-to-SQL methods all depend on the XML-To-RDB mapping algorithms. But in the real applications, an independent method is needed because people can't ensure that the two translating steps come from the same industry projects thus conflicts can't be avoided. Aiming at this problem, we propose an XQuery-to-SQL translating method that is independent on any mapping algorithm from XML to RDB. Our main ideas are as follows: We found a four-tiers structure to realize XQuery-to-SQL. The first tier gets input XQuery from user interface and equivalently simplify it to one of forms that is suit for translation to SQL. The second tier defines a virtual general relational schema and translates simplified XQuery to SQL on it. The third tier translates SQL on virtual general relational schema to SQL on real storage relational schema by constructing a view of it. The fourth tier optimize the created SQL by reduce joins and group the result tuple. Our method has several advantages. First, it separates XQuery-to-SQL method from XML-to-RDB algorithm. Second, it improves the XQuery-to-SQL algorithm by optimizing.
机译:XML迅速成为表示Internet上数据的主要标准,因此对有效查询数据的需求不断增长。达到此目标的一种可能途径是将关系数据库用作XML数据的底层存储系统,方法是将XML转换为关系数据库。有很多算法可以将XML Schema映射到关系模式,而将XQuery转换为SQL却很少受到关注。甚至很少有现有的XQuery-to-SQL方法都依赖于XML-To-RDB映射算法。但是在实际应用中,需要一种独立的方法,因为人们无法确保两个翻译步骤都来自同一行业项目,因此无法避免冲突。针对此问题,我们提出了一种XQuery-to-SQL转换方法,该方法独立于从XML到RDB的任何映射算法。我们的主要思想如下:我们发现了一个四层结构来实现XQuery-to-SQL。第一层从用户界面获取输入XQuery,并将其等效地简化为适合转换为SQL的形式之一。第二层定义了虚拟的通用关系架构,并将简化的XQuery转换为基于它的SQL。第三层通过构造视图将虚拟通用关系模式上的SQL转换为实际存储关系模式上的SQL。第四层通过减少联接并对结果元组进行分组来优化创建的SQL。我们的方法有几个优点。首先,它将XQuery-to-SQL方法与XML-to-RDB算法分开。其次,它通过优化改进了XQuery-to-SQL算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号