Published April 11, 2024 | Version v0.26.0
Software Open

pySHACL

Description

Added

Added ability to specify a custom max-evaluation-depth. If you find yourself with a legitimate use case, and you are certain you need to increase this limit, and you are cetain you know what you are doing:

  • use --max-depth i argument on the commandline where i is an integer 1 to 999.
  • or use max_validation_depth=i in the validator arguments if using PySHACL as a library.
  • Fixes #224 Add a "SHACLExecutor" context to be passed down to all Shape and Constraint objects, to allow them to operate in a common mode with common configuration values, as chosen by the mechanism that starts them (eg, the Validator).
  • This will allow for further configuration of "modes of operation" for PySHACL in the future, to allow for forms of exectors other than "Validator".

Changed

Bumped Black version to 24.3.0 to mitigate CVE. Bumped Poetry and Poetry-Core version to latest-and-greatest (fixes a bunch of long-standing bugs, I highly recommend updating). cli main() no longer returns and int, it now emits sys.exit(code) and never returns.

Fixed

Fixed typing on Python 3.8 and 3.12 (PRs #192 and #223). Thanks @ajnelson-nist Fixed auto-generated validation message for sh:not when more than one sh:not is used on a constraint.

Notes

If you use PySHACL in a publication, please cite it as below.

Files

RDFLib/pySHACL-v0.26.0.zip

Files (1.6 MB)

Name Size Download all
md5:63df9d255f3c890585b2e16990341359
1.6 MB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/RDFLib/pySHACL/tree/v0.26.0 (URL)