Open
Description
See: http://tinyurl.com/r8chydx
If the @context
entry precedes the @included
, behavior is as expected. If at the end, @included
maps to http://example.org/@included
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Switch to `@graph` idiom until `@included` [bug](digitalbazaar/jsonld…
gkellogg commentedon Jan 27, 2020
Full support for
@included
is in #349.hsolbrig commentedon Mar 2, 2020
The issue seems to have been fixed in the above example, but https://tinyurl.com/ura2qxv
still has it.
davidlehn commentedon Mar 11, 2020
A newer jsonld.js was released and the playground updated. Did that solve this issue?
hsolbrig commentedon Mar 11, 2020
Unfortunately, I'm getting a hang when I use the above link.
davidlehn commentedon Mar 11, 2020
Yup. I was hoping no one would notice. ;-) Locking the whole tab up, which is strange. Maybe something recursive in those contexts? Will have to investigate.
hsolbrig commentedon Mar 11, 2020
Ya - the contexts are recursive as all getout -- I thought that was ok...
davidlehn commentedon Mar 11, 2020
In Node.js it first flips out on https://fhircat.org/fhir/contexts/r5/medicationadministration.context.jsonld.
No special encoding was specified:
It has BOM bytes:
JSON.parse
isn't liking that in node:I have no idea what tools should do with that. It's easy enough to fix, if that's the right thing to do. I don't know. I think browser is ok with it. In Node it then proceeds to blow it's heap limits and crash the vm. I assume that's what happens in the browser as well. So somewhere recursion is not handled well.
davidlehn commentedon Mar 13, 2020
Working on a scoped context recursion fix: #381
davidlehn commentedon Apr 16, 2020
Playground has been updated. Failing to load the files, but I think that's just due to the BOM character issue.