You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've hit upon some surprising behaviour again with the json-ld
playground. I understand all of that is still in development, but I am
still curious if the behaviour I'm seeing is correct, or if I've found a
bug, or if I'm just doing something stupid and my input is wrong :)
In this test document senet:properties is a "@list", I would like to see it framed as a regular javascript array, so I add { "@container": "@list" } to the context, my full context now looks like this:
This does change the "senet:properties" on "senet:Game" to render as a javascript list, but the second object in the @graph suddenly has its id changed from "senet:properties" to the full url, "https://senet.org/ns#properties".
I wasn't expecting that to happen, is the behaviour correct? Is there something I need to add in the context to have this id stay compact?
@warpr (Kuno Woudt) noticed that setting a term to @container: @list prevents it from being used as an @id.
The context comes from this document snippet:
The reason is because of IRI Compaction step 2.3
This should probably only do this is value is not null, otherwise, it's perfectly reasonable to use
senet:properties
in an @id.The text was updated successfully, but these errors were encountered: