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