-
Notifications
You must be signed in to change notification settings - Fork 23
Inline metadata escaping #40
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
Addendum: The only burden that this approach places on JSON-LD processing tools is that they need to ignore the "@@" token. |
In your example Regarding
This gets into the JSON processing model, so end-of-line is a problem. It would rather be that any value associated with the key The more I see on this, the more I dislike the notion of trying to add a comment mechanism to the JSON-LD processing model. If necessary, it can be expressed in the body of the document, where it is either discarded, if associated with an unmapped term, or transformed, which might be appropriate for |
Administrative note that this is one of four proposals coming from the closure of #32. |
The |
WG consensus was to close all documentation issues as out of scope, but to revisit in the future as potential best practice rather than syntax concerns. Further, for this issue, WG resolved that Resolutions: |
This is the first of four options that were the result of the meeting on Aug 3, 2018.
Requirement: A way to annotate JSON-LD Context with information about when and how it was generated, its intended purpose, why little bits of cleverness are there and what they are intended to do, who to complain to, etc.
Additional notes and observations:
"comments"
element in https://github.com/biolink/biolink-model/blob/master/context.jsonld and note its rather unwieldy formatting formatting. We cannot prohibit it -- we can only decide whether the solutions people arrive with are compatible with the basic specification and each other.Proposal: Specify an escape sequence (suggestion: '@@') that indicates that everything from there to the end of the line is not processed. Not only is this not processed, but formally state that JSON-LD compliant processing tools are neither required nor expected to preserve the escape sequence and whatever follows it. The annotation property exists solely to attach metadata to a particular instance of a particular bit of JSON-LD. JSON-LD users are warned that this information may (and will) disappear when undergoing any processing or transformation.
Also add a warning that the "@@" token has no special significance in JSON. A side effect of this bit is that, were one to read the example below into a JSON parser, one would loose everything except the last entry ("description: ...") which would sort of guarantee that it doesn't get out of hand.
Example use:
The text was updated successfully, but these errors were encountered: