From 38f775a48f0e3fd3cf8f4df949894b6d7b604492 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:13:27 -0400 Subject: [PATCH 01/22] Changes with folders --- file1.shapes.ttl | 5 +-- .../file2.shapes.ttl | 43 +++++++++---------- 2 files changed, 23 insertions(+), 25 deletions(-) rename file2.shapes.ttl => subfolder/file2.shapes.ttl (85%) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index d7f9c7e..207d4a2 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; @@ -27,7 +26,7 @@ file1:Equipment rdfs:subClassOf rdfs:Resource ; . file1:Location - a rdfs:Class ; + a rdfs:Class ; a sh:NodeShape ; rdfs:label "Location" ; rdfs:subClassOf rdfs:Resource ; diff --git a/file2.shapes.ttl b/subfolder/file2.shapes.ttl similarity index 85% rename from file2.shapes.ttl rename to subfolder/file2.shapes.ttl index fbf4d84..e86480e 100644 --- a/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -13,29 +13,17 @@ @prefix xsd: . file1:isPointOfShape -sh:deactivated true ; -. -file2:isPointOfShape - a sh:PropertyShape ; - sh:targetClass file1:StartingClass ; - sh:path file1:isPointOf ; - sh:or ( - [ - sh:class file1:Equipment ; - ] - [ - sh:class file1:Location ; - ] - [ - sh:class file2:SomethingElse ; - ] - ) ; + sh:deactivated true ; . a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; +. +file2:ShouldFail + a file1:RandomOtherClass ; + rdfs:label "Should fail" ; . file2:SomethingElse a rdfs:Class ; @@ -52,8 +40,19 @@ file2:StartingClass_1 rdfs:label "Starting class 1" ; file1:isPointOf file2:SomethingElse_1 ; . -file2:ShouldFail -a file1:RandomOtherClass ; -rdfs:label "Should fail" ; +file2:isPointOfShape + a sh:PropertyShape ; + sh:path file1:isPointOf ; + sh:or ( + [ + sh:class file1:Equipment ; + ] + [ + sh:class file1:Location ; + ] + [ + sh:class file2:SomethingElse ; + ] + ) ; + sh:targetClass file1:StartingClass ; . - From abd2148aff2d7878a465eebf2f650a4765464dc7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 13:14:29 +0000 Subject: [PATCH 02/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 207d4a2..12beac2 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From 4a2b21de89b8edcd8e050c643b0302d868b7a804 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:21:46 -0400 Subject: [PATCH 03/22] Test2 --- .github/workflows/main.yml | 2 +- file1.shapes.ttl | 2 +- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5920521..7cf7a96 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: - name: Run Python script on changed files run: | - IFS=' ' read -ra ADDR <<< "${{ steps.getfile.outputs.files }}" + IFS=$'\n' read -ra ADDR <<< "${{ steps.getfile.outputs.files }}" for file in "${ADDR[@]}"; do python add-base.py "$file" done diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 207d4a2..e58b838 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -13,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index e86480e..dcea778 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From aab18d2a0c2326cc734f36e33881b434999b37b2 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:26:06 -0400 Subject: [PATCH 04/22] Test3 --- file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 1b83061..ecd42a1 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index dcea778..9cda887 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From a528bee2df4dedbb718ee96788c651df06a41dd5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 13:26:40 +0000 Subject: [PATCH 05/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index ecd42a1..a858988 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From 29ca6470a2523edfedfc158ea42321dd5aae529f Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:34:03 -0400 Subject: [PATCH 06/22] Test4 --- .github/workflows/main.yml | 1 + file1.shapes.ttl | 2 +- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7cf7a96..581ee1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,7 @@ jobs: run: | IFS=$'\n' read -ra ADDR <<< "${{ steps.getfile.outputs.files }}" for file in "${ADDR[@]}"; do + echo "Processing file: $file" python add-base.py "$file" done diff --git a/file1.shapes.ttl b/file1.shapes.ttl index ecd42a1..9c1ae99 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -13,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 9cda887..37aa12a 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From 2cd2fdf08ba4abe50bfbba84cdf32fbdd6524e96 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:38:06 -0400 Subject: [PATCH 07/22] Test5 --- file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 95dfb2d..39a4b33 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 37aa12a..cc0c27c 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From ffc93965779e27362ef27594199837fde99e6101 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 13:38:57 +0000 Subject: [PATCH 08/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 39a4b33..28eb5a8 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From e65a0a8be7b3ab18d8613b8fc0160af7a4bcf10c Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:48:06 -0400 Subject: [PATCH 09/22] Test6 --- .github/workflows/main.yml | 4 ++++ file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 581ee1d..a5ba183 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,10 @@ jobs: fi echo "::set-output name=files::$files" + - name: Echo changed files + run: | + echo "Changed files: ${{ steps.getfile.outputs.files }}" + - name: Run Python script on changed files run: | IFS=$'\n' read -ra ADDR <<< "${{ steps.getfile.outputs.files }}" diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 28eb5a8..3428392 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index cc0c27c..d1643a0 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From bd32a2841086ae22295d15261c17392f9af18edc Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 13:48:49 +0000 Subject: [PATCH 10/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 3428392..9058b7d 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From efc6c589cec26c778363f28ffa5cbf2d296657d1 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:52:19 -0400 Subject: [PATCH 11/22] Test7 --- file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 9058b7d..43738b2 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index d1643a0..297f670 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From 8bae5e0ed6e1a7d3cc0105b629db701846742ae5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 13:52:54 +0000 Subject: [PATCH 12/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 43738b2..7c142a3 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From 1c1c7c1980fe326fb874ae22452059252943f7a2 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 09:53:48 -0400 Subject: [PATCH 13/22] Test8 changing only file2 --- subfolder/file2.shapes.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 297f670..21f41e7 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From b6c95af91987f437c0be86fd1b7fb0ea231686a3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 13:54:23 +0000 Subject: [PATCH 14/22] Updated .ttl files with base URI [AUTO] --- subfolder/file2.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 21f41e7..31f63c3 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -3,6 +3,7 @@ # imports: https://example/file1 # prefix: file2 +@base . @prefix dash: . @prefix file1: . @prefix file2: . From 3668fa9afae6ad5308d089ab9549cf1eea25889b Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 10:04:33 -0400 Subject: [PATCH 15/22] Test9 --- .github/workflows/main.yml | 2 +- file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5ba183..6eabc75 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,7 @@ jobs: echo "No .ttl files changed." exit 0 fi - echo "::set-output name=files::$files" + echo $files - name: Echo changed files run: | diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 7c142a3..78e0ee9 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 31f63c3..0b15073 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -3,7 +3,6 @@ # imports: https://example/file1 # prefix: file2 -@base . @prefix dash: . @prefix file1: . @prefix file2: . @@ -20,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From f0d5f74668c73d19ffacdc3d0ef747ecb11b657d Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 10:10:52 -0400 Subject: [PATCH 16/22] Test10 --- .github/workflows/main.yml | 7 ++++--- file1.shapes.ttl | 2 +- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6eabc75..f18c29a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,15 +48,16 @@ jobs: echo "No .ttl files changed." exit 0 fi - echo $files + echo $files # Debugging line to check the detected files + echo "FILES=$files" >> $GITHUB_ENV - name: Echo changed files run: | - echo "Changed files: ${{ steps.getfile.outputs.files }}" + echo "Changed files: $FILES" - name: Run Python script on changed files run: | - IFS=$'\n' read -ra ADDR <<< "${{ steps.getfile.outputs.files }}" + IFS=$'\n' read -ra ADDR <<< "$FILES" for file in "${ADDR[@]}"; do echo "Processing file: $file" python add-base.py "$file" diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 78e0ee9..cb74c8a 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -13,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 0b15073..e81f247 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From da7f36a4682505d0eefb6651a4fe533ff88357f9 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 10:15:23 -0400 Subject: [PATCH 17/22] Test11 --- .github/workflows/main.yml | 6 ++++-- file1.shapes.ttl | 2 +- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f18c29a..e459013 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,8 +49,10 @@ jobs: exit 0 fi echo $files # Debugging line to check the detected files - echo "FILES=$files" >> $GITHUB_ENV - + echo "FILES<> $GITHUB_ENV + echo "$files" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + - name: Echo changed files run: | echo "Changed files: $FILES" diff --git a/file1.shapes.ttl b/file1.shapes.ttl index cb74c8a..2462fbe 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -13,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index e81f247..031af43 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From d5186a2a230809de931f1c41f409f250dba59621 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 14:15:53 +0000 Subject: [PATCH 18/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 2462fbe..4c80453 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From 807def9319e967def361c3c60bc19d181baf0bf2 Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 10:21:17 -0400 Subject: [PATCH 19/22] Test12 --- .github/workflows/main.yml | 2 +- file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e459013..165e32a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: - name: Run Python script on changed files run: | - IFS=$'\n' read -ra ADDR <<< "$FILES" + IFS=' ' read -ra ADDR <<< "$FILES" # Split on spaces for file in "${ADDR[@]}"; do echo "Processing file: $file" python add-base.py "$file" diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 4c80453..3747b56 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 031af43..1875fa8 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From 51f9a1436de7afcdae21de95f25f789d43824150 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 14:21:49 +0000 Subject: [PATCH 20/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 3747b56..c13b5b3 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . From 426f2c84e7b1bce7c2edc00ace99d30ad978c1af Mon Sep 17 00:00:00 2001 From: Steve Ray Date: Wed, 20 Sep 2023 10:26:41 -0400 Subject: [PATCH 21/22] Test13 --- .github/workflows/main.yml | 7 ++----- file1.shapes.ttl | 3 +-- subfolder/file2.shapes.ttl | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 165e32a..a2f8b4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,15 +43,12 @@ jobs: - name: Get changed files id: getfile run: | - files=$(git diff-tree --no-commit-id --name-only -r $(git log -n 1 --pretty=format:"%H") | grep ".ttl$" || echo "") + files=$(git diff-tree --no-commit-id --name-only -r $(git log -n 1 --pretty=format:"%H") | grep ".ttl$" | tr '\n' ' ' || echo "") if [ -z "$files" ]; then echo "No .ttl files changed." exit 0 fi - echo $files # Debugging line to check the detected files - echo "FILES<> $GITHUB_ENV - echo "$files" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV + echo "FILES=$files" >> $GITHUB_ENV - name: Echo changed files run: | diff --git a/file1.shapes.ttl b/file1.shapes.ttl index c13b5b3..5f9a5f8 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 1875fa8..917c8c1 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ; From e305eb80952aee9d11b39b2d8ab7f8d139a6bc77 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Wed, 20 Sep 2023 14:27:20 +0000 Subject: [PATCH 22/22] Updated .ttl files with base URI [AUTO] --- file1.shapes.ttl | 1 + subfolder/file2.shapes.ttl | 1 + 2 files changed, 2 insertions(+) diff --git a/file1.shapes.ttl b/file1.shapes.ttl index 5f9a5f8..30cbe4b 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,6 +2,7 @@ # imports: http://datashapes.org/dash # prefix: file1 +@base . @prefix dash: . @prefix file1: . @prefix owl: . diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 917c8c1..6690837 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -3,6 +3,7 @@ # imports: https://example/file1 # prefix: file2 +@base . @prefix dash: . @prefix file1: . @prefix file2: .