Skip to content

Commit

Permalink
Update Traceability events (#70)
Browse files Browse the repository at this point in the history
Add association events, fix the model to align better with EPCIS, and
add rich documentation. closes #39

May go some way to answering #69
  • Loading branch information
zachzeus authored Apr 24, 2024
2 parents 734809a + f7fa2c9 commit 7c1eddc
Show file tree
Hide file tree
Showing 8 changed files with 783 additions and 5 deletions.
443 changes: 439 additions & 4 deletions website/docs/specification/TraceabilityEvents.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/docs/specification/TraceabilityEvents.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"@context": {
"parentEPC": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"childEPCs": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"childQuantityList": {
"@context": {
"epcClass": "xsd:string",
"quantity": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"eventID": "xsd:string",
"eventTime": "xsd:string",
"action": "xsd:string",
"disposition": "xsd:string",
"bizStep": "xsd:string",
"bizLocation": "xsd:string",
"sensorElementList": {
"@context": {
"sensorMetadata": {
"@context": {
"device": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"dataProcessingMethod": "xsd:string"
},
"@id": "xsd:string"
},
"sensorReport": {
"@context": {
"time": "xsd:string",
"value": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"sensorIntegrityProof": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"@version": 1.1
},
"@id": "xsd:string"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"@context": {
"parentEPC": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"childEPCs": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"childQuantityList": {
"@context": {
"epcClass": "xsd:string",
"quantity": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"eventID": "xsd:string",
"eventTime": "xsd:string",
"action": "xsd:string",
"disposition": "xsd:string",
"bizStep": "xsd:string",
"bizLocation": "xsd:string",
"sensorElementList": {
"@context": {
"sensorMetadata": {
"@context": {
"device": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"dataProcessingMethod": "xsd:string"
},
"@id": "xsd:string"
},
"sensorReport": {
"@context": {
"time": "xsd:string",
"value": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"sensorIntegrityProof": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"@version": 1.1
},
"@id": "xsd:string"
}
58 changes: 58 additions & 0 deletions website/schema/traceabilityObjectEvent.v0.3.0.JSONLDContext.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"@context": {
"epcList": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"quantityList": {
"@context": {
"epcClass": "xsd:string",
"quantity": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"eventID": "xsd:string",
"eventTime": "xsd:string",
"action": "xsd:string",
"disposition": "xsd:string",
"bizStep": "xsd:string",
"bizLocation": "xsd:string",
"sensorElementList": {
"@context": {
"sensorMetadata": {
"@context": {
"device": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"dataProcessingMethod": "xsd:string"
},
"@id": "xsd:string"
},
"sensorReport": {
"@context": {
"time": "xsd:string",
"value": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"sensorIntegrityProof": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"@version": 1.1
},
"@id": "xsd:string"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"@context": {
"sourceParty": {
"@context": {
"partyID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"destinationParty": {
"@context": {
"partyID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"epcList": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"quantityList": {
"@context": {
"epcClass": "xsd:string",
"quantity": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"referenceDocument": {
"@context": {
"identifier": "xsd:string",
"documentURL": "xsd:string"
},
"@id": "xsd:string"
},
"eventID": "xsd:string",
"eventTime": "xsd:string",
"action": "xsd:string",
"disposition": "xsd:string",
"bizStep": "xsd:string",
"bizLocation": "xsd:string",
"sensorElementList": {
"@context": {
"sensorMetadata": {
"@context": {
"device": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"dataProcessingMethod": "xsd:string"
},
"@id": "xsd:string"
},
"sensorReport": {
"@context": {
"time": "xsd:string",
"value": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"sensorIntegrityProof": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"@version": 1.1
},
"@id": "xsd:string"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"@context": {
"outputEPCList": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"inputEPCList": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"inputQuantityList": {
"@context": {
"epcClass": "xsd:string",
"quantity": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"outputQuantityList": {
"@context": {
"epcClass": "xsd:string",
"quantity": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"processType": "xsd:string",
"eventID": "xsd:string",
"eventTime": "xsd:string",
"action": "xsd:string",
"disposition": "xsd:string",
"bizStep": "xsd:string",
"bizLocation": "xsd:string",
"sensorElementList": {
"@context": {
"sensorMetadata": {
"@context": {
"device": {
"@context": {
"itemID": "xsd:string",
"name": "xsd:string"
},
"@id": "xsd:string"
},
"dataProcessingMethod": "xsd:string"
},
"@id": "xsd:string"
},
"sensorReport": {
"@context": {
"time": "xsd:string",
"value": "xsd:decimal",
"uom": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"sensorIntegrityProof": "xsd:string"
},
"@id": "xsd:string",
"@container": "@list"
},
"@version": 1.1
},
"@id": "xsd:string"
}

0 comments on commit 7c1eddc

Please sign in to comment.