should we have a contextLoader
option, distinct from the documentLoader
?
#658
Labels
class-4
Class-4 change
Currently, the JsonLdOptions has a single loader configured, called
documentLoader
, which is used for two different purposes:It is generally agreed that fetching arbitrary contexts from the Web is often not a good idea (as pointed out in the security and privacy considerations of JSON-LD), but this often overlooked by newcomers or even implementers.
I would argue that the conflation of the document loader and the context loader contributes to this, and that separating them in JsonLdOptions could help get the message through. In particular, it would be specified that
The text was updated successfully, but these errors were encountered: