RalphTro / epcis-event-hash-generator

ALGORITHM and SOFTWARE PROTOTYPE to uniquely identify/validate the integrity of any EPCIS event through a common, syntax-agnostic approach based on hashing. Takes an EPCIS Document (formatted in either XML or JSON-LD) and returns the corresponding hash value(s).
MIT License
8 stars 4 forks source link

JSON LD #15

Closed Echsecutor closed 4 years ago

Echsecutor commented 4 years ago

The Libraries mentioned on https://json-ld.org/ namely

seem not usable. Do we need a JSON LD lib to properly handle e.g. namespaces for userextensions?

RalphTro commented 4 years ago

A pity... turning to your question: IMO, not necessarily. As the namespaces/CURIEs are properly defined in the context header (see e.g. https://github.com/gs1/EPCIS/blob/master/JSON/Example_9.6.1-with-comment.json), I think a "normal" JSON lib should do, what is your take on that?

Echsecutor commented 4 years ago

I do the namespace replacing and "#" keys "by hand" now, json ld is hence not really needed