Skip to content

Commit

Permalink
Changes for v0.19.1
Browse files Browse the repository at this point in the history
Fixed table format error when result message isn't included in result
Fixed input graph not cloned if running in advanced mode and no inferencing
bumped schema.ttl version
  • Loading branch information
ashleysommer committed Jun 30, 2022
1 parent 34137d9 commit a9f5192
Show file tree
Hide file tree
Showing 12 changed files with 325 additions and 362 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/htmlcov
/build
/_build
/hooks
/.idea
/.git
/.mypy_cache
Expand Down
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ matrix:
- env: TOX_ENV=py39
python: 3.9
name: "Python 3.9"
- env: TOX_ENV=py310
python: 3.10
name: "Python 3.10"
- env: TOX_ENV=type-checking
python: 3.7
name: "Python 3.7 Type checks"
Expand All @@ -24,6 +27,9 @@ matrix:
- env: TOX_ENV=type-checking
python: 3.9
name: "Python 3.9 Type checks"
- env: TOX_ENV=type-checking
python: 3.10
name: "Python 3.10 Type checks"
- env: TOX_ENV=lint
python: 3.7
name: "Python 3.7 Linter checks"
Expand Down
29 changes: 26 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,36 @@ and this project adheres to [Python PEP 440 Versioning](https://www.python.org/d
## [Unreleased]
### Nothing yet

## [0.19.0] - 2022-03-22
## [0.19.1] - 2022-06-30

### Note, while this is a normal 0.x release, it also acts as the v1.0 release candidate.
That means, if no glaring bugs or issues are found in this release after two weeks, this version will be re-released as
PySHACL v1.0.

### In this release:

### Fixed
- CLI Output Table formatting crashed when report graph did not contain a resultMessage
- Fixes #145
- Executing advanced-mode triples rules can sometimes skip the graph clone step, and incorrectly emits new triples directly into the input data-graph
- Discovered when investigating #148

### Changed
- Executing advanced triples rules no longer incorrectly emits new triples directly into the input data-graph
- This _may_ been seen as a breaking change, if your workflow relied on this incorrect behaviour.
- If you _really_ the rules engine to emit new triples into your input data graph, use the `inplace` validator option.
- Updated built-in `schema.ttl` file to newer version that doesn't have UTF-8 encoding issues

### Added
- Official Dockerfile is now included in the repository
- Thanks @KonradHoeffner; Fixes #135
- Published to dockerhub at [ashleysommer/pyshacl](https://hub.docker.com/repository/docker/ashleysommer/pyshacl)
- `docker pull docker.io/ashleysommer/pyshacl:latest`

## [0.19.0] - 2022-03-22

### In this release:

### Fixed
- Fixed a long-standing oversight where ShapeLoadErrors and ConstraintLoadErrors were not reported correctly when running PySHACL in CLI mode.
- Sorry about that. Thanks lots of people for reporting this over the last year. I wish I fixed it sooner.
Expand All @@ -24,7 +46,7 @@ PySHACL v1.0.
- Fixes #132, Thanks @Zezombye
- Fixed an issue where `sh:pattern` could not be applied to a Literal that was not an `xsd:string` or URI.
- Fixes #133, Thanks @nicholascar
- Fixed the outdated/incorrect reported when a PropertyShape's `sh:path` value gets an unknown path type.
- Fixed the outdated/incorrect error reported when a PropertyShape's `sh:path` value gets an unknown path type.
- Fixes #129, Thanks @edmondchuc

### Added
Expand Down Expand Up @@ -927,7 +949,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.19.0...HEAD
[Unreleased]: https://github.com/RDFLib/pySHACL/compare/v0.19.1...HEAD
[0.19.1]: https://github.com/RDFLib/pySHACL/compare/v0.19.0...v0.19.1
[0.19.0]: https://github.com/RDFLib/pySHACL/compare/v0.18.1...v0.19.0
[0.18.1]: https://github.com/RDFLib/pySHACL/compare/v0.18.0...v0.18.1
[0.18.0]: https://github.com/RDFLib/pySHACL/compare/v0.17.3...v0.18.0
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors:
given-names: "Nicholas"
orcid: "http://orcid.org/0000-0002-8742-7730"
title: "pySHACL"
version: 0.19.0
version: 0.19.1
doi: 10.5281/zenodo.4750840
license: Apache-2.0
date-released: 2022-01-13
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,12 @@ You can now run the pySHACL Command Line utility via ``pyshacl.exe``.
See above for the pySHACL command line util usage instructions.
## Docker
Pull out the official docker image from Dockerhub:
`docker pull docker.io/ashleysommer/pyshacl:latest`
After checking out the repository, you can build a Docker image with `docker build . -t pyshacl`.
You can now run pySHACL inside a container but you need to mount the data you want to validate.
Or build the image yourself, from the PySHACL repository with `docker build . -t pyshacl`.
You can now run PySHACL inside a container; but you need to mount the data you want to validate.
For example, to validate `graph.ttl` against `shacl.ttl`, run :
```bash
docker run --rm --mount type=bind,src=`pwd`,dst=/data pyshacl -s /data/shacl.ttl /data/graph.ttl
Expand Down
Loading

0 comments on commit a9f5192

Please sign in to comment.