gs1 / EPCIS

Draft files being shared for EPCIS 2.0 development
Other
22 stars 7 forks source link

Wrong representation of bizTransaction in DL format #241

Closed shalikasingh closed 3 years ago

shalikasingh commented 3 years ago

Hi @mgh128,

We believe that the bizTransaction identifier has been wrongly represented in JSON-LD examples as it does not match any of the URL forms described in _2021_0329q CBV 2-0 COMMREV. We can rather change it as suggested below:

As-is: "bizTransaction": "http://transaction.acme.com/po/12345678" To-be: "bizTransaction": "http://transaction.acme.com/po/bt/12345678"

mgh128 commented 3 years ago

Hi @shalikasingh

Not sure which line numbers of 2021_03_29q CBV 2-0 COMMREV you're referring to.

Section 7.3 of CBV does impose constraints on the value of the type qualifier for business transactions but as far as I'm aware neither EPCIS nor CBV impose such constraints on the bizTransaction URL value, which is a User Vocabulary, not a Standard Vocabulary.

Please do see line 1574 of 2021_03_23b EPCIS 2-0 COMMREV which shows the following example:

http://transaction.acme.com/po/12345678

CraigRe commented 3 years ago

Given the group consensus re limitations that probably should not have been set in EPCIS/CBV 1.2, do we in 2.0 relax user vocab rules/restrictions? Information systems (i.e., with or without knowledge of EPCIS and CBV and these standards' vocab restrictions) may already be using Web URIs to reference business transactions... Next steps:

  1. relax restrictions for obj, loc, bt, etc.
  2. incorporate new examples accordingly. SHALLs will become MAYs.
VladimirAlexiev commented 3 years ago

7.3.6.3.2 Business transaction ID gives further examples of free-form URLs, with justification:

http://transaction.acme.com/po/12345678 http://transaction.acme.com/shipment/34ABC8 urn:posthaste:tracking:123456789012

GS1 Digital Link: Semantics (To Be 1.2, Draft 0.5, 23 November 2020) shows translation rules from EPC URIs to URLs, but there's nothing similar for cbv: vocabularies like bizTransaction

Eg Example_9.6.1-ObjectEvent shows:

Which is changed in Example_9.6.1-ObjectEventWithDigitalLink to:

If there are no plans for the https://id.gs1.org resolver to handle bizTransaction URLs, then I see no reason to restrict the form of bizTransaction URLs.

(@shalikasingh do you mean "LD" instead of "DL" in the issue title?)

shalikasingh commented 3 years ago

Hi @VladimirAlexiev,

I meant DL (i.e., Digital Link) only. But after Mark's explanation, I got that those are Web URIs and not DigitalLink.

CraigRe commented 3 years ago

Related to https://github.com/gs1/EPCIS/issues/147