Skip to content

Commit

Permalink
JsonLdStreamSerializer::prepareContext(): fix the context generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed May 23, 2023
1 parent c3744fb commit d26cb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quickRdfIo/JsonLdStreamSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ private function serializeNode(iTerm $node): mixed {

private function prepareContext(iRdfNamespace $context): void {
$this->context = array_flip($context->getAll());
$this->contextJson = '"@context":' . json_encode($this->context, JSON_UNESCAPED_SLASHES) . ",";
$this->contextJson = '"@context":' . json_encode($context->getAll(), JSON_UNESCAPED_SLASHES) . ",";
}
}

0 comments on commit d26cb22

Please sign in to comment.