From 57a9f8aac1c5c0af1788b96aba85bb8590b574c7 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Sat, 20 Apr 2024 12:45:35 +0200 Subject: [PATCH 1/4] Made it non-fatal if generating inferred ontology fails --- .github/scripts/makeversions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/scripts/makeversions.sh b/.github/scripts/makeversions.sh index ee336039..83a5fa70 100755 --- a/.github/scripts/makeversions.sh +++ b/.github/scripts/makeversions.sh @@ -93,7 +93,8 @@ while read version name; do "$src" "$d/emmo.owl" fi - # Generate inferred ontology + # Generate inferred ontology (may fail) + set +e if $remake || [ ! -f "$d/emmo-inferred.ttl" ]; then echo "Generate inferred ontology" #ontoconvert -i HermiT -wsa "$d/emmo.ttl" "$d/emmo-inferred.ttl" @@ -102,6 +103,7 @@ while read version name; do if $remake || [ ! -f "$d/emmo-inferred.owl" ]; then ontoconvert -w "$d/emmo-inferred.ttl" "$d/emmo-inferred.owl" fi + set -e # Generate renamed ontology #if $remake || [ ! -f "$d/emmo-renamed.owl" ]; then From e33018d3b59dad295bdd0f99801ead28332e91dd Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Sat, 20 Apr 2024 13:04:53 +0200 Subject: [PATCH 2/4] Chemistry also depends on perceptual (needs Representation). --- .github/scripts/makeversions.sh | 6 ++---- disciplines/chemistry.ttl | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/scripts/makeversions.sh b/.github/scripts/makeversions.sh index 83a5fa70..628bf569 100755 --- a/.github/scripts/makeversions.sh +++ b/.github/scripts/makeversions.sh @@ -94,16 +94,14 @@ while read version name; do fi # Generate inferred ontology (may fail) - set +e if $remake || [ ! -f "$d/emmo-inferred.ttl" ]; then echo "Generate inferred ontology" #ontoconvert -i HermiT -wsa "$d/emmo.ttl" "$d/emmo-inferred.ttl" - ontoconvert -w -i HermiT "$d/emmo.ttl" "$d/emmo-inferred.ttl" + ontoconvert -w -i HermiT "$d/emmo.ttl" "$d/emmo-inferred.ttl" || true fi if $remake || [ ! -f "$d/emmo-inferred.owl" ]; then - ontoconvert -w "$d/emmo-inferred.ttl" "$d/emmo-inferred.owl" + ontoconvert -w "$d/emmo-inferred.ttl" "$d/emmo-inferred.owl" || true fi - set -e # Generate renamed ontology #if $remake || [ ! -f "$d/emmo-renamed.owl" ]; then diff --git a/disciplines/chemistry.ttl b/disciplines/chemistry.ttl index 48eb3ebd..b825e37a 100644 --- a/disciplines/chemistry.ttl +++ b/disciplines/chemistry.ttl @@ -10,6 +10,7 @@ rdf:type owl:Ontology ; owl:versionIRI ; + owl:imports , owl:imports ; dcterms:abstract "The chemistry module populates the physicalistic perspective with materials subclasses categorised according to modern applied chemistry."@en ; dcterms:contributor "Access, DE" , From 1f04ad605a42620298d019ba8ec4081e4b995001 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Sat, 20 Apr 2024 13:07:09 +0200 Subject: [PATCH 3/4] Perceptual is now under disciplines --- disciplines/chemistry.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disciplines/chemistry.ttl b/disciplines/chemistry.ttl index b825e37a..9dc71bcd 100644 --- a/disciplines/chemistry.ttl +++ b/disciplines/chemistry.ttl @@ -10,7 +10,7 @@ rdf:type owl:Ontology ; owl:versionIRI ; - owl:imports , + owl:imports , owl:imports ; dcterms:abstract "The chemistry module populates the physicalistic perspective with materials subclasses categorised according to modern applied chemistry."@en ; dcterms:contributor "Access, DE" , From cf02c7651c658e0e00445dd949eeb50409c9026d Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Sat, 20 Apr 2024 13:29:01 +0200 Subject: [PATCH 4/4] Fix typo in chemistry module --- disciplines/catalog-v001.xml | 6 +++--- disciplines/chemistry.ttl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disciplines/catalog-v001.xml b/disciplines/catalog-v001.xml index 9c50be7c..8999fea8 100644 --- a/disciplines/catalog-v001.xml +++ b/disciplines/catalog-v001.xml @@ -12,7 +12,7 @@ - + @@ -29,8 +29,8 @@ - - + + diff --git a/disciplines/chemistry.ttl b/disciplines/chemistry.ttl index 9dc71bcd..e1f8cca0 100644 --- a/disciplines/chemistry.ttl +++ b/disciplines/chemistry.ttl @@ -11,7 +11,7 @@ rdf:type owl:Ontology ; owl:versionIRI ; owl:imports , - owl:imports ; + ; dcterms:abstract "The chemistry module populates the physicalistic perspective with materials subclasses categorised according to modern applied chemistry."@en ; dcterms:contributor "Access, DE" , "Fraunhofer IWM, DE" ,