You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sourcelume.apache.org by "ANierbeck (via GitHub)" <gi...@apache.org> on 2026/10/11 16:17:09 UTC
[PR] Pin the canonical context IRI and move to the stable namespace [sourcelume-spec]
ANierbeck opened a new pull request, #8:
URL: https://github.com/apache/sourcelume-spec/pull/8
## What
Pins the canonical context IRI for 0.0.1 and moves the term namespace to the stable `https://sourcelume.apache.org/ns#`. Follows the dev-list discussion "Canonical IRI for the Sourcelume JSON-LD context, and pinning it" (11 Oct).
- **Context IRI:** records reference `https://sourcelume.apache.org/context/0.0.1/sourcelume.jsonld` and nothing else. The JSON Schema enforces this with `const`, so inline `@context` objects and other hosts are rejected.
- **Namespace:** `sl:` moves from `/ns/0.0.1#` to `/ns#` in the context and the SHACL shapes. The context URL stays versioned, so the term IRIs are the same in every spec version.
- **Validator:** `tools/validate.py` resolves the canonical context from the bundled copy instead of fetching it, so validation stays offline.
## Not in this PR
- Hosting the context at the canonical URL (sourcelume-site, infra).
- Digest pinning. Deferred until Attest, as proposed on the list.
- Vocabulary changes raised in review (contentCreated ranges, license validity, origin IRI, action vocabulary, dct vs. schema mapping). Those come as a separate discussion before the 0.0.1 vote.
## Verification
- `uv run python -m unittest discover -s tests`: 6 tests pass, including new negative tests for inline and foreign context IRIs and a check that the schema constant equals `validate.CANONICAL_CONTEXT_IRI`.
- Checked that a record with the canonical context expands to `https://sourcelume.apache.org/ns#ProvenanceRecord`.
- `uv run python tools/validate.py` runs clean (no examples on `main` yet).
## Note for the registry
The registry CI checks out this repo's `main`. Its validator constant (`ShaclRecordValidator.PROVENANCE_RECORD_CLASS`) and its context check need the same change once this is merged.
Apache-ai: Yes
Generated-by: pi (claude-haiku-5-5)
Reviewed-by: anierbeck
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sourcelume.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sourcelume.apache.org
For additional commands, e-mail: dev-help@sourcelume.apache.org
Re: [PR] Pin the canonical context IRI and move to the stable namespace [sourcelume-spec]
Posted by "jgoodyear (via GitHub)" <gi...@apache.org>.
jgoodyear merged PR #8:
URL: https://github.com/apache/sourcelume-spec/pull/8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sourcelume.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sourcelume.apache.org
For additional commands, e-mail: dev-help@sourcelume.apache.org