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

ignore comment field #39

Closed dakbhavesh closed 3 years ago

dakbhavesh commented 3 years ago

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.

RalphTro commented 3 years ago

Thanks a lot, @dakbhavesh!