From c37a608d2a651c98042c9e248378768f1079cdaa Mon Sep 17 00:00:00 2001 From: Jacobus Geluk Date: Wed, 18 Feb 2026 17:49:58 +0000 Subject: [PATCH] fix(spec-gen): prevent SHACL shape labels from leaking into spec Add RDFS.label to IGNORED_NODE_SHAPE_PREDICATES so that shape labels (ending in " shape") no longer overwrite OWL class labels in the generated specification. Also remove a stale merge conflict marker in main.py. Resolves: DPROD-18, #79 Co-Authored-By: Claude Opus 4.6 --- spec-generator/globals.py | 1 + spec-generator/main.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-generator/globals.py b/spec-generator/globals.py index 030da5b..ed83677 100644 --- a/spec-generator/globals.py +++ b/spec-generator/globals.py @@ -13,6 +13,7 @@ IGNORED_NODE_SHAPE_PREDICATES = ( RDF.type, + RDFS.label, RDFS.isDefinedBy, SKOS.altLabel, SKOS.changeNote, diff --git a/spec-generator/main.py b/spec-generator/main.py index 806335f..21757b3 100644 --- a/spec-generator/main.py +++ b/spec-generator/main.py @@ -64,7 +64,6 @@ def main(): g_shapes = load_dprod_shapes() jsonld_context_ontology = { -<<<<<<< HEAD "@version": 1.1, "dprod": ontology_namespace_iri, "xsd": str(XSD),