From 6c14964639b3910e8a9b87a203d2c525758b7afe Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Wed, 17 Jan 2024 09:40:33 +0100 Subject: [PATCH] pass URI to the graph parser so we can parse our own <> entries in the privateTypeIndex --- src/Server.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Server.php b/src/Server.php index 2d9d650..c01ffef 100644 --- a/src/Server.php +++ b/src/Server.php @@ -283,9 +283,7 @@ private function handleSparqlUpdate(Response $response, string $path, $contents) try { // Assuming this is in our native format, turtle - // @CHECKME: Does the Graph Parse here also need an URI? - $graph->parse($data, "turtle"); - // FIXME: Adding this base will allow us to parse <> entries; , $this->baseUrl . $this->basePath . $path), but that breaks the build. + $graph->parse($data, "turtle", $this->baseUrl . $path); // FIXME: Use enums from namespace Pdsinterop\Rdf\Enum\Format instead of 'turtle'? // parse query in contents