From 2b7f151305d384f824f94bc0919184da653aff4a Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 28 Sep 2024 01:42:11 +0200 Subject: [PATCH] fix (core): When canonicalizing RDF TTL, only add source Namespaces, not entire NamespaceRepository from Context --- java/dev/enola/rdf/io/RdfCanonicalizer.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/java/dev/enola/rdf/io/RdfCanonicalizer.java b/java/dev/enola/rdf/io/RdfCanonicalizer.java index 5ffc0031..41f41326 100644 --- a/java/dev/enola/rdf/io/RdfCanonicalizer.java +++ b/java/dev/enola/rdf/io/RdfCanonicalizer.java @@ -19,7 +19,6 @@ import com.google.common.collect.ComparisonChain; -import dev.enola.common.io.iri.namespace.NamespaceRepository; import dev.enola.common.io.resource.ReadableResource; import dev.enola.common.io.resource.ResourceProvider; import dev.enola.common.io.resource.WritableResource; @@ -69,7 +68,6 @@ public Model orderStatements(Model modelIN) { public void canonicalize(ReadableResource in, WritableResource out) { var model = rdfReaderConverter.convert(in).orElse(EMPTY_MODEL); - NamespaceRepository.CTX.list().forEach(ns -> model.setNamespace(ns.prefix(), ns.iri())); var canonicalModel = orderStatements(model); rdfWriterConverter.convertIntoOrThrow(canonicalModel, out); }