This action performs SHACL validation based on the TopQuadrant SHACL API, accepting only .ttl
format as input.
You have a .ttl
file in your repository containing both data and shapes.
uses: sdsc-ordes/shacl-validation-action@v1.0.1
with:
validation-data: 'data.ttl'
You have two .ttl
files in your repository: one with data and one with shapes.
uses: sdsc-ordes/shacl-validation-action@v1.0.1
with:
validation-data: 'data.ttl'
validation-shapes: 'shapes.ttl'
You have a .ttl
file that must not pass validation and you would like the action to check this without failing.
name: invalid-data
uses: sdsc-ordes/shacl-validation-action@v1.0.1
continue-on-error: true
with:
validation-data: 'invalid_data.ttl'
In next steps you should add the following:
- run: echo "Invalid data was indeed invalid"
if: job.steps.invalid-data.status == failure()
- run: exit 1
if: job.steps.invalid-data.status == success()
The action will fail if the invalid data passes checks and will succeed if invalid data doesn't pass checks.