Skip to content

Commit b2100dc

Browse files
committed
update easyrdf constructors
1 parent 1686ca7 commit b2100dc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Server.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Pdsinterop\Solid\Resources;
44

5-
use EasyRdf_Exception;
6-
use EasyRdf_Graph as Graph;
5+
use EasyRdf\Exception as RdfException;
6+
use EasyRdf\Graph as Graph;
77
use Laminas\Diactoros\ServerRequest;
88
use League\Flysystem\FileExistsException;
99
use League\Flysystem\FileNotFoundException;
@@ -350,7 +350,7 @@ private function handleSparqlUpdate(Response $response, string $path, $contents)
350350
$this->removeLinkFromMetaFileFor($path);
351351
$this->sendWebsocketUpdate($path);
352352
}
353-
} catch (EasyRdf_Exception $exception) {
353+
} catch (RdfException $exception) {
354354
$response->getBody()->write(self::ERROR_CAN_NOT_PARSE_FOR_PATCH);
355355
$response = $response->withStatus(501);
356356
} catch (Throwable $exception) {
@@ -433,7 +433,7 @@ private function handleN3Update(Response $response, string $path, $contents): Re
433433
$this->removeLinkFromMetaFileFor($path);
434434
$this->sendWebsocketUpdate($path);
435435
}
436-
} catch (EasyRdf_Exception $exception) {
436+
} catch (RdfException $exception) {
437437
$response->getBody()->write(self::ERROR_CAN_NOT_PARSE_FOR_PATCH);
438438
$response = $response->withStatus(501);
439439
} catch (Throwable $exception) {
@@ -936,7 +936,7 @@ private function parseLinkedMetadata(string $path)
936936

937937
try {
938938
$graph->parse($describedByContents, null, '/'.$describedByPath);
939-
} catch (EasyRdf_Exception $exception) {
939+
} catch (RdfException $exception) {
940940
// If the metadata can not be parsed, the resource should still be returned (or a 404)
941941
// @CHECKME: Should the upstream add a message to the header or something?
942942
return $linkMeta;

0 commit comments

Comments
 (0)