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

Good practice for biblio keys and changes to its status and href #799

Open
csarven opened this issue Jun 20, 2024 · 2 comments
Open

Good practice for biblio keys and changes to its status and href #799

csarven opened this issue Jun 20, 2024 · 2 comments

Comments

@csarven
Copy link
Contributor

csarven commented Jun 20, 2024

I'd like to get a sound check before making a PR, and this generally applies to any entry where its href and status may change.

Example:

I'd like to add entries, e.g., SOLID-PROTOCOL ( https://solidproject.org/TR/protocol ) and WAC ( https://solidproject.org/TR/wac ). Those reports currently have status "Draft Community Group Report" at W3C. Work on those reports may continue under a W3C WG, and if published, the URLs for "published" versions will be under w3.org.

What may be a good practice here as far as using the same or different keys for reports with different statuses? If the same key is used while the status and href changes, would that considered be a bad practice considering, e.g., references made while at status A may not be accurate or meaningful when the status changes to B?

I suspect that using the same key but changing status and href values in the future may not be a major problem because the biblio information in the generated HTML will just use the latest values from status and href every time.

For example, would the following (entry snippet) be considered okay:

Today:

"SOLID-PROTOCOL": {
  "href": "https://solidproject.org/TR/protocol",
  "status": "Draft Community Group Report"
}

In the future:

"SOLID-PROTOCOL": {
  "href": "https://www.w3.org/TR/solid-protocol",
  "status": "REC"
}

Thoughts?

@csarven csarven changed the title Choosing sensible practice for biblio keys Good practice for biblio keys and changes to its status and href Jun 20, 2024
@tidoust
Copy link
Collaborator

tidoust commented Jun 24, 2024

If the same key is used while the status and href changes, would that considered be a bad practice considering, e.g., references made while at status A may not be accurate or meaningful when the status changes to B?

That essentially happens all the time. There is no guarantee that the status of a specification returned by SpecRef for a key be stable. For example, take HTML, DOM, or WEBIDL. The keys used to return the W3C versions of the specs. They now return the WHATWG versions.

The guarantee is that the key will continue to exist and point at the latest version of the spec. Another guarantee is that, if you create dated entries such as dom-20151119, they will continue to exist forever (and should continue to point at the dated version).

@tobie
Copy link
Owner

tobie commented Jul 29, 2024

I think @tidoust's comments above address our common practice well. Should we add something to this effect to the README or is what's there sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants