json-ld-api icon indicating copy to clipboard operation
json-ld-api copied to clipboard

Unused `@context` reference policy

Open filip26 opened this issue 1 year ago • 2 comments

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? 

filip26 avatar Sep 25 '24 23:09 filip26