-
Notifications
You must be signed in to change notification settings - Fork 8
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
YAML-LD context and frame #44
Comments
@ioggstream asked a relevant question in #42, so let's take a simple ACID test to see how people feel about this:
Please vote with 👍 or 👎 |
If two YAML documents, one with 3 spaces and another with 4 spaces, are semantically equivalent, — why would we want this? Also, I believe the indentation size can be easily changed using an auto formatter. This is very similar to Python programming language which is also based on indentation. |
JSON-LD does not say anything about the specifics of JSON encoding, other than ordering. Particularly, the treatment of whitespace. IMO, as an RDF serialization, two documents are equivalent if they produce equivalent RDF C14N Hashes. Otherwise, getting into YAML C14N if fraught. Even JCS (JSON C14N) can result in different serializations if blank nodes are involved. |
JSON-LD says a lot about various JSON encodings of the same RDF model. Everything except the formatting. YAML-LD should take all this from JSON-LD. But YAML is all about readability, so I think it should also address formatting.
Formatting does not matter to machines, but it matters to people. |
JSON-LD frame?
Unless we want to describe a separate YAML-LD Framing algorithm, this may prove to be challenging. The JSON-LD Framing algorithm is quite complicated as it is. This gets into more general YAML-LD presentation issues from #42. IMO, we really need to either avoid such considerations within the spec, or define a single mechanism similar to the Compaction Algorithm that makes use of information in the context to perform presentation, but it seems like a violation of the separation of concerns principle. |
Sure. YAML should also address formatting, and YAML-LD should simply inherit this from YAML. |
Fixed
Let's continue this in #13
Ideally yes, and YAML-LD will just pick URLs for formatting terms. |
A YAML-LD Context defines the conversion of a YAML-LD document to RDF.
It should include:
@
(Pospone discussion on "$" and "@" #9)A YAML-LD Frame, together with the context, defines the serialization of some RDF data to YAML-LD.
It should include:
The text was updated successfully, but these errors were encountered: