edi3 / edi3-json-ld-ndr

GNU General Public License v3.0
0 stars 2 forks source link

Remove all alternative consignment identifiers #28

Open Fak3 opened 3 years ago

Fak3 commented 3 years ago

CEFACT BSP RDM has multiple alternative identifiers for a Consignment:

It has been brought up by @onthebreeze in the mailing list, that having multiple identifiers for a consignment is problematic.

I suggest to remove all the alternative identifiers listed above from the Linked Data vocabulary, since these are inviting implementors to break the interoperability.

We should make it clear in the documentation, that Consignment MUST have globally unique primary identifier.

If some party needs alternative local identifier to be included in the data, it could create its own usecase-specific vocabulary and json-ld context.

onthebreeze commented 3 years ago

This might not be so easy. Lets first understand why there are multiple identifiers and then think about how best to handle it in the vocabulary. Here's a real example

It's not always true that the HAWB and MAWB are the same granularity - but they both can represent consignments.

So - this is business reality. How should our JSON-LD vocabulary represent this business reality? One way is to say these are actually separate resources

This would also require a sub-class model where house_consignment" and "master_consignment" are both sub-classes of "consignment" and share all the same properties

or maybe we keep these separate qualified names as attributes of the consignment. But then we dont know which one is really the key entity identifier in a specific case..

thoughts?

rhemeleers commented 3 years ago

I would prefer the first approach whereby house and master consignments are sub classes of consignment and share the same/most properties. In the case of air-cargo, a master air waybill can consolidate multiple house waybills and include multiple CMR if the a shipment is split over multiple truck deliverables.