{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,18]],"date-time":"2026-11-18T19:12:13Z","timestamp":1795029133557,"version":"4.10.2"},"reference-count":36,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2009,8,1]],"date-time":"2009-08-01T00:00:00Z","timestamp":1249084800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100002850","name":"Fondo Nacional de Desarrollo Cient\u00edfico y Tecnol\u00f3gico","doi-asserted-by":"publisher","award":["1.07E+20"],"award-info":[{"award-number":["1.07E+20"]}],"id":[{"id":"10.13039\/501100002850","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2009,8]]},"abstract":"<jats:p>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.<\/jats:p>","DOI":"10.1145\/1567274.1567278","type":"journal-article","created":{"date-parts":[[2009,9,1]],"date-time":"2009-09-01T13:52:59Z","timestamp":1251813179000},"page":"1-45","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":767,"title":["Semantics and complexity of SPARQL"],"prefix":"10.1145","volume":"34","author":[{"given":"Jorge","family":"P\u00e9rez","sequence":"first","affiliation":[{"name":"Pontificia Universidad Cat\u00f3lica de Chile, Chile"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Marcelo","family":"Arenas","sequence":"additional","affiliation":[{"name":"Pontificia Universidad Cat\u00f3lica de Chile, Chile"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Claudio","family":"Gutierrez","sequence":"additional","affiliation":[{"name":"Universidad de Chile, Chile"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2009,9,3]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley.   Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(51)90007-2"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-88564-1_8"},{"key":"e_1_2_1_4_1","volume-title":"European Semantic Web Conference.","author":"Arenas M.","unstructured":"Arenas , M. , Gutierrez , C. , Parsia , B. , P\u00e9rez , J. , Polleres , A. , and Seaborne , A . 2007. SPARQL\u2014Where are we&quest; Current state, theory and practice. Full day tutorial , European Semantic Web Conference. Arenas, M., Gutierrez, C., Parsia, B., P\u00e9rez, J., Polleres, A., and Seaborne, A. 2007. SPARQL\u2014Where are we&quest; Current state, theory and practice. Full day tutorial, European Semantic Web Conference."},{"key":"e_1_2_1_5_1","volume-title":"A SPARQL processor for Jena, version 1.3","year":"2006","unstructured":"ARQ, 2006. A SPARQL processor for Jena, version 1.3 March 2006 , Hewlett-Packard Development Company . http:\/\/jena.sourceforge.net\/ARQ. ARQ, 2006. A SPARQL processor for Jena, version 1.3 March 2006, Hewlett-Packard Development Company. http:\/\/jena.sourceforge.net\/ARQ."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2402.322389"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/223784.223847"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/800105.803397"},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the International Conference on Management of Data (COMAD).","author":"Chen L.","unstructured":"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)."},{"key":"e_1_2_1_10_1","unstructured":"Cyganiak R. 2005. A relational algebra for sparql. Tech. rep. HPL-2005-170 HP-Labs. http:\/\/www.hpl.hp.com\/techreports\/2005\/HPL-2005-170.html.  Cyganiak R. 2005. A relational algebra for sparql. Tech. rep. HPL-2005-170 HP-Labs. http:\/\/www.hpl.hp.com\/techreports\/2005\/HPL-2005-170.html."},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the OWL\u2014Experiences and Directions Workshop (OWLED).","author":"de Bruijn J.","unstructured":"de Bruijn , J. , Franconi , E. , and Tessaris , S . 2005. Logical reconstruction of normative RDF . In Proceedings of the OWL\u2014Experiences and Directions Workshop (OWLED). de Bruijn, J., Franconi, E., and Tessaris, S. 2005. Logical reconstruction of normative RDF. In Proceedings of the OWL\u2014Experiences and Directions Workshop (OWLED)."},{"key":"e_1_2_1_12_1","doi-asserted-by":"crossref","unstructured":"Durst M. and Suignard M. 2005. Rfc 3987 internationalized resource identifiers (IRIS). http:\/\/www.ietf.org\/rfc\/rfc3987.txt.  Durst M. and Suignard M. 2005. Rfc 3987 internationalized resource identifiers (IRIS). http:\/\/www.ietf.org\/rfc\/rfc3987.txt.","DOI":"10.17487\/rfc3987"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1023\/B:WWWJ.0000015866.43076.06"},{"key":"e_1_2_1_14_1","doi-asserted-by":"crossref","unstructured":"Furche T. Linse B. Bry F. Plexousakis D. and Gottlob G. 2006. RDF querying: Language constructs and evaluation methods compared. In Reasoning Web 1--52.  Furche T. Linse B. Bry F. Plexousakis D. and Gottlob G. 2006. RDF querying: Language constructs and evaluation methods compared. In Reasoning Web 1--52.","DOI":"10.1007\/11837787_1"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/244810.244812"},{"key":"e_1_2_1_16_1","unstructured":"Garey M. R. and Johnson D. S. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman.   Garey M. R. and Johnson D. S. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/382780.382783"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1055558.1055573"},{"key":"e_1_2_1_19_1","volume-title":"Proceedings of the International Semantic Web Conference (ISWC), 502--517","author":"Haase P.","unstructured":"Haase , P. , Broekstra , J. , Eberhart , A. , and Volz , R . 2004. A comparison of RDF query languages . In Proceedings of the International Semantic Web Conference (ISWC), 502--517 . Haase, P., Broekstra, J., Eberhart, A., and Volz, R. 2004. A comparison of RDF query languages. In Proceedings of the International Semantic Web Conference (ISWC), 502--517."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.5555\/2113364.2113396"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1634.1886"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/511446.511524"},{"key":"e_1_2_1_23_1","unstructured":"Klyne G. Carroll J. J. and McBride B. 2004. Resource description framework (RDF): Concepts and abstract syntax. W3C recommendation. http:\/\/www.w3.org\/TR\/rdf-concepts\/.  Klyne G. Carroll J. J. and McBride B. 2004. Resource description framework (RDF): Concepts and abstract syntax. W3C recommendation. http:\/\/www.w3.org\/TR\/rdf-concepts\/."},{"key":"e_1_2_1_24_1","unstructured":"Manola F. and Miller E. 2004. RDF primer W3C recommendation. http:\/\/www.w3.org\/TR\/rdf-concepts\/.  Manola F. and Miller E. 2004. RDF primer W3C recommendation. http:\/\/www.w3.org\/TR\/rdf-concepts\/."},{"key":"e_1_2_1_25_1","unstructured":"Marin D. 2004. A formalization of RDF (applications de la logique \u00e1 la s\u00e9mantique du Web). Tech. rep. \u00c9cole Polytechnique Universidad de Chile. Department of Computer Science Universidad de Chile TR\/DCC-2006-8.  Marin D. 2004. A formalization of RDF (applications de la logique \u00e1 la s\u00e9mantique du Web). Tech. rep. \u00c9cole Polytechnique Universidad de Chile. Department of Computer Science Universidad de Chile TR\/DCC-2006-8."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/11926078_3"},{"key":"e_1_2_1_27_1","unstructured":"P\u00e9rez J. Arenas M. and Gutierrez C. 2006b. Semantics of SPARQL. Tech. rep. Universidad de Chile. Department of Computer Science Universidad de Chile TR\/DCC-2006-17.  P\u00e9rez J. Arenas M. and Gutierrez C. 2006b. Semantics of SPARQL. Tech. rep. Universidad de Chile. Department of Computer Science Universidad de Chile TR\/DCC-2006-17."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/1242572.1242679"},{"key":"e_1_2_1_29_1","unstructured":"Prud'hommeaux E. and Seaborne A. 2008. SPARQL query language for RDF. W3C recommendation. http:\/\/www.w3.org\/TR\/rdf-sparql-query\/.  Prud'hommeaux E. and Seaborne A. 2008. SPARQL query language for RDF. W3C recommendation. http:\/\/www.w3.org\/TR\/rdf-sparql-query\/."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-31839-2_8"},{"key":"e_1_2_1_31_1","unstructured":"Schmidt M. Meier M. and Lausen G. 2008. Foundations of SPARQL query optimization. http:\/\/arxiv.org\/abs\/0812.3788.  Schmidt M. Meier M. and Lausen G. 2008. Foundations of SPARQL query optimization. http:\/\/arxiv.org\/abs\/0812.3788."},{"key":"e_1_2_1_32_1","unstructured":"Seaborne A. 2006. Personal communication.  Seaborne A. 2006. Personal communication."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1007\/11574620_44"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/800070.802186"},{"key":"e_1_2_1_35_1","volume-title":"Proceedings of the International Conference on Very Large Data Bases (VLDB), 82--94","author":"Yannakakis M.","year":"1981","unstructured":"Yannakakis , M. 1981 . Algorithms for acyclic database schemes . In Proceedings of the International Conference on Very Large Data Bases (VLDB), 82--94 . Yannakakis, M. 1981. Algorithms for acyclic database schemes. In Proceedings of the International Conference on Very Large Data Bases (VLDB), 82--94."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(84)90080-1"}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1567274.1567278","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1567274.1567278","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T16:22:31Z","timestamp":1750263751000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1567274.1567278"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2009,8]]},"references-count":36,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2009,8]]}},"alternative-id":["10.1145\/1567274.1567278"],"URL":"https:\/\/doi.org\/10.1145\/1567274.1567278","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"value":"0362-5915","type":"print"},{"value":"1557-4644","type":"electronic"}],"subject":[],"published":{"date-parts":[[2009,8]]},"assertion":[{"value":"2008-04-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-06-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-09-03","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}