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

Update shortnames of CSS 2.1 and RDF 1.1 N-Quads #1560

Merged
merged 2 commits into from
Nov 13, 2024
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Nov 13, 2024

Build now traps the fact that the shortname for CSS 2.1 and RDF 1.1 N-Quads do not match those used in the W3C API. This update aligns the shortnames accordingly.

For CSS 2.1, shortname was CSS2 instead of CSS21, probably because we used /TR/CSS2/ at some point. Note: Reffy will need a short update as it uses the shortname to run dedicated pre-processing on the spec to extract definitions. I cannot think of other consequences that we need to worry about.

For RDF 1.1 N-Quads, the canonical /TR URL returned by the W3C API ends with /TR/n-quads/, but the shortname is rdf11-n-quads. The longer shortname is inconsistent with the URL but consistent with the rdf12-n-quads shortname and allows the code to put both n-quads entries in the same series, as done in the W3C API: https://api.w3.org/specification-series/rdf-n-quads/specifications

Build now traps the fact that the shortname for CSS 2.1 and RDF 1.1 N-Quads
do not match those used in the W3C API. This update aligns the shortnames
accordingly.

For CSS 2.1, shortname was `CSS2` instead of `CSS21`, probably because we used
`/TR/CSS2/` at some point. Note: Reffy will need a short update as it uses the
shortname to run dedicated pre-processing on the spec to extract definitions.
I cannot think of other consequences that we need to worry about.

For RDF 1.1 N-Quads, the canonical /TR URL returned by the W3C API ends with
`/TR/n-quads/`, but the shortname is `rdf11-n-quads`. The longer shortname is
inconsistent with the URL but consistent with the `rdf12-n-quads` shortname and
allows the code to put both n-quads entries in the same series, as done in the
W3C API: https://api.w3.org/specification-series/rdf-n-quads/specifications
@tidoust tidoust merged commit 47e6e15 into main Nov 13, 2024
1 check passed
@tidoust tidoust deleted the update-shortnames branch November 13, 2024 14:18
tidoust added a commit to w3c/reffy that referenced this pull request Nov 13, 2024
tidoust added a commit to w3c/reffy that referenced this pull request Nov 13, 2024
* Bump web-specs from 3.25.0 to 3.26.0

Bumps [web-specs](https://github.com/w3c/browser-specs) from 3.25.0 to 3.26.0.
- [Release notes](https://github.com/w3c/browser-specs/releases)
- [Commits](https://github.com/w3c/browser-specs/compare/[email protected]@3.26.0)

---
updated-dependencies:
- dependency-name: web-specs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Adjust hardcoded shortname for CSS 2.1 in dfns extraction

Follows from w3c/browser-specs#1560

* Adjust shortname in CSS 2.1 tests as well

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Francois Daoust <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants