Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventID versus id in EPCISEvent #10

Open
paulfdietrich opened this issue Sep 21, 2023 · 0 comments
Open

EventID versus id in EPCISEvent #10

paulfdietrich opened this issue Sep 21, 2023 · 0 comments

Comments

@paulfdietrich
Copy link

It is more of a discussion than an issue, but this was the right place to raise this.

From the V1 credential context, the "id" field in the EPCIS event maps to @id. Also, the eventID field of the EPCISEvent maps to @id. So this serves as both the EPCISEvent.eventID and the credentialSubject.id in the graph data from this event. The document could contain either an EventID or an ID, which would both map to @id and identify the graph node.

I like this mapping because the optional eventID becomes the credential subject (The issuer is making a claim regarding an EPCIS event with a specific ID).

But would this cause trouble for parties processing this in a more traditional JSON way? Should we specify that folks use the eventID name to be consistent with EPCIS processing rather than the id name used in the example above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant