jsonld.js icon indicating copy to clipboard operation
jsonld.js copied to clipboard

expanding array from json

Open LucaCerina opened this issue 4 years ago • 0 comments

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.

LucaCerina avatar Mar 26 '20 12:03 LucaCerina