Solving the SPARQL query containment problem with SpeCS

IF 2.1 3区 计算机科学 Q3 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE
Mirko Spasić , Milena Vujošević Janičić
{"title":"Solving the SPARQL query containment problem with SpeCS","authors":"Mirko Spasić ,&nbsp;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}
引用次数: 1

Abstract

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.

使用spec解决SPARQL查询包含问题
查询包含问题是一个基本的计算机科学问题,最初是为关系查询定义的。随着sparql查询语言的日益流行,它在这个新的环境中变得越来越重要:可靠高效的sparql查询包含求解器可能在查询的静态分析中具有各种应用,特别是在查询优化和重构领域。在本文中,我们提出了一种新的方法来解决sparql中的查询包含问题。该方法基于将查询包含问题简化为一阶逻辑中的可满足性问题。它涵盖了广泛的sparql语言结构,包括联合查询、空白节点、投影、子查询、子句from、filter、optional、graph等。它还涵盖了rdf模式蕴涵机制下的包容,并且可以处理包容关系。我们描述了该方法的实现,一个开源求解器SpeCS,以及它在两个相关的基准测试,查询包含基准测试和SQCFramework上的全面实验评估。副作用是,SpeCS在两个基准测试中都发现了不正确的测试用例,并对其进行了手动检查、确认和修复,从而产生了更好、更可靠的基准测试。评估还表明,SpeCS是高效的,与最先进的求解器相比,它在更短的时间内给出了更精确的结果。此外,SpeCS在支持的语言结构中覆盖率最高。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Web Semantics
Journal of Web Semantics 工程技术-计算机:人工智能
CiteScore
6.20
自引率
12.00%
发文量
22
审稿时长
14.6 weeks
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信