Description
Hi ruben! Thanks so much for this (and many other) jsonld libraries that are enabling my work.
In my use-case I would like to use this lib to parse a context remotely, then insert it into jsonld-serializer-ext
, which relies on jsonld@8
library. Based on values passed around I would expect to be able to call parse()
and then getContextRaw()
.
This generally works but causes runtime errors because of the containerToHash
method; in parsing a context, the jsonld.js
library expects the @container
to point to an Array or string, but the normalizedRaw
puts out values of form `'@container': { '@language': true}'
Is there a step I am missing to get the normalized / raw context back out of this parser as an object with the standard @container : Array | string
?
The example i am working with is here. For example I get
steps: {
'@id': 'http://purl.org/spar/pwo/hasStep',
'@container': { '@id': true }
},
out of the contextRaw. I see in #40 that you suggest this is for performance reasons, maybe i am just missing how to get back out of this form..! Thank you.