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
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].”
Applications of ontologies in requirements engineering: a systematic review of the literature
Dermeval, D., Vilela, J., Bittencourt, I. I., Castro, J., Isotani, S., Brito, P., & Silva, A. (2016) · Requirements Engineering · doi:10.1007/s00766-015-0222-6 · Cited by 198
Koubarakis, M., & Kyzirakos, K. (2010) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-13486-9_29 · Cited by 183
“Evaluating a graph pattern P over a graph G is denoted by [[P ]]G and is defined as follows [15]:”
InfluentialKnowledge Graph Quality Management: a Comprehensive Survey
Xue, B., & Zou, L. (2022) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2022.3150080 · Cited by 108
Querying Datasets on the Web with High Availability
Verborgh, R., Hartig, O., De Meester, B., Haesendonck, G., De Vocht, L., Vander Sande, M., Cyganiak, R., Colpaert, P., Mannens, E., & Van de Walle, R. (2014) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-11964-9_12 · Cited by 85
Knowledge graphs: Introduction, history, and perspectives
Chaudhri, V. K., Baru, C., Chittar, N., Dong, X. L., Genesereth, M., Hendler, J., Kalyanpur, A., Lenat, D. B., Sequeda, J., Vrandečić, D., et al. (2022) · AI Magazine · doi:10.1002/aaai.12033 · Cited by 71
The Life Cycle of Knowledge in Big Language Models: A Survey
Cao, B., Lin, H., Han, X., & Sun, L. (2023) · arXiv · doi:10.48550/arxiv.2303.07616 · Cited by 18
The Life Cycle of Knowledge in Big Language Models: A Survey
Cao, B., Lin, H., Han, X., & Sun, L. (2024) · Machine Intelligence Research · doi:10.1007/s11633-023-1416-x · Cited by 18
“Structured KBs often use structural querying methods such as SPARQL (Pérez et al., 2009), e.”
MethodBridging the KB-Text Gap: Leveraging Structured Knowledge-aware Pre-training for KBQA
Dong, G., Li, R., Wang, S., Zhang, Y., Xian, Y., & Xu, W. (2023) · Proceedings of the 32nd ACM International Conference on Information and Knowledge Management · doi:10.1145/3583780.3615150 · Cited by 15
Is Agent Memory a Database? Rethinking Data Foundations for Long-Term AI Agent Memory
Orogat, A., & Mansour, E. (2026) · arXiv · doi:10.48550/arxiv.2605.26252 · Cited by 4
“Elsewhere, append-only relational and vector stores return out-dated and current values [8, 30, 38]; in-place updates destroy the evidence chain [6, 10]; temporal stores return superseded values as current [17, 35]; and property graph or RDF stores desynchronize at entity grain [1, 13, 14, 23, 33].”
Dynamic Provenance for SPARQL Update
Halpin, H., & Cheney, J. (2014) · arXiv
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.