-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to declare a container as both @index and @set #269
Comments
I don’t really understand what your data is supposed to mean but couldn’t you map db1 and db2 to a URI and set the containers there? |
The dbxref object stores links to external databases from our system indexed by database identifier. I want to avoid turning dbxref into a node in its own right (presumably necessary if the keys were to be treated as URIs) as the relationship is from the item to the external database resource, something like:
(We'll probably move away from this data structure, but it doesn't seem completely unreasonable.) |
OK, I see. In that case the index-container is indeed the right thing. Unfortunately, there’s currently no way to use two containers at the same time. I’ve added this issue to the JSON-LD.next milestone so that we’ll keep this in mind for the next version of JSON-LD sometime in the future. Thanks for raising this. |
I propose taking this off of the 1.1 milestone; please 👍 or 👎 to favor/disfavor removing. |
…ion to other appropriate keywords. Addresses json-ld/json-ld.org#269 and json-ld/json-ld.org#407.
I have the following indexed data structure that I'd like to preserve during compaction:
Declaring a context with @container: @Index partly works, but I also want to preserve the array even when it has only a single member:
It would be helpful to have some way to declare a container as both @Index and @set.
The text was updated successfully, but these errors were encountered: