/
action.yml
33 lines (33 loc) · 1007 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'Validate SHACL'
description: 'This action will validate an RDF graph against a SHACL graph using pySHACL'
author: 'Konrad Höffner <konrad@gmx.at>'
inputs:
shacl:
description: 'The file containing the SHACL Shapes graph'
required: false
default: shacl.ttl
data:
description: 'The files containing the target data graph, separated by newlines'
required: true
inference:
description: 'Type of inferencing to run against the data graph before validating'
outputs:
violations:
description: 'Number of violations'
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v5
with:
python-version: '3'
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- run: pip install 'pyshacl<2'
shell: bash
- run: ${{ github.action_path }}/entrypoint.sh "${{ inputs.shacl }}" "${{ inputs.data }}" "${{ inputs.inference }}"
shell: bash
branding:
icon: 'check-square'
color: 'white'