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).
Dear @Echsecutor and @RalphTro,
Updated code to ignore "rdfs:comment" or "comment" field so that it doesn't take part in event hash calculation.
Please note that the earlier code was failing as it was unable to locate rdfs namespace which is enclosed in https://gs1.github.io/EPCIS/epcis-context.jsonld.
Reference discussion: https://github.com/gs1/EPCIS/pull/167
Let me know in case of any queries/concerns.