From b63ee5ae58ac43b3297418ef0798cc27b6b55185 Mon Sep 17 00:00:00 2001 From: Giovanni Savastano Date: Thu, 9 Jul 2026 16:27:49 +0300 Subject: [PATCH] fix(shapes): drop self-referential owl:imports from bundled SHACL templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each bundled template declared its ontology as importing itself — a no-op that can send import-resolving loaders into a redundant self-fetch. Keep the owl:Ontology declaration, drop the self-import. Data-only change; the tests that load and register these templates stay green. Fixes #10 --- api/rest/src/test/resources/shacl-templates/test-addition.ttl | 3 +-- core/src/test/resources/shacl-templates/battery_pass_shacl.ttl | 3 +-- core/src/test/resources/shacl-templates/electronics_shacl.ttl | 3 +-- core/src/test/resources/shacl-templates/vehicle_shacl.ttl | 3 +-- .../pgsql/src/test/resources/shacl-templates/test-addition.ttl | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/api/rest/src/test/resources/shacl-templates/test-addition.ttl b/api/rest/src/test/resources/shacl-templates/test-addition.ttl index f9dba8e..9a34cc3 100644 --- a/api/rest/src/test/resources/shacl-templates/test-addition.ttl +++ b/api/rest/src/test/resources/shacl-templates/test-addition.ttl @@ -5,8 +5,7 @@ @prefix bp: . @prefix rdf: . - a owl:Ontology ; - owl:imports . + a owl:Ontology . bp:BatteryPassportShape a sh:NodeShape ; diff --git a/core/src/test/resources/shacl-templates/battery_pass_shacl.ttl b/core/src/test/resources/shacl-templates/battery_pass_shacl.ttl index 4e8704f..6b21189 100644 --- a/core/src/test/resources/shacl-templates/battery_pass_shacl.ttl +++ b/core/src/test/resources/shacl-templates/battery_pass_shacl.ttl @@ -5,8 +5,7 @@ @prefix bp: . @prefix rdf: . - a owl:Ontology ; - owl:imports . + a owl:Ontology . bp:BatteryPassportShape a sh:NodeShape ; diff --git a/core/src/test/resources/shacl-templates/electronics_shacl.ttl b/core/src/test/resources/shacl-templates/electronics_shacl.ttl index 4a04e88..bf09b16 100644 --- a/core/src/test/resources/shacl-templates/electronics_shacl.ttl +++ b/core/src/test/resources/shacl-templates/electronics_shacl.ttl @@ -5,8 +5,7 @@ @prefix edpp: . @prefix rdf: . - a owl:Ontology ; - owl:imports . + a owl:Ontology . edpp:ElectronicsDPPShape a sh:NodeShape ; diff --git a/core/src/test/resources/shacl-templates/vehicle_shacl.ttl b/core/src/test/resources/shacl-templates/vehicle_shacl.ttl index f8150f0..948dc83 100644 --- a/core/src/test/resources/shacl-templates/vehicle_shacl.ttl +++ b/core/src/test/resources/shacl-templates/vehicle_shacl.ttl @@ -6,8 +6,7 @@ @prefix rdf: . - a owl:Ontology ; - owl:imports . + a owl:Ontology . vdpp:VehicleDPPShape a sh:NodeShape ; diff --git a/datastore/pgsql/src/test/resources/shacl-templates/test-addition.ttl b/datastore/pgsql/src/test/resources/shacl-templates/test-addition.ttl index f9dba8e..9a34cc3 100644 --- a/datastore/pgsql/src/test/resources/shacl-templates/test-addition.ttl +++ b/datastore/pgsql/src/test/resources/shacl-templates/test-addition.ttl @@ -5,8 +5,7 @@ @prefix bp: . @prefix rdf: . - a owl:Ontology ; - owl:imports . + a owl:Ontology . bp:BatteryPassportShape a sh:NodeShape ;