From df6cf9baa2e0f5c38a886e4365bc0fcbef8d814f Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Wed, 15 May 2024 13:30:30 +0200 Subject: [PATCH] Fix display error in category collection --- src/main/scala/util/collection/CategoryCollection.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/scala/util/collection/CategoryCollection.scala b/src/main/scala/util/collection/CategoryCollection.scala index 5f9b68c..f0cc17a 100644 --- a/src/main/scala/util/collection/CategoryCollection.scala +++ b/src/main/scala/util/collection/CategoryCollection.scala @@ -31,12 +31,13 @@ class CategoryCollection(namesToUris: Iterable[(String, String)]): lazy val categoryDumps: Map[String, Model] = namesToUris .map((name, uri) => { + val dumpUri = uri.replace("metadata.ttl", "dump.jelly") try { - (name, RDFDataMgr.loadModel(uri.replace("metadata.ttl", "dump.jelly"), JellyLanguage.JELLY)) + (name, RDFDataMgr.loadModel(dumpUri, JellyLanguage.JELLY)) } catch { case e: Exception => - println(f"Failed to load dump for category $name from $uri") + println(f"Failed to load dump for category $name from $dumpUri") throw e } })