计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (22): 110-113.

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

SPARQL查询的关系代数表示与转换方法

王进鹏,张亚非,苗 壮   

  1. 解放军理工大学 指挥自动化学院,南京 210007
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-08-01 发布日期:2011-08-01

Algebra representation and transformation for SPARQL query

WANG Jinpeng,ZHANG Yafei,MIAO Zhuang   

  1. Institute of Command Automation,PLA University of Science & Technology,Nanjing 210007,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-08-01 Published:2011-08-01

摘要: 为解决基于本体的数据集成系统中的查询转换问题,提出SPARQL查询的关系代数表示和转换方法。引入RDF图模式的关系代数,定义了五种基本的关系运算,给出了SPARQL查询的关系代数表示;提出了SPARQL到SQL的查询转换方法,将基于本体的SPARQL查询转换为可在关系数据库上直接执行的SQL查询,从而实现关系数据库的集成。系统实现表明,该方法能够有效地实现查询语言的转换。

关键词: 查询转换, 关系代数, 关系数据库, 数据集成

Abstract: This paper focuses on the query transforming problem in ontology-based data integration systems.An algebra-
based approach for SPARQL query representation and transformation is proposed.The relational algebra for RDF graph pattern is introduced.Five algebraic operators:UNION,DIFFERENCE,PRODUCT,SELECT and PROJECT are defined.A relational representation of SPARQL query is presented.The semantic equivalence of this relational representation is further discussed.A query transforming approach is presented to implement the query transformation from SPARQL query to SQL query plans that can be executed on relational databases.Results show that this approach can solve the query transformation problem effectively.

Key words: query transformation, relational algebra, relational database, data integration