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

Unused @context reference policy #615

Open
filip26 opened this issue Sep 25, 2024 · 2 comments
Open

Unused @context reference policy #615

filip26 opened this issue Sep 25, 2024 · 2 comments
Labels
class-4 Class-4 change defer-future-version Defer this issue until a future version of JSON-LD spec:substantive

Comments

@filip26
Copy link
Contributor

filip26 commented Sep 25, 2024

Hi,
I've noticed real world examples of JSON-LD documents declaring an array of context URIs from which some of those contexts are not effectively applicable, the terms are not present in the compacted JSON-LD. 

This is probably the result of blindly setting the @context URI array to all "variations" of a document. 

Extending the compaction algorithm of a new policy on how to proceed unused contexts (Warn|Drop|Keep)? could help with documents generated from RDF. 

Does there exist consensus on unused @context declared as dereferenceable URIs? A bad practice or OK? 

@gkellogg
Copy link
Member

I think it’s akin to declaring prefixes which are unused, which is also a common practice. I don’t consider it a bug, although it might be nice to get some feedback that there a contexts which are unused, although this could be complicated due to the way in which contexts interact.

@filip26
Copy link
Contributor Author

filip26 commented Sep 26, 2024

I'm not sure it's an alike case, unused prefixes and unused @context. There is almost no work with unused prefixes, but you have to dereference and pre-process an unused @context no matter if it's later applied or not.

+1 to get feedback

@gkellogg gkellogg added spec:substantive defer-future-version Defer this issue until a future version of JSON-LD class-4 Class-4 change labels Nov 7, 2024
@gkellogg gkellogg moved this from Discuss-Call to Future Work in JSON-LD Management Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class-4 Class-4 change defer-future-version Defer this issue until a future version of JSON-LD spec:substantive
Projects
Status: Future Work
Development

No branches or pull requests

2 participants