Skip to content
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

Canonical form - avoid redundancy #11

Closed
pchampin opened this issue Mar 9, 2023 · 4 comments
Closed

Canonical form - avoid redundancy #11

pchampin opened this issue Mar 9, 2023 · 4 comments
Labels
propose closing Proposed for closing

Comments

@pchampin
Copy link
Contributor

pchampin commented Mar 9, 2023

Just an idea:
if w3c/rdf-n-quads#17 is merged into N-Quads,
the "Canonical form" section of N-Triples should probably simply refer to N-Quads and state "canonical N-Triples is the corresponding subset of canonical N-Quads" -- possibly copy-pasting the relevant text in a non-normative subsection.

We don't want to have duplicate notmative text that may eventually diverge out-of-sync.

@gkellogg
Copy link
Member

gkellogg commented Mar 9, 2023

Yes, that seems reasonable. We just need to preserve any anchors that might be used in external references.

The N-Quads section on canonicalization does not directly reference the N-Triples section.

@gkellogg
Copy link
Member

Thinking again, we have a dependency chain, in that N-Quads is based on N-Triples and many aspects of N-Quads are defined in terms of N-Triples. Inverting the dependency to have N-Triples depend on N-Quads for canonicalization may not be worth it, given that the text is constrained to a single section.

@pchampin
Copy link
Contributor Author

Makes sense.
An alternative way may be to have a normative subsection describing how to extend canonical N-triples into canonical N-quads, then a non-normative section copying and extending the text from N-triples, just in order to have a self-sufficient description.

@domel
Copy link
Contributor

domel commented Mar 21, 2023

I agree with @gkellogg. Perhaps it is enough for the grammar to have rules named the same way.

@gkellogg gkellogg added the propose closing Proposed for closing label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
propose closing Proposed for closing
Projects
None yet
Development

No branches or pull requests

3 participants