Skip to content

Commit

Permalink
fix (core): When canonicalizing RDF TTL, only add source Namespaces, …
Browse files Browse the repository at this point in the history
…not entire NamespaceRepository from Context
  • Loading branch information
vorburger committed Sep 27, 2024
1 parent e965fb9 commit 2b7f151
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions java/dev/enola/rdf/io/RdfCanonicalizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 2b7f151

Please sign in to comment.