Semantics and complexity of SPARQL
Open accessThe DOI matches its Crossref record; 22 of the 22 references it cites were found in a registry or an index.
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(1979) · Cited by 43,841
Abiteboul, S., Hull, R. B., & Vianu, V. (1994) · Cited by 3,461
Prud’hommeaux, E. (2008) · Medical Entomology and Zoology · Cited by 3,097
Baader, F., & Nipkow, T. (1998) · Cambridge University Press eBooks · doi:10.1017/cbo9781139172752 · Cited by 2,466
Resource Description Framework (RDF): Concepts and Abstract Syntax
Klyne, G., & Carroll, J. J. (2004) · Cited by 1,927
Optimal implementation of conjunctive queries in relational data bases
Chandra, A. K., & Merlin, P. M. (1977) · Proceedings of the ninth annual ACM symposium on Theory of computing - STOC '77 · doi:10.1145/800105.803397 · Cited by 1,224
The complexity of relational query languages (Extended Abstract)
Vardi, M. Y. (1982) · Proceedings of the fourteenth annual ACM symposium on Theory of computing - STOC '82 · doi:10.1145/800070.802186 · Cited by 1,184
Resource description framework: metadata and its applications
Candan, K. S., Liu, H., & Suvarna, R. (2001) · ACM SIGKDD Explorations Newsletter · doi:10.1145/507533.507536 · Cited by 1,067
Incomplete Information in Relational Databases
Imieliński, T., & Lipski, W. (1984) · Journal of the ACM · doi:10.1145/1634.1886 · Cited by 1,013
On the Desirability of Acyclic Database Schemes
Beeri, C., Fagin, R., Maier, D., & Yannakakis, M. (1983) · Journal of the ACM · doi:10.1145/2402.322389 · Cited by 808
Algorithms for acyclic database schemes
Yannakakis, M. (1981) · Very Large Data Bases · Cited by 786
European Semantic Web Conference 2009
Nielsen, F. Å. (2009) · Cited by 560
RQL: a declarative query language for RDF
Karvounarakis, G., Alexaki, S., Christophides, V., Plexousakis, D., & Scholl, M. (2002) · Proceedings of the 11th international conference on World Wide Web · doi:10.1145/511446.511524 · Cited by 438
Semantics and Complexity of SPARQL
Pérez, J., Arenas, M., & Gutierrez, C. (2006) · Lecture Notes in Computer Science · doi:10.1007/11926078_3 · Cited by 379
Self-citationInternationalized Resource Identifiers (IRIs)
Duerst, M., & Suignard, M. (2005) · doi:10.17487/rfc3987 · Cited by 320
Foundations of semantic web databases
Gutierrez, C., Hurtado, C., & Mendelzon, A. O. (2004) · Proceedings of the twenty-third ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems · doi:10.1145/1055558.1055573 · Cited by 281
Self-citationDatabase relations with null values
Zaniolo, C. (1984) · Journal of Computer and System Sciences · doi:10.1016/0022-0000(84)90080-1 · Cited by 263
On the representation and querying of sets of possible worlds
Abiteboul, S., Kanellakis, P., & Grahne, G. (1991) · Theoretical Computer Science · doi:10.1016/0304-3975(51)90007-2 · Cited by 250
A Comparison of RDF Query Languages
Haase, P., Broekstra, J., Eberhart, A., & Volz, R. (2004) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-30475-3_35 · Cited by 203
RDF Querying: Language Constructs and Evaluation Methods Compared
Furche, T., Linse, B., Bry, F., Plexousakis, D., & Gottlob, G. (2006) · Lecture notes in computer science · doi:10.1007/11837787_1 · Cited by 56
RAL: An Algebra for Querying RDF
Frăsincar, F., Houben, G., Vdovjak, R., & Barna, P. (2004) · World Wide Web · doi:10.1023/b:wwwj.0000015866.43076.06 · Cited by 45
Foundations of SPARQL Query OptimizationPreprint
Schmidt, M. F., Meier, M., & Lausen, G. (2008) · arXiv (Cornell University) · doi:10.48550/arxiv.0812.3788 · Cited by 18
Research works printed but not linked: 10
- 10.1007/978-3-540-88564-1_8 · doi:10.1007/978-3-540-88564-1_8
- 10.1145/223784.223847 · doi:10.1145/223784.223847
- Chen , L. , Gupta , A. , and Kurul , E . 2005. A semantic-aware RDF query algebra . In Proceedings of the International Conference on Management of Data (COMAD). Chen, L., Gupta, A., and Kurul, E. 2005. A semantic-aware RDF query algebra. In Proceedings of the International Conference on Management of Data (COMAD).
- de Bruijn , J. , Franconi , E. , and Tessaris , S . 2005. Logical reconstruction of normative RDF . In Proceedings of the OWL—Experiences and Directions Workshop (OWLED). de Bruijn, J., Franconi, E., and Tessaris, S. 2005. Logical reconstruction of normative RDF. In Proceedings of the OWL—Experiences and Directions Workshop (OWLED).
- 10.1145/244810.244812 · doi:10.1145/244810.244812
- 10.1145/382780.382783 · doi:10.1145/382780.382783
- 10.5555/2113364.2113396 · doi:10.5555/2113364.2113396
- 10.1145/1242572.1242679 · doi:10.1145/1242572.1242679
- 10.1007/978-3-540-31839-2_8 · doi:10.1007/978-3-540-31839-2_8
- 10.1007/11574620_44 · doi:10.1007/11574620_44
Cited by
A Native and Adaptive Approach for Unified Processing of Linked Streams and Linked Data
Le-Phuoc, D., Dao-Tran, M., Xavier Parreira, J., & Hauswirth, M. (2011) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-25073-6_24 · Cited by 373
Binary RDF representation for publication and exchange (HDT)
Fernández, J. D., Martínez-Prieto, M. A., Gutiérrez, C., Polleres, A., & Arias, M. (2013) · Journal of Web Semantics · doi:10.1016/j.websem.2013.01.002 · Cited by 316
C-SPARQL: A CONTINUOUS QUERY LANGUAGE FOR RDF DATA STREAMS
BARBIERI, D. F., BRAGA, D., CERI, S., VALLE, E. D., & GROSSNIKLAUS, M. (2010) · International Journal of Semantic Computing · doi:10.1142/s1793351x10000936 · Cited by 273
Triple Pattern Fragments: A low-cost knowledge graph interface for the Web
Verborgh, R., Vander Sande, M., Hartig, O., Van Herwegen, J., De Vocht, L., De Meester, B., Haesendonck, G., & Colpaert, P. (2016) · Journal of Web Semantics · doi:10.1016/j.websem.2016.03.003 · Cited by 265
Enabling Ontology-Based Access to Streaming Data Sources
Calbimonte, J.-P., Corcho, O., & Gray, A. J. G. (2010) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-17746-0_7 · Cited by 241
“[15].”
Metadata
- Authors
- Pérez, J., Arenas, M., & Gutierrez, C.
- Venue
- ACM Transactions on Database Systems
- Published
- 2009-08
- Volume
- 34
- Issue
- 3
- Pages
- 1-45
- ISSN
- 0362-5915 (ISSN-L)
- 1557-4644
- OpenAlex
- W2131785201
- Cited by
- 1,134
- References
- 22
- FWCI
- 67.95
- Type
- journal article
- Language
- en
- Open access
- green
- Funders
- Fondo Nacional de Desarrollo Científico y Tecnológico (1.07E+20)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.