{"title":"使用SPARQL集合语义证明查询包含求解器规范的正确性","authors":"Mirko Spasić , Milena Vujošević Janičić","doi":"10.1016/j.websem.2025.100870","DOIUrl":null,"url":null,"abstract":"<div><div>Solving the <span>sparql</span> query containment problem is of fundamental importance for the verification and optimization of <span>sparql</span> queries. With the increasing popularity of the Semantic Web and its applications, <span>sparql</span> query containment solvers face significant challenges: covering a wide range of language constructs, achieving high efficiency, and guaranteeing correctness. While language coverage and efficiency can be reliably evaluated by testing with relevant benchmarks, we need formal proof of correctness to ensure the trustworthiness of a tool.</div><div>In this paper, we prove the correctness of <span>SpeCS</span> a highly efficient state-of-the-art query containment solver that supports reasoning about queries containing all commonly used <span>sparql</span> language constructs. We outline set semantics that cover the most common subset of the <span>sparql</span> language and give precise definitions of all fundamental <span>sparql</span> concepts. We briefly discuss the procedure used by <span>SpeCS</span> for reducing the query containment problem into a formal logical framework. We prove that this procedure is both sound and complete for conjunctive queries as well as for some important classes of non-conjunctive queries (queries containing the <span>union</span> operator, the <span>optional</span> operator, and subqueries). We consider soundness and completeness in both containment and subsumption forms. We also discuss the advantages of solver development driven by correctness proofs.</div></div>","PeriodicalId":49951,"journal":{"name":"Journal of Web Semantics","volume":"87 ","pages":"Article 100870"},"PeriodicalIF":3.1000,"publicationDate":"2025-08-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Proving correctness of the query containment solver SpeCS using SPARQL set semantics\",\"authors\":\"Mirko Spasić , Milena Vujošević Janičić\",\"doi\":\"10.1016/j.websem.2025.100870\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Solving the <span>sparql</span> query containment problem is of fundamental importance for the verification and optimization of <span>sparql</span> queries. With the increasing popularity of the Semantic Web and its applications, <span>sparql</span> query containment solvers face significant challenges: covering a wide range of language constructs, achieving high efficiency, and guaranteeing correctness. While language coverage and efficiency can be reliably evaluated by testing with relevant benchmarks, we need formal proof of correctness to ensure the trustworthiness of a tool.</div><div>In this paper, we prove the correctness of <span>SpeCS</span> a highly efficient state-of-the-art query containment solver that supports reasoning about queries containing all commonly used <span>sparql</span> language constructs. We outline set semantics that cover the most common subset of the <span>sparql</span> language and give precise definitions of all fundamental <span>sparql</span> concepts. We briefly discuss the procedure used by <span>SpeCS</span> for reducing the query containment problem into a formal logical framework. We prove that this procedure is both sound and complete for conjunctive queries as well as for some important classes of non-conjunctive queries (queries containing the <span>union</span> operator, the <span>optional</span> operator, and subqueries). We consider soundness and completeness in both containment and subsumption forms. We also discuss the advantages of solver development driven by correctness proofs.</div></div>\",\"PeriodicalId\":49951,\"journal\":{\"name\":\"Journal of Web Semantics\",\"volume\":\"87 \",\"pages\":\"Article 100870\"},\"PeriodicalIF\":3.1000,\"publicationDate\":\"2025-08-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Web Semantics\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S1570826825000113\",\"RegionNum\":3,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Web Semantics","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1570826825000113","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
Proving correctness of the query containment solver SpeCS using SPARQL set semantics
Solving the sparql query containment problem is of fundamental importance for the verification and optimization of sparql queries. With the increasing popularity of the Semantic Web and its applications, sparql query containment solvers face significant challenges: covering a wide range of language constructs, achieving high efficiency, and guaranteeing correctness. While language coverage and efficiency can be reliably evaluated by testing with relevant benchmarks, we need formal proof of correctness to ensure the trustworthiness of a tool.
In this paper, we prove the correctness of SpeCS a highly efficient state-of-the-art query containment solver that supports reasoning about queries containing all commonly used sparql language constructs. We outline set semantics that cover the most common subset of the sparql language and give precise definitions of all fundamental sparql concepts. We briefly discuss the procedure used by SpeCS for reducing the query containment problem into a formal logical framework. We prove that this procedure is both sound and complete for conjunctive queries as well as for some important classes of non-conjunctive queries (queries containing the union operator, the optional operator, and subqueries). We consider soundness and completeness in both containment and subsumption forms. We also discuss the advantages of solver development driven by correctness proofs.
期刊介绍:
The Journal of Web Semantics is an interdisciplinary journal based on research and applications of various subject areas that contribute to the development of a knowledge-intensive and intelligent service Web. These areas include: knowledge technologies, ontology, agents, databases and the semantic grid, obviously disciplines like information retrieval, language technology, human-computer interaction and knowledge discovery are of major relevance as well. All aspects of the Semantic Web development are covered. The publication of large-scale experiments and their analysis is also encouraged to clearly illustrate scenarios and methods that introduce semantics into existing Web interfaces, contents and services. The journal emphasizes the publication of papers that combine theories, methods and experiments from different subject areas in order to deliver innovative semantic methods and applications.