-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check alternatives to GitHub actions and pages #19
Comments
I currently have trouble with the links! sanitaertechnik link: -> not found |
solved, the problem was the missing inScheme |
You might add an automatic validation step in your workflow, @naturzukunft, to be notified about things that will hinder a proper SkoHub build. The documentation for adding it in GitHub Actions is here: https://github.com/skohub-io/shapes?tab=-ov-file#add-validation-in-a-vocabulary-repository |
@acka47 are we talking about a jena docker image by "Check with Docker" |
Ah, I found it in this terrible script ;-) Did I already say that I am not a script person :-) |
In general, it would be helpful to move the script parts into files so that they can be reused more easily. |
I don't really get what you mean. Can you please elaborate with what you mean to move the script parts into files? Here is the general idea:
How to use the shape with your vocabs. There are multiple ways:
To have all vocabularies in a github repository checked we wrote a bash script that we use in the CI pipeline. It's just a composition of the docker approach run for every curl -s https://raw.githubusercontent.com/skohub-io/shapes/main/scripts/checkForWarning.rq >> checkForWarning.rq
find . -type f -name '*.ttl' | while read file; do
# Adjust the file path to remove the './' part
adjusted_file_path=$(echo "$file" | sed 's|^./||')
echo "Processing $adjusted_file_path with Docker..."
docker run --rm -v "$(pwd)/$adjusted_file_path:/rdf/test.ttl" skohub/jena:4.6.1 shacl validate --shapes https://raw.githubusercontent.com/skohub-io/shapes/main/skohub.shacl.ttl --data /rdf/test.ttl >> result.ttl
validation_result="$(docker run --rm --mount type=bind,source=./checkForWarning.rq,target=/rdf/checkForViolation.rq --mount type=bind,source=./result.ttl,target=/rdf/result.ttl skohub/jena:4.6.1 arq --data /rdf/result.ttl --query /rdf/checkForViolation.rq)"
echo $validation_result
lines=$(echo "$validation_result" | wc -l )
# Correct validation has 4 lines of output
[[ ${lines} -eq 4 ]] || exit 1
done |
And if this batch script is in it's own file, you can also use it from gitlab ci ! However, i've added the validation now in my build.sh that i use locally. Info: i moved the gitlab project! |
Alright. Got it. Will do so, when coming to this issue. |
As usual, there are several options:
We should aim at making this as forge-agnostic as possible
The text was updated successfully, but these errors were encountered: