Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear Holger,
your SHACL API tool is very nicely implemented and this PR includes a Dockerfile to make the tool even more accessible. The Dockerfile includes a multi-stage build to ensure that only a minimal Java environment is created to support Jena for the SHACL API. To find out about the minimal requirements, the Apache Jena developers provided all the information and tools needed for this task.
The current
Dockerfile
creates an image of 144Mb, making it relatively lightweight. ThisDockerfile
is linked to anentrypoint.sh
script to call eithershaclvalidate.sh
orshaclinfer.sh
with the commandsvalidate
andinfer
respectively. I modified the README to explain the usage as follows:Dockerfile Usage
The
Dockerfile
in the.docker
folder includes a minimal Java Runtime Environment for the SHACL API that clocks in at 144Mb. To build the docker image use:To use the Docker image, there are two possible commands. To run the validator:
To run rule inferencing:
Any other command after
topquadrant/shacl:1.4.2
will print the following help page:The current PR would already be a fully working Docker solution for
shacl-1.4.2
, but there could be another major improvement to this. If the container is made available on DockerHub by TopQuadrant, it would be possible to write a GitHub Action to automatically build and push an image for every new release ofshacl
.My colleagues and I from the Swiss Data Science Center - Open Research Data would be glad to further contribute as we'll be using
shacl
moving forward.