diff --git a/CHANGELOG.md b/CHANGELOG.md index fbae553..817bba8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,20 @@ and this project adheres to [Python PEP 440 Versioning](https://www.python.org/d ## [Unreleased] - Nothing yet +## [0.30.0] - 2025-01-24 + +### Fixed +- Finalize the decoupling of `base_uri` from graph `identifier`. + - Blame the conflated naming of `publicID` in RDFLib for that confusion. +- `load_from_source` will now correctly detect and use the BaseURI of files passed in, for relative URIs. + - Fixes #281 + +### Changed +- Update to Poetry v2.0 and new pyproject.toml format. +- Removed "Black", switched to "Ruff" for formatting as well as linting. +- Switched to parsing `file:` IRIs in line with the RDF spec, and allow (base-less, or root-less) relative `file:` IRIs (as per the RDF spec). + - But "" IRIs in Turtle files are now _not_ made relative to BaseURI, because they are relative to the CWD. + ## [0.29.1] - 2024-12-16 ### Added @@ -1213,7 +1227,8 @@ just leaves the files open. Now it is up to the command-line client to close the - Initial version, limited functionality -[Unreleased]: https://github.com/RDFLib/pySHACL/compare/v0.29.1...HEAD +[Unreleased]: https://github.com/RDFLib/pySHACL/compare/v0.30.0...HEAD +[0.30.0]: https://github.com/RDFLib/pySHACL/compare/v0.29.1...v0.30.0 [0.29.1]: https://github.com/RDFLib/pySHACL/compare/v0.29.0...v0.29.1 [0.29.0]: https://github.com/RDFLib/pySHACL/compare/v0.28.1...v0.29.0 [0.28.1]: https://github.com/RDFLib/pySHACL/compare/v0.28.0...v0.28.1 diff --git a/CITATION.cff b/CITATION.cff index 49cd912..bfebe02 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,7 +8,7 @@ authors: given-names: "Nicholas" orcid: "http://orcid.org/0000-0002-8742-7730" title: "pySHACL" -version: 0.29.1 +version: 0.30.0 doi: 10.5281/zenodo.4750840 license: Apache-2.0 date-released: 2024-11-01 diff --git a/Dockerfile b/Dockerfile index e4b4fe4..240b2d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /home/pyshacl RUN addgroup -g 1000 -S pyshacl &&\ adduser --disabled-password --gecos "" --home "$(pwd)" --ingroup "pyshacl" --no-create-home --uid 1000 pyshacl WORKDIR /app -LABEL org.opencontainers.image.version="0.29.1" +LABEL org.opencontainers.image.version="0.30.0" COPY . . RUN chown -R pyshacl:pyshacl /home/pyshacl /app && chmod -R 775 /home/pyshacl /app USER pyshacl diff --git a/pyproject.toml b/pyproject.toml index cf1185e..cbbc006 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [project] name = "pyshacl" # Don't forget to change the version number in __init__.py, Dockerfile, and CITATION.cff along with this one -version = "0.29.1" +version = "0.30.0" # Ruff and Poetry both now read target-version from [project.requires-python] # The <4 is reauired for compatiblity with OWL-RL that requdires Python <4 requires-python = ">=3.9,<4" diff --git a/pyshacl/__init__.py b/pyshacl/__init__.py index af2df34..b7832f4 100644 --- a/pyshacl/__init__.py +++ b/pyshacl/__init__.py @@ -7,7 +7,7 @@ from .validator import Validator # version compliant with https://www.python.org/dev/peps/pep-0440/ -__version__ = '0.29.1' +__version__ = '0.30.0' # Don't forget to change the version number in pyproject.toml, Dockerfile, and CITATION.cff along with this one __all__ = ['validate', 'shacl_rules', 'Validator', 'RuleExpandRunner', '__version__', 'Shape', 'ShapesGraph']