open-physiology / open-physiology-viewer

Apache License 2.0
7 stars 7 forks source link

cannot export to json-ld from scaffold-test #65

Open tgbugs opened 3 years ago

tgbugs commented 3 years ago

Not sure what is going wrong but I can't export the scaffold-test model to json-ld, so can't load to scigraph.

An unexpected error occurred: Error: Uncaught (in promise): RangeError: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231183:22) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231209:25) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231191:23) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231209:25) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231191:23) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231209:25) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231191:23) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231209:25) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231191:23) at Object.../node_modules/jsonld/dist/node6/lib/util.js.api.clone (https://open-physiology-viewer.surge.sh/index.js:231209:25)
albatros13 commented 2 years ago

There is no implementation of scaffold export to JSON-LD, entitiesToJSONLD has to be revised to generate @context and @graph for scaffold resources.