You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an example of a context where two of my terms have an identical scoped context - here creator and publisher have a scoped context which happens to be identical.
Stepping through it further, the issue seems to be with the _process_context() not differentiating in the case of having two identical scoped contexts, which results in published being dropped from the term_ctx mapping.
I have an example of a context where two of my terms have an identical scoped context - here
creator
andpublisher
have a scoped context which happens to be identical.My expected output is:
But instead I get (notice the
dcterms:publisher
and the full URI):I've stepped through the code a bit and noticed the issue isn't with the framing, but with the expansion.
Running
JsonLdProcessor().expand(input_=ld, options=None)
provides the following - notice howpublisher
gets an@value
instead of a@id
.Stepping through it further, the issue seems to be with the
_process_context()
not differentiating in the case of having two identical scoped contexts, which results inpublished
being dropped from theterm_ctx
mapping.pyld/lib/pyld/jsonld.py
Lines 2679 to 2684 in 316fbc2
A workaround for now is to trivially make the contexts different from one another.
The text was updated successfully, but these errors were encountered: