From 6717e492e7dd43e899490f6aaca9d5bf6fffe90c Mon Sep 17 00:00:00 2001 From: simantvermasap <143084974+simantvermasap@users.noreply.github.com> Date: Wed, 15 May 2024 07:30:08 +0530 Subject: [PATCH] adding condition for dcat-shapes.ttl : Update validate-shapes.yml --- .github/workflows/validate-shapes.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-shapes.yml b/.github/workflows/validate-shapes.yml index b5dd49a..adfb331 100644 --- a/.github/workflows/validate-shapes.yml +++ b/.github/workflows/validate-shapes.yml @@ -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