Skip to content

Commit

Permalink
add DFR and DTE
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Dec 18, 2024
1 parent 0b0ad20 commit 72ab4f0
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 3 deletions.
20 changes: 17 additions & 3 deletions implementations/opsecid/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,35 @@
{
"id": "https://untp.traceability.site/opsecid/samples/dcc.jsonld",
"type": "DigitalConformityCredential",
"name": "Mines Permit",
"name": "Mines Permit (DCC)",
"version": "0.5.0",
"mediaType": "application/vc"
},
{
"id": "https://untp.traceability.site/opsecid/samples/dia.jsonld",
"type": "DigitalIdentityAnchor",
"name": "Business Registration",
"name": "Business Registration (DIA)",
"version": "0.2.1",
"mediaType": "application/vc"
},
{
"id": "https://untp.traceability.site/opsecid/samples/dpp.jsonld",
"type": "DigitalProductPassport",
"name": "Raw Copper Shipment",
"name": "Raw Copper Shipment (DPP)",
"version": "0.5.0",
"mediaType": "application/vc"
},
{
"id": "https://untp.traceability.site/opsecid/samples/dte.jsonld",
"type": "DigitalTraceabilityEvent",
"name": "Copper Smelting (DTE)",
"version": "0.5.0",
"mediaType": "application/vc"
},
{
"id": "https://untp.traceability.site/opsecid/samples/dfr.jsonld",
"type": "DigitalFacilityRecord",
"name": "Mining Site (DFR)",
"version": "0.5.0",
"mediaType": "application/vc"
}
Expand Down
99 changes: 99 additions & 0 deletions implementations/opsecid/samples/dfr.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"type": [
"DigitalFacilityRecord",
"VerifiableCredential"
],
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://test.uncefact.org/vocabulary/untp/dfr/0.5.0/"
],
"id": "https://bcregistry.ca/business/123456789/facility-record",
"issuer": {
"type": [
"CredentialIssuer"
],
"id": "did:web:bcregistry.ca",
"name": "BC Registry Services",
"otherIdentifier": [
{
"type": [
"Identifier"
],
"id": "https://bcregistry.ca/business/123456789",
"name": "BC Copper Mines Ltd.",
"registeredId": "123456789",
"idScheme": {
"type": [
"IdentifierScheme"
],
"id": "https://bcregistry.ca/business/",
"name": "British Columbia Business Registration Number"
}
}
]
},
"validFrom": "2024-01-01T00:00:00Z",
"validUntil": "2034-01-01T00:00:00Z",
"credentialSubject": {
"type": [
"Facility"
],
"id": "https://bcregistry.ca/business/123456789/facility",
"registeredId": "987654321",
"description": "Primary Copper Mining Facility",
"name": "BC Copper Mine Facility",
"idScheme": {
"type": [
"IdentifierScheme"
],
"id": "https://bcregistry.ca/business/",
"name": "British Columbia Business Registration Number"
},
"countryOfOperation": "CA",
"processCategory": [
{
"type": [
"Classification"
],
"id": "https://unstats.un.org/unsd/classifications/Econ/cpc/14100",
"code": "14100",
"name": "Copper ores and concentrates",
"schemeID": "https://unstats.un.org/unsd/classifications/Econ/cpc/",
"schemeName": "UN Central Product Classification (CPC)"
}
],
"operatedByParty": {
"type": [
"Identifier"
],
"id": "https://bcregistry.ca/business/123456789",
"name": "BC Copper Mines Ltd.",
"registeredId": "123456789",
"idScheme": {
"type": [
"IdentifierScheme"
],
"id": "https://bcregistry.ca/business/",
"name": "British Columbia Business Registration Number"
}
},
"address": {
"streetAddress": "123 Copper Mine Road",
"postalCode": "V8W 1T2",
"addressLocality": "Victoria",
"addressRegion": "BC",
"addressCountry": "CA"
},
"locationInformation": {
"plusCode": "https://plus.codes/8CGRC78W+MM",
"geoLocation": {
"type": "Point",
"coordinates": [
-123.3656,
48.4284
]
}
}
}
}

109 changes: 109 additions & 0 deletions implementations/opsecid/samples/dte.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"type": [
"DigitalTraceabilityEvent",
"VerifiableCredential"
],
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://test.uncefact.org/vocabulary/untp/dte/0.5.0/"
],
"id": "https://bcregistry.ca/business/123456789/traceability-event",
"issuer": {
"type": [
"CredentialIssuer"
],
"id": "did:web:bcregistry.ca",
"name": "BC Copper Mines Ltd.",
"otherIdentifier": [
{
"type": [
"Identifier"
],
"id": "https://bcregistry.ca/business/123456789",
"name": "BC Copper Mines Ltd.",
"registeredId": "123456789",
"idScheme": {
"type": [
"IdentifierScheme"
],
"id": "https://bcregistry.ca/business/",
"name": "British Columbia Business Registration Number"
}
}
]
},
"validFrom": "2024-06-01T00:00:00Z",
"credentialSubject": [
{
"type": [
"TransformationEvent",
"Event"
],
"id": "https://bcregistry.ca/business/123456789/traceability-event#transformation",
"processType": "Smelting",
"eventTime": "2024-07-01T00:00:00Z",
"action": "Transform",
"disposition": "https://ref.gs1.org/cbv/Disp-in_progress",
"bizStep": "https://ref.gs1.org/cbv/BizStep-transforming",
"bizLocation": "https://id.gs1.org/414/987654321",
"sensorElementList": [
{
"sensorMetadata": {
"device": {
"type": [
"Item"
],
"id": "https://sensors.smelter.com/temperature-sensor",
"name": "Smelter Temperature Sensor"
},
"dataProcessingMethod": "https://standards.org/sensorMethod#5678"
},
"sensorReport": [
{
"time": "2024-07-01T01:00:00Z",
"sensorType": "https://sensors.smelter.com/model5678",
"value": 1200,
"uom": "Celsius"
}
],
"sensorIntegrityProof": "https://integrity.smelter.com/proof5678"
}
],
"outputEPCList": [
{
"type": [
"Item"
],
"id": "https://id.gs1.org/01/09876543211234",
"name": "Refined Copper Ingot"
}
],
"inputEPCList": [
{
"type": [
"Item"
],
"id": "https://id.gs1.org/01/12345678901234",
"name": "Raw Copper Batch"
}
],
"inputQuantityList": [
{
"productId": "https://id.gs1.org/01/12345678901234",
"productName": "Raw Copper Batch",
"quantity": 5000,
"uom": "KGM"
}
],
"outputQuantityList": [
{
"productId": "https://id.gs1.org/01/09876543211234",
"productName": "Refined Copper Ingot",
"quantity": 4800,
"uom": "KGM"
}
]
}
]
}

0 comments on commit 72ab4f0

Please sign in to comment.