Semantics preserving SPARQL-to-SQL translation

被引:85
作者
Chebotko, Artem [1 ]
Lu, Shiyong [2 ]
Fotouhi, Farshad [2 ]
机构
[1] Univ Texas Pan Amer, Dept Comp Sci, Edinburg, TX 78539 USA
[2] Wayne State Univ, Dept Comp Sci, Detroit, MI 48202 USA
关键词
SPARQL-to-SQL translation; SPARQL semantics; SPARQL; SQL; RDF; query; RDF store; RDBMS;
D O I
10.1016/j.datak.2009.04.001
中图分类号
TP18 [人工智能理论];
学科分类号
140502 [人工智能];
摘要
Most existing RDF stores, which serve as metadata repositories on the Semantic Web, use an RDBMS as a backend to manage RDF data. This motivates us to study the problem of translating SPARQL queries into equivalent SQL queries. which further can be optimized and evaluated by the relational query engine and their results can be returned as SPARQL query solutions. The main contributions of our research are: (i) We formalize a relational algebra based semantics of SPARQL, which bridges the gap between SPARQL and SQL query languages, and prove that our semantics is equivalent to the mapping-based semantics of SPARQL: (ii) Based on this semantics, we propose the first provably semantics preserving SPARQL-to-SQL translation for SPARQL triple patterns, basic graph patterns, optional graph patterns, alternative graph patterns, and value constraints: (iii) Our translation algorithm is generic and can be directly applied to existing RDBMS-based RDF stores: and (iv) We outline a number of simplifications for the SPARQL-to-SQL translation to generate simpler and more efficient SQL queries and extend our defined semantics and translation to support the bag semantics of a SPARQL query solution. The experimental study showed that our proposed generic translation can serve as a good alternative to existing schema dependent translations in terms of efficient query evaluation and/or ensured query result correctness. (C) 2009 Elsevier B.V. All rights reserved.
引用
收藏
页码:973 / 1000
页数:28
相关论文
共 66 条
[1]
Abadi Daniel J., 2007, Proceedings of the 33rd International Conference on Very Large Data Bases, VLDB'07, P411
[2]
Agrawal R., 2001, Proceedings of the 27th International Conference on Very Large Data Bases, P149
[3]
Alexaki S., 2001, 4th International Workshop on the Web and Databases, P43
[4]
[Anonymous], 2004, W3C RECOMMENDATION
[5]
[Anonymous], 2008, SPARQL QUERY LANGUAG
[6]
[Anonymous], 2005, Digital Media Systems Laboratory HP Laboratories Bristol. HPL-2005-170, 35, 9
[7]
Proof explanation for a nonmonotonic Semantic Web rules language [J].
Antoniou, Grigoris ;
Bikakis, Antonis ;
Dimaresis, Nikos ;
Genetzakis, Manolis ;
Georgalis, Giannis ;
Governatori, Guido ;
Karouzaki, Efie ;
Kazepis, Nikolas ;
Kosmadakis, Dimitris ;
Kritsotakis, Manolis ;
Lilis, Giannis ;
Papadogiannakis, Antonis ;
Pediaditis, Panagiotis ;
Terzakis, Constantinos ;
Theodosaki, Rena ;
Zeginis, Dimitris .
DATA & KNOWLEDGE ENGINEERING, 2008, 64 (03) :662-687
[8]
Anyanwu K., 2007, P 16 INT C WORLD WID, P797, DOI DOI 10.1145/1242572.1242680
[9]
Beckett D., 2003, SWAD EUROPE DELIVERA
[10]
Berners-Lee T., 2001, The Semantic Web