jsonld.js
jsonld.js copied to clipboard
expanding array from json
Hello, I am kind of a newbie into JSON-LD, so pardon me if I am asking something trivial. I want to map similar data coming from different JSON responses (non LD, just REST results) and so I want to use expansion and subsequent compaction to uniform them.
One document is like:
"sleep" : [ {"value1":87, "value2": "ok"}, {"value1":55, "value2": "no"}, ... ]
I am not sure if I need framing @graph
or @list/@set
to manage this problem. Unfortunately the documentation examples on expansion of non-LD json documents are a bit opaque.
Thanks for the help.