|
2 | 2 |
|
3 | 3 | namespace Pdsinterop\Solid\Resources; |
4 | 4 |
|
5 | | -use EasyRdf_Exception; |
6 | | -use EasyRdf_Graph as Graph; |
| 5 | +use EasyRdf\Exception as RdfException; |
| 6 | +use EasyRdf\Graph as Graph; |
7 | 7 | use Laminas\Diactoros\ServerRequest; |
8 | 8 | use League\Flysystem\FileExistsException; |
9 | 9 | use League\Flysystem\FileNotFoundException; |
@@ -350,7 +350,7 @@ private function handleSparqlUpdate(Response $response, string $path, $contents) |
350 | 350 | $this->removeLinkFromMetaFileFor($path); |
351 | 351 | $this->sendWebsocketUpdate($path); |
352 | 352 | } |
353 | | - } catch (EasyRdf_Exception $exception) { |
| 353 | + } catch (RdfException $exception) { |
354 | 354 | $response->getBody()->write(self::ERROR_CAN_NOT_PARSE_FOR_PATCH); |
355 | 355 | $response = $response->withStatus(501); |
356 | 356 | } catch (Throwable $exception) { |
@@ -433,7 +433,7 @@ private function handleN3Update(Response $response, string $path, $contents): Re |
433 | 433 | $this->removeLinkFromMetaFileFor($path); |
434 | 434 | $this->sendWebsocketUpdate($path); |
435 | 435 | } |
436 | | - } catch (EasyRdf_Exception $exception) { |
| 436 | + } catch (RdfException $exception) { |
437 | 437 | $response->getBody()->write(self::ERROR_CAN_NOT_PARSE_FOR_PATCH); |
438 | 438 | $response = $response->withStatus(501); |
439 | 439 | } catch (Throwable $exception) { |
@@ -936,7 +936,7 @@ private function parseLinkedMetadata(string $path) |
936 | 936 |
|
937 | 937 | try { |
938 | 938 | $graph->parse($describedByContents, null, '/'.$describedByPath); |
939 | | - } catch (EasyRdf_Exception $exception) { |
| 939 | + } catch (RdfException $exception) { |
940 | 940 | // If the metadata can not be parsed, the resource should still be returned (or a 404) |
941 | 941 | // @CHECKME: Should the upstream add a message to the header or something? |
942 | 942 | return $linkMeta; |
|
0 commit comments