-
Notifications
You must be signed in to change notification settings - Fork 157
precedence of @vocab for compaction too strong? #526
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
Comments
Indeed, The WG was pretty clear on this prioritization, so I don't see turning that around for 1.1. However, the scoped contexts feature of 1.1 may be useful to turn off the |
Is this using |
It compacts to |
Well, I don't think I can keep up with all the history of JSON-LD and I don't think I can be of much help here (I'm not sure communicating my dissatisfaction with this feature of the spec would be helpful), but I've reported it on jsonld.js. |
Actually, I think jsonld.js is doing the right thing. It compacts to what you were expecting. Whatever tool you were using (jsonld-java?) appears to be using
|
Does the test suite cover this use case? |
It compacts to
|
I think the root cause of the issue is that Is anyone willing to propose changing the definition of |
Well, I would say that changing |
Transfered to the WG: w3c/json-ld-api#7. |
This is related to #235: When I have the following document:
By point
3
of the spec, becausehttp://vocab.getty.edu/aaaaaaaaaat/5001065997
contains the value of@vocab
, it gets compacted asaaaaaaaaaat/5001065997
without even looking at the prefixes. I think this is not reasonable, in this casea:5001065997
would look much nicer IMO.The text was updated successfully, but these errors were encountered: