Skip to content

Commit

Permalink
pass URI to the graph parser so we can parse our own <> entries in th…
Browse files Browse the repository at this point in the history
…e privateTypeIndex
  • Loading branch information
ylebre committed Jan 17, 2024
1 parent 9d02fe0 commit 6c14964
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c14964

Please sign in to comment.