<div class="csl-bib-body">
<div class="csl-entry">Ahmetaj, S., David, R., Polleres, A., & Simkus, M. (2025). A Logic Programming Approach to Repairing SHACL Constraint Violations. <i>Transactions on Graph Data and Knowledge</i>, <i>3</i>(3). https://doi.org/10.4230/TGDK.3.3.1</div>
</div>
-
dc.identifier.uri
http://hdl.handle.net/20.500.12708/225025
-
dc.description.abstract
The Shapes Constraint Language (SHACL) is a recent standard, a W3C recommendation, for validating RDF graphs against shape constraints to be checked on target nodes of a data graph. The standard also describes the notion of validation reports, which detail the results of the validation process. In case of violation of constraints, the validation report should explain the reasons for non-validation, offering guidance on how to identify or fix violations in the data graph. Since the specification left it open to SHACL processors to define such explanations, a recent work proposed the use of explanations in the style of database repairs, where a repair is a set of additions to or deletions from the data graph so that the resulting graph validates against the constraints. In this paper, we study such repairs for non-recursive SHACL, the largest fragment of SHACL that is fully defined in the specification. We propose an algorithm to compute repairs by encoding the explanation problem - using Answer Set Programming (ASP) - into a logic program, where the answer sets contain (minimal) repairs. We then study a scenario where it is not possible to simultaneously repair all the targets, which may be the case due to overall unsatisfiability or conflicting constraints. We introduce a relaxed notion of validation, which allows to validate a (maximal) subset of the targets and adapt the ASP translation to take into account this relaxation. Finally, we add support for repairing constraints which use property paths and equality of paths. Our implementation in clingo is - to the best of our knowledge - the first implementation of a repair program for SHACL.
en
dc.description.sponsorship
FWF - Österr. Wissenschaftsfonds
-
dc.description.sponsorship
FWF - Österr. Wissenschaftsfonds
-
dc.description.sponsorship
WWTF Wiener Wissenschafts-, Forschu und Technologiefonds
-
dc.language.iso
en
-
dc.publisher
Schloss Dagstuhl - Leibniz Zentrum für Informatik
-
dc.relation.ispartof
Transactions on Graph Data and Knowledge
-
dc.subject
SHACL
en
dc.subject
Shapes Constraint Language
en
dc.subject
Database Repairs
en
dc.subject
Knowledge Graphs
en
dc.subject
Semantic Web
en
dc.subject
Answer Set Programming
en
dc.title
A Logic Programming Approach to Repairing SHACL Constraint Violations
en
dc.type
Article
en
dc.type
Artikel
de
dc.identifier.url
https://doi.org/10.4230/TGDK.3.3.1
-
dc.contributor.affiliation
Vienna University of Economics and Business, Austria
-
dc.contributor.affiliation
Vienna University of Economics and Business, Austria
-
dc.relation.grantno
T 1349-N
-
dc.relation.grantno
COE 12
-
dc.relation.grantno
ICT22-011
-
dc.type.category
Original Research Article
-
tuw.container.volume
3
-
tuw.container.issue
3
-
tuw.journal.peerreviewed
true
-
tuw.peerreviewed
true
-
tuw.project.title
Grundlagen der Schlussfolgerungen in der Shape Constraint Language
-
tuw.project.title
Bilateral Artificial Intelligence
-
tuw.project.title
Decompose and Conquer: Fast Query Processing via Decomposition
-
tuw.researchTopic.id
I1
-
tuw.researchTopic.id
I4
-
tuw.researchTopic.name
Logic and Computation
-
tuw.researchTopic.name
Information Systems Engineering
-
tuw.researchTopic.value
80
-
tuw.researchTopic.value
20
-
dcterms.isPartOf.title
Transactions on Graph Data and Knowledge
-
tuw.publication.orgunit
E192-03 - Forschungsbereich Knowledge Based Systems
-
tuw.publisher.doi
10.4230/TGDK.3.3.1
-
dc.identifier.eissn
2942-7517
-
dc.description.numberOfPages
36
-
tuw.author.orcid
0000-0003-0632-0294
-
tuw.author.orcid
0000-0003-0632-0294
-
wb.sciencebranch
Informatik
-
wb.sciencebranch
Mathematik
-
wb.sciencebranch.oefos
1020
-
wb.sciencebranch.oefos
1010
-
wb.sciencebranch.value
80
-
wb.sciencebranch.value
20
-
item.openairetype
research article
-
item.openairecristype
http://purl.org/coar/resource_type/c_2df8fbb1
-
item.cerifentitytype
Publications
-
item.languageiso639-1
en
-
item.grantfulltext
restricted
-
item.fulltext
no Fulltext
-
crisitem.author.dept
E192-03 - Forschungsbereich Knowledge Based Systems
-
crisitem.author.dept
Vienna University of Economics and Business
-
crisitem.author.dept
E192-03 - Forschungsbereich Knowledge Based Systems
-
crisitem.author.dept
E192-02 - Forschungsbereich Databases and Artificial Intelligence
-
crisitem.author.orcid
0000-0003-0632-0294
-
crisitem.author.parentorg
E192 - Institut für Logic and Computation
-
crisitem.author.parentorg
E192 - Institut für Logic and Computation
-
crisitem.author.parentorg
E192 - Institut für Logic and Computation
-
crisitem.project.funder
FWF - Österr. Wissenschaftsfonds
-
crisitem.project.funder
FWF - Österr. Wissenschaftsfonds
-
crisitem.project.funder
WWTF Wiener Wissenschafts-, Forschu und Technologiefonds