digitalbazaar / jsonld.js

A JSON-LD Processor and API implementation in JavaScript
https://json-ld.org/
Other
1.66k stars 195 forks source link

Don't set `@base` in initial context #387

Closed gkellogg closed 4 years ago

gkellogg commented 4 years ago

and don't resolve a relative IRI when setting @base in a context, so that the document location can be kept separate from the context itself.

This makes the initial context the same for all processingModes, allowing much more cachability of remote and resolved contexts.