Skip to content

Commit

Permalink
Fix display error in category collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed May 15, 2024
1 parent 2b9a3e2 commit df6cf9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/util/collection/CategoryCollection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
Expand Down

0 comments on commit df6cf9b

Please sign in to comment.