Skip to content

Add extra context support#71

Open
JPEWdev wants to merge 11 commits intomainfrom
extra-context
Open

Add extra context support#71
JPEWdev wants to merge 11 commits intomainfrom
extra-context

Conversation

@JPEWdev
Copy link
Owner

@JPEWdev JPEWdev commented Feb 10, 2026

Adds support for JSON documents to have extra context provided. This allows IDs to be shortened, making documents easier to read

Reformats code with the latest version of black
Adds tests for context expansion and compaction. Language bindings can
use these test to ensure that their expansion and compaction code works
properly
Adds support for documents to support additional local context with a
dictionary of key/value pairs in the "@context". This allows users to
shorten the IRIs in their documents.
Adds support for documents to support additional local context with a
dictionary of key/value pairs in the "@context". This allows users to
shorten the IRIs in their documents.
Adds support for documents to support additional local context with a
dictionary of key/value pairs in the "@context". This allows users to
shorten the IRIs in their documents.
Adds support for documents to support additional local context with a
dictionary of key/value pairs in the "@context". This allows users to
shorten the IRIs in their documents.
Updates the roundtrip file with a custom context to exercise that code
path in the language bindings
Adds validation of custom contexts
Bumps the version of black to the latest release
@JPEWdev JPEWdev requested a review from bact February 10, 2026 17:56
@github-actions
Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

@bact bact added the enhancement New feature or request label Feb 10, 2026
Adds a fixture for the model URL and also cleans up the confusing name
of some of the other fixtures
Fixes the case where derived extensible objects having custom properties
would not have the context applied to their property keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants