SHACL2FOL: An FOL Toolkit for SHACL Decision Problems

Paolo Pareti
6/12/2024
4 citations
cs.AI

Official code: paolo7/SHACL2FOL (1 star, Java, Apache-2.0, last commit 2026-02-06).

Abstract

Recent studies on the Shapes Constraint Language (SHACL), a W3C specification for validating RDF graphs, rely on translating the language into first-order logic in order to provide formally-grounded solutions to the validation, containment and satisfiability decision problems. Continuing on this line of research, we introduce SHACL2FOL, the first automatic tool that (i) translates SHACL documents into FOL sentences and (ii) computes the answer to the two static analysis problems of satisfiability and containment; it also allow to test the validity of a graph with respect to a set of constraints.

Show full abstract

By integrating with existing theorem provers, such as E and Vampire, the tool computes the answer to the aforementioned decision problems and outputs the corresponding first-order logic theories in the standard TPTP format. We believe this tool can contribute to further theoretical studies of SHACL, by providing an automatic first-order logic interpretation of its semantics, while also benefiting SHACL practitioners, by supplying static analysis capabilities to help the creation and management of SHACL constraints.

View on arXivView PDF

Code Implementations(1)

paolo7/SHACL2FOLOfficial100%
Apache-2.0

SHACL2FOL: An FOL Toolkit for SHACL Decision Problems

10JavaDec 2, 20219 months agoApache-2.0

Similar Papers

Cite this paper

@article{pareti2024shaclfol,
  title  = {SHACL2FOL: An FOL Toolkit for SHACL Decision Problems},
  author = {Paolo Pareti},
  year   = {2024},
  eprint = {2406.08018},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.08018v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.08018.svg)](https://codeofpaper.com/paper/2406.08018)

Discussion