Shqiponja Ahmetaj, Timo Camillo Merkl, Reinhard Pichler
{"title":"SHACL 约束条件下的一致性查询应答","authors":"Shqiponja Ahmetaj, Timo Camillo Merkl, Reinhard Pichler","doi":"arxiv-2406.16653","DOIUrl":null,"url":null,"abstract":"The Shapes Constraint Language (SHACL) was standardized by the World Wide Web\nas a constraint language to describe and validate RDF data graphs. SHACL uses\nthe notion of shapes graph to describe a set of shape constraints paired with\ntargets, that specify which nodes of the RDF graph should satisfy which shapes.\nAn important question in practice is how to handle data graphs that do not\nvalidate the shapes graph. A solution is to tolerate the non-validation and\nfind ways to obtain meaningful and correct answers to queries despite the\nnon-validation. This is known as consistent query answering (CQA) and there is\nextensive literature on CQA in both the database and the KR setting. We study\nCQA in the context of SHACL for a fundamental fragment of the Semantic Web\nquery language SPARQL. The goal of our work is a detailed complexity analysis\nof CQA for various semantics and possible restrictions on the acceptable\nrepairs. It turns out that all considered variants of the problem are\nintractable, with complexities ranging between the first and third level of the\npolynomial hierarchy.","PeriodicalId":501024,"journal":{"name":"arXiv - CS - Computational Complexity","volume":"32 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Consistent Query Answering over SHACL Constraints\",\"authors\":\"Shqiponja Ahmetaj, Timo Camillo Merkl, Reinhard Pichler\",\"doi\":\"arxiv-2406.16653\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The Shapes Constraint Language (SHACL) was standardized by the World Wide Web\\nas a constraint language to describe and validate RDF data graphs. SHACL uses\\nthe notion of shapes graph to describe a set of shape constraints paired with\\ntargets, that specify which nodes of the RDF graph should satisfy which shapes.\\nAn important question in practice is how to handle data graphs that do not\\nvalidate the shapes graph. A solution is to tolerate the non-validation and\\nfind ways to obtain meaningful and correct answers to queries despite the\\nnon-validation. This is known as consistent query answering (CQA) and there is\\nextensive literature on CQA in both the database and the KR setting. We study\\nCQA in the context of SHACL for a fundamental fragment of the Semantic Web\\nquery language SPARQL. The goal of our work is a detailed complexity analysis\\nof CQA for various semantics and possible restrictions on the acceptable\\nrepairs. It turns out that all considered variants of the problem are\\nintractable, with complexities ranging between the first and third level of the\\npolynomial hierarchy.\",\"PeriodicalId\":501024,\"journal\":{\"name\":\"arXiv - CS - Computational Complexity\",\"volume\":\"32 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-06-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Computational Complexity\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2406.16653\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Computational Complexity","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2406.16653","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
The Shapes Constraint Language (SHACL) was standardized by the World Wide Web
as a constraint language to describe and validate RDF data graphs. SHACL uses
the notion of shapes graph to describe a set of shape constraints paired with
targets, that specify which nodes of the RDF graph should satisfy which shapes.
An important question in practice is how to handle data graphs that do not
validate the shapes graph. A solution is to tolerate the non-validation and
find ways to obtain meaningful and correct answers to queries despite the
non-validation. This is known as consistent query answering (CQA) and there is
extensive literature on CQA in both the database and the KR setting. We study
CQA in the context of SHACL for a fundamental fragment of the Semantic Web
query language SPARQL. The goal of our work is a detailed complexity analysis
of CQA for various semantics and possible restrictions on the acceptable
repairs. It turns out that all considered variants of the problem are
intractable, with complexities ranging between the first and third level of the
polynomial hierarchy.