From 65197cde7d66138d2ab3cbfd1c810025edb63ce7 Mon Sep 17 00:00:00 2001 From: Raitis Veinbahs Date: Thu, 31 Oct 2024 12:23:56 +0200 Subject: [PATCH] fix: Fix reset triplestore content endpoint (DEV-2380) (#3391) --- .../webapi/store/triplestore/impl/TriplestoreServiceLive.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala b/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala index 950120341c..15fb4f5001 100644 --- a/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala +++ b/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala @@ -249,6 +249,7 @@ case class TriplestoreServiceLive( .as(rdfDataObject.name) rdfContents <- ZIO .readFile(Paths.get("..", rdfDataObject.path)) + .orElse(ZIO.readFile(Paths.get(rdfDataObject.path))) .orElse(ZIO.attemptBlocking(Source.fromResource(rdfDataObject.path).mkString)) request = authenticatedRequest .post(targetHostUri.addPath(paths.data).addParam("graph", graphName))