Back to Search Start Over

Semantics and complexity of SPARQL

Authors :
Perez, Jorge
Arenas, Marcelo
Gutierrez, Claudio
Source :
ACM Transactions on Database Systems. Sept, 2009, Vol. 34 Issue 3, p16, 45 p.
Publication Year :
2009

Abstract

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. Categories and Subject Descriptors: H.2.3 [Database Management]: Languages--Query languages General Terms: Algorithms, Languages, Performance, Theory Additional Key Words and Phrases: Complexity, query language, RDF, semantic Web, SPARQL

Details

Language :
English
ISSN :
03625915
Volume :
34
Issue :
3
Database :
Gale General OneFile
Journal :
ACM Transactions on Database Systems
Publication Type :
Academic Journal
Accession number :
edsgcl.208630308