Skip to content

Commit

Permalink
adding condition for dcat-shapes.ttl : Update validate-shapes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
simantvermasap authored May 15, 2024
1 parent a897145 commit 6717e49
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/validate-shapes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ jobs:
if [[ "$_base_filename" =~ _initial$ ]]; then
_base_filename=${_base_filename%_initial} # Remove "_initial" suffix
fi
shape_file="$folder/shape/${_base_filename}-shape.ttl"
# Use dcat-shapes.ttl for catalog.json
if [[ "$json_file" == "catalog/example/catalog.json" ]]; then
shape_file="dcat-shapes.ttl"
else
shape_file="$folder/shape/${_base_filename}-shape.ttl"
fi
if [[ -f "$shape_file" ]]; then
echo "Validating $json_file against $shape_file"
pyshacl -df json-ld -sf turtle -s $shape_file $json_file
Expand Down

0 comments on commit 6717e49

Please sign in to comment.