solid-contrib/solid-crud-tests

Blank nodes are incorrectly replaced

Closed this issue · 0 comments

This line (and others like it) incorrectly replace blank nodes to _:g_Lxxxx.
https://github.com/solid/solid-crud-tests/blob/f8ed1d4b67731d53e5dcfe318e2a4d8f0538ebf5/test/surface/conneg.test.ts#L232

From https://www.w3.org/TR/turtle/:
RDF blank nodes in Turtle are expressed as _: followed by a blank node label which is a series of name characters.

This means that the replacement blank node should also strip the g_L part, in case the server on the other side is using a different format for blank nodes (ie: the community server has _:df_451_0 as the format, which doesn't get replaced properly.