-
Notifications
You must be signed in to change notification settings - Fork 7
Add example on order impact on @protected #2
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
Isn't this just the normal inheritance/overriding pattern then? Also, if the first "name" actually does get overridden (in your second example) it's value should change. 😃 |
Yes, you're right. The only reason for adding this example would be to clarify that This was an open question for me after reading the section on |
granted. But on the other hand, I'm concerned that too many examples would be counter productive, making the spec harder to read... |
Usually, test cases serve to flesh out corner cases; although not visible in the spec, they do serve a good purpose for describing such behavior. |
There may be one reason why this should be put into the BP document: the text does emphasize in §3.4 JSON array should assume that values in an array should be assumed as unordered. However, the value of |
It shouldn't be too hard to develop an isolated example showing two simple contexts interact that way. I think it's a very good idea to show it, and not just tell people about it in the spec. |
Is the desire here to feature an example with two contexts (as per @rubensworks' example above) that do and don't successfully override a definition, based on the ordering question? Is @rubensworks' example (perhaps with a different vocabulary) meet for that purpose immediately? |
This issue was discussed in a meeting.
View the transcriptissue on protectedBenjamin Young: #2 Ruben Taelman: this issue was created to clarify that for protection of terms that order is important … in the first snippet, the overriding of the term would result in a failure, but if you reverse the contexts, the failure doesn’t happen … so clarify order is important Benjamin Young: where you introduce the protection has an effect … protected in the middle of the list is different from at the end … anyone want to help on this? … dlehn did you work on this? … Or was it more dlongley? David I. Lehn: I’d have to take a look. Partly involved but not core. Ruben Taelman: I can also help Benjamin Young: that woudl be super. I can assign to you for now … thank you very much … streaming got some love, so lets look at #13 |
Following the discussion in w3c/json-ld-syntax#153, it would be good to add an example to the BP document of non-trivial
@protected
usage that does not throw an error.The following (error-throwing) example is present in the syntax spec:
The following would be relevant to add as an example that does not throw an error, even though there is a term override happening:
The text was updated successfully, but these errors were encountered: