Semantics and Complexity of SPARQL

被引:388
作者
Perez, Jorge [1 ]
Arenas, Marcelo [1 ]
Gutierrez, Claudio [2 ]
机构
[1] Pontificia Univ Catolica Chile, Dept Comp Sci, Santiago, Chile
[2] Univ Chile, Dept Comp Sci, Santiago, Chile
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 2009年 / 34卷 / 03期
关键词
Algorithms; Languages; Performance; Theory; Complexity; query language; RDF; semantic Web; SPARQL;
D O I
10.1145/1567274.1567278
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
SPARQL is the standard language for querying RDF data. In this article, we address systematically the formal study of the database aspects of SPARQL, concentrating in its graph pattern matching facility. We provide a compositional semantics for the core part of SPARQL, and study the complexity of the evaluation of several fragments of the language. Among other complexity results, we show that the evaluation of general SPARQL patterns is PSPACE-complete. We identify a large class of SPARQL patterns, defined by imposing a simple and natural syntactic restriction, where the query evaluation problem can be solved more efficiently. This restriction gives rise to the class of well-designed patterns. We show that the evaluation problem is coNP-complete for well-designed patterns. Moreover, we provide several rewriting rules for well-designed patterns whose application may have a considerable impact in the cost of evaluating SPARQL queries.
引用
收藏
页数:45
相关论文
共 36 条
[1]   ON THE REPRESENTATION AND QUERYING OF SETS OF POSSIBLE WORLDS [J].
ABITEBOUL, S ;
KANELLAKIS, P ;
GRAHNE, G .
THEORETICAL COMPUTER SCIENCE, 1991, 78 (01) :159-187
[2]  
Abiteboul S., 1995, Foundations of databases, V8
[3]  
Angles R, 2008, LECT NOTES COMPUT SC, V5318, P114, DOI 10.1007/978-3-540-88564-1_8
[4]  
[Anonymous], 2008, W3C RECOMMENDATION
[5]  
[Anonymous], 2005, Digital Media Systems Laboratory HP Laboratories Bristol. HPL-2005-170, 35, 9
[6]  
ARENAS M, 2007, EUR SEM WEB C
[7]  
*ARQ, 2006, SPARQL PROC JEN VERS
[8]   ON THE DESIRABILITY OF ACYCLIC DATABASE SCHEMES [J].
BEERI, C ;
FAGIN, R ;
MAIER, D ;
YANNAKAKIS, M .
JOURNAL OF THE ACM, 1983, 30 (03) :479-513
[9]  
BHARGAVA G, 1995, P ACM SIGMOD INT C M, P304
[10]  
Chandra A.K., 1977, P 9 ANN ACM S THEORY, P77, DOI DOI 10.1145/800105.803397