Skip to content

A Github action performing SHACL validation on turtle files in Github repositories

License

Notifications You must be signed in to change notification settings

sdsc-ordes/shacl-validation-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action Test

SHACL validation action

This action performs SHACL validation based on the TopQuadrant SHACL API, accepting only .ttl format as input.

Examples

Classical: file with both data and shapes

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'

Separate shapes file

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'

Advanced examples

Ensuring that a file is invalid

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.