Open trwnh opened 4 days ago
Yeah, I'm not sure what it should do here, but that behavior is poor. This code hasn't been touched probably since it was first added. Patches welcome, but the code base is difficult to work with and waiting on someone (me?) to refactor it to be easier to update.
I think it should recognize id
as an alias of @id
right? But I understand if the whole thing needs more work.
The general case is that until you process the data with the contexts you don't know what id
maps to or what maps to @id
. id
to @id
is a common convention, but not required. Visualizing the expanded form or N-Quads would be easier, but may be lower level than what people wanted to see. There's plenty of room for improved tooling in this area.
Given a document such as this for input:
The JSON-LD Playground's "Visualized" tab renders with blank nodes instead of using the actual identifiers.
Changing all 3 instances of
id
to@id
seems to fix it.