I've just posted an issue for the json-ld parser at
https://github.com/RDFLib/rdflib-jsonld/issues/33
...
I have a workaround that works for me at the moment, which is to include the base URI in a context file, but I think this is contrary to the JSON-LD spec.
My understanding about JSON-LD and relative references appearing in various places is that:
(a) they should be resolved against the current base URI (per RFC3986)
(b) the default base URI is the URI of the containing document, which I supply through the publicId parameter lot the graph.parse(0 method.
(c) the default base URI may be overridden by @base in the source document, which may also appear in any internal (inline) context data. The @base value itself may be a relative reference that is resolved against the previous base URI.
(d) @base URIs that appear in referenced external context descriptions should not be applied to the referencing source document.
Am I missing something here?
#g