Skip to content

Conversation

@GGoetzelmann
Copy link
Contributor

Before PR:

  • contexts of frame are not provided to compacting operation and therefore not explicitely provided in compacted output, potentially breaking the json-ld payload representation (the problem does not occur as long as the original frame file is not touched)

After PR:

  • contexts for jsonld payload can now come from
    • frame
    • profiles
  • contexts will be deduplicated, then used for compacting
  • minor (breaking) effects on content negotiation: since compacting is now dependent on all contexts, not only on profiles, compacting is applied in more cases than before

This PR aims to allow customization of frames, for example to permanently include additional context information in all responses of a wap server instance, effectively allowing for more customized context handling without the risk of breaking the anno.jsonld profile in the process

frame contexts are now maintained for compacted version
framing and compacting if anno.jsonld profile requested

minor linting
@GGoetzelmann GGoetzelmann merged commit 2bc4826 into development May 23, 2025
11 of 12 checks passed
@GGoetzelmann GGoetzelmann mentioned this pull request May 23, 2025
@GGoetzelmann GGoetzelmann deleted the dev_improve_jsonld-contexthandling branch May 30, 2025 08:17
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