Update patterns.md #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: shacl validation | |
on: | |
push: | |
branches: | |
- develop-3.0.0 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: develop-3.0.0 | |
path: main | |
- name: Validate against SHACL shapes | |
run: | | |
pip install pyshacl | |
curl -L -o robot.jar "https://github.com/ontodev/robot/releases/latest/download/robot.jar" | |
#java -jar robot.jar --version | |
java -jar robot.jar reason --catalog main/catalog-v001.xml --reasoner elk --input main/shapes/shape1-data.ttl --output shape1-data-reasoned.ttl | |
python3 -m pyshacl -s main/shapes/shape1.ttl shape1-data-reasoned.ttl | |
java -jar robot.jar reason --catalog main/catalog-v001.xml --reasoner elk --input main/shapes/shape2-data1.ttl --output shape2-data1-reasoned.ttl | |
python3 -m pyshacl -s main/shapes/shape2.ttl shape2-data1-reasoned.ttl | |
java -jar robot.jar reason --catalog main/catalog-v001.xml --reasoner elk --input main/shapes/shape3-data.ttl --output shape3-data-reasoned.ttl | |
python3 -m pyshacl -s main/shapes/shape3.ttl shape3-data-reasoned.ttl | |
java -jar robot.jar reason --catalog main/catalog-v001.xml --reasoner elk --input main/shapes/shape5-data.ttl --output shape5-data-reasoned.ttl | |
python3 -m pyshacl -s main/shapes/shape5.ttl shape5-data-reasoned.ttl | |
java -jar robot.jar reason --catalog main/catalog-v001.xml --reasoner elk --input main/shapes/shape6-data.ttl --output shape6-data-reasoned.ttl | |
python3 -m pyshacl -s main/shapes/shape6.ttl shape6-data-reasoned.ttl | |