{"title":"使用spec解决SPARQL查询包含问题","authors":"Mirko Spasić , Milena Vujošević Janičić","doi":"10.1016/j.websem.2022.100770","DOIUrl":null,"url":null,"abstract":"<div><p><span>The query containment problem is a fundamental computer science problem which was originally defined for relational queries. With the growing popularity of the </span><span>sparql</span> query language, it became relevant and important in this new context: reliable and efficient <span>sparql</span><span><span> query containment solvers may have various applications within static analysis of queries, especially in the area of </span>query optimizations and refactoring. In this paper, we present a new approach for solving the query containment problem in </span><span>sparql</span><span>. The approach is based on reducing the query containment problem to the satisfiability problem in first order logic. It covers a wide range of the </span><span>sparql</span><span> language constructs, including union of conjunctive queries, blank nodes, projections, subqueries, clauses </span><span>from</span>, <span>filter</span>, <span>optional</span>, <span>graph</span>, etc. It also covers containment under <span>rdf</span><span> schema entailment regime, and it can deal with the subsumption relation. We describe an implementation of the approach, an open source solver </span><span>SpeCS</span> and its thorough experimental evaluation on two relevant benchmarks, <em>Query Containment Benchmark</em> and <em>SQCFramework</em>. As a side result, <span>SpeCS</span> identified incorrect test cases within both benchmarks, which were manually checked, confirmed and fixed, resulting in better and more reliable benchmarks. The evaluation also shows that <span>SpeCS</span> is highly efficient and that compared to the state-of-the-art solvers, it gives more precise results in a shorter amount of time. In addition, <span>SpeCS</span> has the highest coverage of the supported language constructs.</p></div>","PeriodicalId":49951,"journal":{"name":"Journal of Web Semantics","volume":"76 ","pages":"Article 100770"},"PeriodicalIF":2.1000,"publicationDate":"2023-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Solving the SPARQL query containment problem with SpeCS\",\"authors\":\"Mirko Spasić , Milena Vujošević Janičić\",\"doi\":\"10.1016/j.websem.2022.100770\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p><span>The query containment problem is a fundamental computer science problem which was originally defined for relational queries. With the growing popularity of the </span><span>sparql</span> query language, it became relevant and important in this new context: reliable and efficient <span>sparql</span><span><span> query containment solvers may have various applications within static analysis of queries, especially in the area of </span>query optimizations and refactoring. In this paper, we present a new approach for solving the query containment problem in </span><span>sparql</span><span>. The approach is based on reducing the query containment problem to the satisfiability problem in first order logic. It covers a wide range of the </span><span>sparql</span><span> language constructs, including union of conjunctive queries, blank nodes, projections, subqueries, clauses </span><span>from</span>, <span>filter</span>, <span>optional</span>, <span>graph</span>, etc. It also covers containment under <span>rdf</span><span> schema entailment regime, and it can deal with the subsumption relation. We describe an implementation of the approach, an open source solver </span><span>SpeCS</span> and its thorough experimental evaluation on two relevant benchmarks, <em>Query Containment Benchmark</em> and <em>SQCFramework</em>. As a side result, <span>SpeCS</span> identified incorrect test cases within both benchmarks, which were manually checked, confirmed and fixed, resulting in better and more reliable benchmarks. The evaluation also shows that <span>SpeCS</span> is highly efficient and that compared to the state-of-the-art solvers, it gives more precise results in a shorter amount of time. In addition, <span>SpeCS</span> has the highest coverage of the supported language constructs.</p></div>\",\"PeriodicalId\":49951,\"journal\":{\"name\":\"Journal of Web Semantics\",\"volume\":\"76 \",\"pages\":\"Article 100770\"},\"PeriodicalIF\":2.1000,\"publicationDate\":\"2023-04-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Web Semantics\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S1570826822000543\",\"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/S1570826822000543","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
Solving the SPARQL query containment problem with SpeCS
The query containment problem is a fundamental computer science problem which was originally defined for relational queries. With the growing popularity of the sparql query language, it became relevant and important in this new context: reliable and efficient sparql query containment solvers may have various applications within static analysis of queries, especially in the area of query optimizations and refactoring. In this paper, we present a new approach for solving the query containment problem in sparql. The approach is based on reducing the query containment problem to the satisfiability problem in first order logic. It covers a wide range of the sparql language constructs, including union of conjunctive queries, blank nodes, projections, subqueries, clauses from, filter, optional, graph, etc. It also covers containment under rdf schema entailment regime, and it can deal with the subsumption relation. We describe an implementation of the approach, an open source solver SpeCS and its thorough experimental evaluation on two relevant benchmarks, Query Containment Benchmark and SQCFramework. As a side result, SpeCS identified incorrect test cases within both benchmarks, which were manually checked, confirmed and fixed, resulting in better and more reliable benchmarks. The evaluation also shows that SpeCS is highly efficient and that compared to the state-of-the-art solvers, it gives more precise results in a shorter amount of time. In addition, SpeCS has the highest coverage of the supported language constructs.
期刊介绍:
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.