From 63f85deccbcd454784118b67df8ee96bc6217088 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 17 May 2021 13:21:31 -0400 Subject: [PATCH 01/15] added simple root Event and fixed OGBillOfLading Generator --- .../traceability-schemas/schemas/Event.json | 67 +++++++++++++++++++ .../src/generators/Event.js | 27 ++++++++ .../src/generators/OGBillOfLading.js | 5 +- 3 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 packages/traceability-schemas/schemas/Event.json create mode 100644 packages/traceability-schemas/src/generators/Event.js diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json new file mode 100644 index 000000000..969a7506c --- /dev/null +++ b/packages/traceability-schemas/schemas/Event.json @@ -0,0 +1,67 @@ +{ + "$id": "https://w3id.org/traceability/schemas/Event.json", + "$schema": "https://json-schema.org/draft-07/schema#", + "$comment": "{\"term\": \"Event\", \"@id\": \"https://schema.org/Event\"}", + "title": "Organization", + "description": "An event such as transformation, aggregation, commission etc.", + "type": "object", + "properties": { + "@context": { + "type": "array" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array" + } + ] + }, + "eventType": { + "$comment": "{\"term\": \"eventType\", \"@id\": \"https://schema.org/value\"}", + "title": "Event Type", + "description": "Type of Event", + "type": "string" + }, + "eventId": { + "$comment": "{\"term\": \"eventId\", \"@id\": \"https://schema.org/identifier\"}", + "title": "Event Identifier", + "description": "Event Identifier.", + "type": "string" + }, + "actor": { + "$comment": "{\"term\": \"actor\", \"@id\": \"https://w3id.org/traceability#Organization\", \"@type\": \"https://schema.org/ItemList\"}", + "title": "Actor", + "description": "The organization performing the activity.", + "type": "array", + "items": { + "$ref": "https://w3id.org/traceability/schemas/Organization.json" + } + }, + "eventLocation": { + "$comment": "{\"term\": \"eventLocation\", \"@id\": \"https://w3id.org/traceability#eventLocation\"}", + "title": "Event Location", + "description": "Location where event took place", + "$ref": "https://w3id.org/traceability/schemas/Place.json" + }, + "eventTime": { + "$comment": "{\"term\": \"eventTime\", \"@id\": \"https://schema.org/DateTime#v2\"}", + "title": "Event Time", + "description": "Time when the event took place", + "type": "string" + }, + "products": { + "$comment": "{\"term\": \"products\", \"@id\": \"https://www.gs1.org/voc/Product\"}", + "title": "Products", + "description": "Products referenced by the event", + "type": "array", + "items": { + "$ref": "https://w3id.org/traceability/schemas/Product.json" + } + } + }, + "additionalProperties": false, + "examples": [] +} \ No newline at end of file diff --git a/packages/traceability-schemas/src/generators/Event.js b/packages/traceability-schemas/src/generators/Event.js new file mode 100644 index 000000000..9c32cdf7e --- /dev/null +++ b/packages/traceability-schemas/src/generators/Event.js @@ -0,0 +1,27 @@ +const faker = require('faker'); +const { getOrganization } = require('./Organization'); +const { getPlace } = require('./Place'); +const { getProduct } = require('./Product'); + +const getEvent = () => { + const eventType = 'commission'; + const eventId = '12345'; + const actor = [getOrganization(), getOrganization()]; + const eventLocation = getPlace(); + const eventTime = ''; + const products = [getProduct(), getProduct()]; + + const example = { + '@context': ['https://w3id.org/traceability/v1'], + type: 'Event', + eventType, + eventId, + actor, + eventLocation, + eventTime, + products, + }; + return example; +}; + +module.exports = { getEvent }; diff --git a/packages/traceability-schemas/src/generators/OGBillOfLading.js b/packages/traceability-schemas/src/generators/OGBillOfLading.js index d9c67b40d..3df0dc379 100644 --- a/packages/traceability-schemas/src/generators/OGBillOfLading.js +++ b/packages/traceability-schemas/src/generators/OGBillOfLading.js @@ -2,6 +2,7 @@ const _ = require('lodash'); const { generator, schemas } = require('../data/util/data'); const { getBillOfLading } = require('./BillOfLading'); +const { getMeasuredValue } = require('./MeasuredValue'); const { getObservation } = require('./Observation'); const { getPlace } = require('./Place'); @@ -61,8 +62,8 @@ const getOGBillOfLading = () => { totalOrderValue: '1500', freightChargeTerms: 'Freight Prepaid', batchNumber: '12345678', - openingVolume: '123', - closingVolume: '222', + openingVolume: getMeasuredValue(), + closingVolume: getMeasuredValue(), observation, }; const validate = ajv.compile(schemas.OGBillOfLading); From c587e30d6c9a4c66315122376c49073893bdac1b Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Tue, 25 May 2021 09:06:58 -0400 Subject: [PATCH 02/15] delete child contexts --- packages/traceability-schemas/src/generators/Event.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/traceability-schemas/src/generators/Event.js b/packages/traceability-schemas/src/generators/Event.js index 9c32cdf7e..5d529bf67 100644 --- a/packages/traceability-schemas/src/generators/Event.js +++ b/packages/traceability-schemas/src/generators/Event.js @@ -7,9 +7,15 @@ const getEvent = () => { const eventType = 'commission'; const eventId = '12345'; const actor = [getOrganization(), getOrganization()]; + + delete actor[0]['@context']; + delete actor[1]['@context']; const eventLocation = getPlace(); + delete eventLocation['@context']; const eventTime = ''; const products = [getProduct(), getProduct()]; + delete products[0]['@context']; + delete products[1]['@context']; const example = { '@context': ['https://w3id.org/traceability/v1'], From 2c3f9e27187561e639365979b249cf0c2df7a5a8 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Tue, 25 May 2021 09:19:35 -0400 Subject: [PATCH 03/15] modified to baseline events -- does not contain time information yet --- .../traceability-schemas/schemas/Event.json | 8 +- .../src/__fixtures__/Event/bad.json | 144 ++++++ .../src/__fixtures__/Event/credential.json | 155 +++++++ .../src/__fixtures__/Event/good.json | 423 ++++++++++++++++++ .../src/__fixtures__/Event/vc.json | 162 +++++++ .../src/generators/Event.js | 6 +- packages/traceability-schemas/typings.d.ts | 1 + 7 files changed, 892 insertions(+), 7 deletions(-) create mode 100644 packages/traceability-schemas/src/__fixtures__/Event/bad.json create mode 100644 packages/traceability-schemas/src/__fixtures__/Event/credential.json create mode 100644 packages/traceability-schemas/src/__fixtures__/Event/good.json create mode 100644 packages/traceability-schemas/src/__fixtures__/Event/vc.json diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index 969a7506c..5d38167b9 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -37,11 +37,11 @@ "description": "The organization performing the activity.", "type": "array", "items": { - "$ref": "https://w3id.org/traceability/schemas/Organization.json" + "$ref": "https://w3id.org/traceability/schemas/Entity.json" } }, - "eventLocation": { - "$comment": "{\"term\": \"eventLocation\", \"@id\": \"https://w3id.org/traceability#eventLocation\"}", + "place": { + "$comment": "{\"term\": \"place\", \"@id\": \"https://w3id.org/traceability#place\"}", "title": "Event Location", "description": "Location where event took place", "$ref": "https://w3id.org/traceability/schemas/Place.json" @@ -53,7 +53,7 @@ "type": "string" }, "products": { - "$comment": "{\"term\": \"products\", \"@id\": \"https://www.gs1.org/voc/Product\"}", + "$comment": "{\"term\": \"products\", \"@id\": \"https://schema.org/Product\"}", "title": "Products", "description": "Products referenced by the event", "type": "array", diff --git a/packages/traceability-schemas/src/__fixtures__/Event/bad.json b/packages/traceability-schemas/src/__fixtures__/Event/bad.json new file mode 100644 index 000000000..5cbe76138 --- /dev/null +++ b/packages/traceability-schemas/src/__fixtures__/Event/bad.json @@ -0,0 +1,144 @@ +[ + { + "circuit": "bypass", + "sensor": "synthesize" + }, + { + "@context": [ + "https://w3id.org/traceability/v1" + ], + "type": "Event", + "eventType": "commission", + "actor": [ + { + "type": "Organization", + "name": "Rowe Inc", + "description": "Realigned directional framework", + "address": { + "type": "PostalAddress", + "streetAddress": "859 Leannon Hill", + "addressLocality": "Port Aryanna", + "addressRegion": "Ohio", + "postalCode": "65217-4733", + "addressCountry": "Macedonia" + }, + "email": "Amina.Abbott95@example.com", + "phoneNumber": "555-535-6270", + "faxNumber": "555-365-1076" + }, + { + "type": "Organization", + "name": "Shanahan, Waelchi and Beier", + "description": "Extended explicit framework", + "address": { + "type": "PostalAddress", + "streetAddress": "1456 Hermiston Dale", + "addressLocality": "Predovicland", + "addressRegion": "New Hampshire", + "postalCode": "33475-5040", + "addressCountry": "Chad" + }, + "email": "Keshaun_Kuvalis94@example.net", + "phoneNumber": "555-893-6731", + "faxNumber": "555-170-9772" + } + ], + "place": { + "type": "Place", + "globalLocationNumber": "9213394765603", + "geo": { + "type": "GeoCoordinates", + "latitude": "67.2831", + "longitude": "-148.8169" + }, + "address": { + "type": "PostalAddress", + "organizationName": "Ortiz - Kessler", + "streetAddress": "3470 Fritsch Glen", + "addressLocality": "Hermistonview", + "addressRegion": "Florida", + "postalCode": "63684", + "addressCountry": "Saint Helena" + } + }, + "products": [ + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Heloise", + "lastName": "Kuvalis", + "email": "Mohammad52@example.org", + "phoneNumber": "555-631-4341", + "worksFor": { + "type": "Organization", + "name": "Runolfsdottir LLC", + "description": "Ergonomic 6th generation algorithm", + "address": { + "type": "PostalAddress", + "streetAddress": "27995 Kathlyn Lock", + "addressLocality": "Tyrelborough", + "addressRegion": "Hawaii", + "postalCode": "55412-1858", + "addressCountry": "United Arab Emirates" + }, + "email": "Bart_Lehner19@example.net", + "phoneNumber": "555-803-3775", + "faxNumber": "555-275-8825" + }, + "jobTitle": "Regional Branding Analyst" + }, + "name": "Tasty Wooden Ball", + "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "5413" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "8186" + }, + "sku": "71119993108" + }, + { + "type": "Product", + "manufacturer": { + "type": "Organization", + "name": "Farrell, Schimmel and Mills", + "description": "Networked neutral superstructure", + "address": { + "type": "PostalAddress", + "streetAddress": "448 Malvina Crossing", + "addressLocality": "Lefflershire", + "addressRegion": "New York", + "postalCode": "34965", + "addressCountry": "El Salvador" + }, + "email": "Dolores.Kuphal@example.org", + "phoneNumber": "555-176-4663", + "faxNumber": "555-504-7099" + }, + "name": "Handcrafted Fresh Pizza", + "description": "The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "7247" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "1903" + }, + "sku": "88782379145" + } + ], + "interface": "override", + "system": "compress" + }, + { + "panel": "quantify" + } +] \ No newline at end of file diff --git a/packages/traceability-schemas/src/__fixtures__/Event/credential.json b/packages/traceability-schemas/src/__fixtures__/Event/credential.json new file mode 100644 index 000000000..9fd1fed47 --- /dev/null +++ b/packages/traceability-schemas/src/__fixtures__/Event/credential.json @@ -0,0 +1,155 @@ +{ + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://w3id.org/traceability/v1" + ], + "id": "http://example.org/credentials/", + "type": [ + "VerifiableCredential" + ], + "issuanceDate": "2021-02-04T20:29:37+00:00", + "issuer": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U", + "credentialSubject": { + "@context": [ + "https://w3id.org/traceability/v1" + ], + "type": "Event", + "eventType": "commission", + "eventId": "12345", + "actor": [ + { + "type": "Organization", + "name": "White, Howell and Runolfsson", + "description": "Seamless didactic initiative", + "address": { + "type": "PostalAddress", + "streetAddress": "81311 Torphy Groves", + "addressLocality": "Lake Taylor", + "addressRegion": "Oregon", + "postalCode": "75298-4103", + "addressCountry": "Equatorial Guinea" + }, + "email": "Chester_Reichert25@example.com", + "phoneNumber": "555-628-4924", + "faxNumber": "555-192-2412" + }, + { + "type": "Organization", + "name": "Keeling - Bergnaum", + "description": "Face to face intermediate matrix", + "address": { + "type": "PostalAddress", + "streetAddress": "656 Buckridge Oval", + "addressLocality": "Cassinhaven", + "addressRegion": "Nebraska", + "postalCode": "27027-6015", + "addressCountry": "Cambodia" + }, + "email": "Amari43@example.net", + "phoneNumber": "555-585-9995", + "faxNumber": "555-971-6601" + } + ], + "place": { + "type": "Place", + "globalLocationNumber": "1295710388268", + "geo": { + "type": "GeoCoordinates", + "latitude": "-0.1494", + "longitude": "146.3952" + }, + "address": { + "type": "PostalAddress", + "organizationName": "Dicki - Berge", + "streetAddress": "7420 Wunsch Rapids", + "addressLocality": "New Marlon", + "addressRegion": "Vermont", + "postalCode": "92487-0853", + "addressCountry": "Bangladesh" + } + }, + "eventTime": "", + "products": [ + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Anna", + "lastName": "Gusikowski", + "email": "Hallie38@example.net", + "phoneNumber": "555-349-6434", + "worksFor": { + "type": "Organization", + "name": "Dietrich, Bruen and Kulas", + "description": "Expanded web-enabled initiative", + "address": { + "type": "PostalAddress", + "streetAddress": "2846 Kasey Squares", + "addressLocality": "Mabelside", + "addressRegion": "Pennsylvania", + "postalCode": "61557-1756", + "addressCountry": "Lao People's Democratic Republic" + }, + "email": "Roderick71@example.com", + "phoneNumber": "555-423-6603", + "faxNumber": "555-465-1090" + }, + "jobTitle": "Principal Division Liaison" + }, + "name": "Rustic Concrete Hat", + "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "3725" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "268" + }, + "sku": "962958370089" + }, + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Pearl", + "lastName": "Williamson", + "email": "Marian_Bergstrom72@example.org", + "phoneNumber": "555-290-5245", + "worksFor": { + "type": "Organization", + "name": "Sporer - Rogahn", + "description": "Re-contextualized composite utilisation", + "address": { + "type": "PostalAddress", + "streetAddress": "8000 Edmund Prairie", + "addressLocality": "Macejkovicside", + "addressRegion": "Indiana", + "postalCode": "36902-7880", + "addressCountry": "Seychelles" + }, + "email": "Carley62@example.com", + "phoneNumber": "555-181-5576", + "faxNumber": "555-869-3096" + }, + "jobTitle": "Lead Mobility Assistant" + }, + "name": "Refined Rubber Bike", + "description": "The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "3660" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "8418" + }, + "sku": "115514706525" + } + ] + } +} \ No newline at end of file diff --git a/packages/traceability-schemas/src/__fixtures__/Event/good.json b/packages/traceability-schemas/src/__fixtures__/Event/good.json new file mode 100644 index 000000000..6d8259517 --- /dev/null +++ b/packages/traceability-schemas/src/__fixtures__/Event/good.json @@ -0,0 +1,423 @@ +[ + { + "@context": [ + "https://w3id.org/traceability/v1" + ], + "type": "Event", + "eventType": "commission", + "eventId": "12345", + "actor": [ + { + "type": "Organization", + "name": "White, Howell and Runolfsson", + "description": "Seamless didactic initiative", + "address": { + "type": "PostalAddress", + "streetAddress": "81311 Torphy Groves", + "addressLocality": "Lake Taylor", + "addressRegion": "Oregon", + "postalCode": "75298-4103", + "addressCountry": "Equatorial Guinea" + }, + "email": "Chester_Reichert25@example.com", + "phoneNumber": "555-628-4924", + "faxNumber": "555-192-2412" + }, + { + "type": "Organization", + "name": "Keeling - Bergnaum", + "description": "Face to face intermediate matrix", + "address": { + "type": "PostalAddress", + "streetAddress": "656 Buckridge Oval", + "addressLocality": "Cassinhaven", + "addressRegion": "Nebraska", + "postalCode": "27027-6015", + "addressCountry": "Cambodia" + }, + "email": "Amari43@example.net", + "phoneNumber": "555-585-9995", + "faxNumber": "555-971-6601" + } + ], + "place": { + "type": "Place", + "globalLocationNumber": "1295710388268", + "geo": { + "type": "GeoCoordinates", + "latitude": "-0.1494", + "longitude": "146.3952" + }, + "address": { + "type": "PostalAddress", + "organizationName": "Dicki - Berge", + "streetAddress": "7420 Wunsch Rapids", + "addressLocality": "New Marlon", + "addressRegion": "Vermont", + "postalCode": "92487-0853", + "addressCountry": "Bangladesh" + } + }, + "eventTime": "", + "products": [ + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Anna", + "lastName": "Gusikowski", + "email": "Hallie38@example.net", + "phoneNumber": "555-349-6434", + "worksFor": { + "type": "Organization", + "name": "Dietrich, Bruen and Kulas", + "description": "Expanded web-enabled initiative", + "address": { + "type": "PostalAddress", + "streetAddress": "2846 Kasey Squares", + "addressLocality": "Mabelside", + "addressRegion": "Pennsylvania", + "postalCode": "61557-1756", + "addressCountry": "Lao People's Democratic Republic" + }, + "email": "Roderick71@example.com", + "phoneNumber": "555-423-6603", + "faxNumber": "555-465-1090" + }, + "jobTitle": "Principal Division Liaison" + }, + "name": "Rustic Concrete Hat", + "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "3725" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "268" + }, + "sku": "962958370089" + }, + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Pearl", + "lastName": "Williamson", + "email": "Marian_Bergstrom72@example.org", + "phoneNumber": "555-290-5245", + "worksFor": { + "type": "Organization", + "name": "Sporer - Rogahn", + "description": "Re-contextualized composite utilisation", + "address": { + "type": "PostalAddress", + "streetAddress": "8000 Edmund Prairie", + "addressLocality": "Macejkovicside", + "addressRegion": "Indiana", + "postalCode": "36902-7880", + "addressCountry": "Seychelles" + }, + "email": "Carley62@example.com", + "phoneNumber": "555-181-5576", + "faxNumber": "555-869-3096" + }, + "jobTitle": "Lead Mobility Assistant" + }, + "name": "Refined Rubber Bike", + "description": "The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "3660" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "8418" + }, + "sku": "115514706525" + } + ] + }, + { + "@context": [ + "https://w3id.org/traceability/v1" + ], + "type": "Event", + "eventType": "commission", + "eventId": "12345", + "actor": [ + { + "type": "Organization", + "name": "Rowe Inc", + "description": "Realigned directional framework", + "address": { + "type": "PostalAddress", + "streetAddress": "859 Leannon Hill", + "addressLocality": "Port Aryanna", + "addressRegion": "Ohio", + "postalCode": "65217-4733", + "addressCountry": "Macedonia" + }, + "email": "Amina.Abbott95@example.com", + "phoneNumber": "555-535-6270", + "faxNumber": "555-365-1076" + }, + { + "type": "Organization", + "name": "Shanahan, Waelchi and Beier", + "description": "Extended explicit framework", + "address": { + "type": "PostalAddress", + "streetAddress": "1456 Hermiston Dale", + "addressLocality": "Predovicland", + "addressRegion": "New Hampshire", + "postalCode": "33475-5040", + "addressCountry": "Chad" + }, + "email": "Keshaun_Kuvalis94@example.net", + "phoneNumber": "555-893-6731", + "faxNumber": "555-170-9772" + } + ], + "place": { + "type": "Place", + "globalLocationNumber": "9213394765603", + "geo": { + "type": "GeoCoordinates", + "latitude": "67.2831", + "longitude": "-148.8169" + }, + "address": { + "type": "PostalAddress", + "organizationName": "Ortiz - Kessler", + "streetAddress": "3470 Fritsch Glen", + "addressLocality": "Hermistonview", + "addressRegion": "Florida", + "postalCode": "63684", + "addressCountry": "Saint Helena" + } + }, + "eventTime": "", + "products": [ + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Heloise", + "lastName": "Kuvalis", + "email": "Mohammad52@example.org", + "phoneNumber": "555-631-4341", + "worksFor": { + "type": "Organization", + "name": "Runolfsdottir LLC", + "description": "Ergonomic 6th generation algorithm", + "address": { + "type": "PostalAddress", + "streetAddress": "27995 Kathlyn Lock", + "addressLocality": "Tyrelborough", + "addressRegion": "Hawaii", + "postalCode": "55412-1858", + "addressCountry": "United Arab Emirates" + }, + "email": "Bart_Lehner19@example.net", + "phoneNumber": "555-803-3775", + "faxNumber": "555-275-8825" + }, + "jobTitle": "Regional Branding Analyst" + }, + "name": "Tasty Wooden Ball", + "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "5413" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "8186" + }, + "sku": "71119993108" + }, + { + "type": "Product", + "manufacturer": { + "type": "Organization", + "name": "Farrell, Schimmel and Mills", + "description": "Networked neutral superstructure", + "address": { + "type": "PostalAddress", + "streetAddress": "448 Malvina Crossing", + "addressLocality": "Lefflershire", + "addressRegion": "New York", + "postalCode": "34965", + "addressCountry": "El Salvador" + }, + "email": "Dolores.Kuphal@example.org", + "phoneNumber": "555-176-4663", + "faxNumber": "555-504-7099" + }, + "name": "Handcrafted Fresh Pizza", + "description": "The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "7247" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "1903" + }, + "sku": "88782379145" + } + ] + }, + { + "@context": [ + "https://w3id.org/traceability/v1" + ], + "type": "Event", + "eventType": "commission", + "eventId": "12345", + "actor": [ + { + "type": "Organization", + "name": "Schiller Inc", + "description": "Extended encompassing moderator", + "address": { + "type": "PostalAddress", + "streetAddress": "13017 Kiana Green", + "addressLocality": "South Raheem", + "addressRegion": "Louisiana", + "postalCode": "77837", + "addressCountry": "Bangladesh" + }, + "email": "Schuyler6@example.net", + "phoneNumber": "555-398-9393", + "faxNumber": "555-769-4550" + }, + { + "type": "Organization", + "name": "Schmeler Group", + "description": "Self-enabling composite Graphical User Interface", + "address": { + "type": "PostalAddress", + "streetAddress": "6528 Legros Oval", + "addressLocality": "New Sedrick", + "addressRegion": "Idaho", + "postalCode": "80356-5043", + "addressCountry": "French Guiana" + }, + "email": "Ebony56@example.net", + "phoneNumber": "555-416-7135", + "faxNumber": "555-589-2870" + } + ], + "place": { + "type": "Place", + "globalLocationNumber": "5340621766790", + "geo": { + "type": "GeoCoordinates", + "latitude": "39.5243", + "longitude": "58.2697" + }, + "address": { + "type": "PostalAddress", + "organizationName": "Hermiston - Monahan", + "streetAddress": "323 Rodriguez Parkway", + "addressLocality": "West Danikaburgh", + "addressRegion": "Massachusetts", + "postalCode": "88792", + "addressCountry": "Malta" + } + }, + "eventTime": "", + "products": [ + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Ruthie", + "lastName": "Schoen", + "email": "Jaeden1@example.com", + "phoneNumber": "555-594-9653", + "worksFor": { + "type": "Organization", + "name": "Shields, Rodriguez and Keebler", + "description": "Assimilated methodical local area network", + "address": { + "type": "PostalAddress", + "streetAddress": "0424 Senger Road", + "addressLocality": "Lake Adolphbury", + "addressRegion": "Delaware", + "postalCode": "74224", + "addressCountry": "France" + }, + "email": "Pamela8@example.org", + "phoneNumber": "555-632-7950", + "faxNumber": "555-898-1679" + }, + "jobTitle": "Chief Group Director" + }, + "name": "Handmade Frozen Mouse", + "description": "Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "1618" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "5636" + }, + "sku": "888534407936" + }, + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Jamarcus", + "lastName": "Grant", + "email": "Dylan60@example.org", + "phoneNumber": "555-923-9992", + "worksFor": { + "type": "Organization", + "name": "McGlynn Inc", + "description": "Devolved 24 hour toolset", + "address": { + "type": "PostalAddress", + "streetAddress": "71756 Jasen Throughway", + "addressLocality": "Zanehaven", + "addressRegion": "North Dakota", + "postalCode": "07994", + "addressCountry": "Qatar" + }, + "email": "Chanelle57@example.com", + "phoneNumber": "555-358-2027", + "faxNumber": "555-602-5664" + }, + "jobTitle": "Corporate Brand Specialist" + }, + "name": "Awesome Frozen Hat", + "description": "New ABC 13 9370, 13.3, 5th Gen CoreA5-8250U, 8GB RAM, 256GB SSD, power UHD Graphics, OS 10 Home, OS Office A & J 2016", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "7931" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "9059" + }, + "sku": "610735670417" + } + ] + } +] \ No newline at end of file diff --git a/packages/traceability-schemas/src/__fixtures__/Event/vc.json b/packages/traceability-schemas/src/__fixtures__/Event/vc.json new file mode 100644 index 000000000..75afc49f3 --- /dev/null +++ b/packages/traceability-schemas/src/__fixtures__/Event/vc.json @@ -0,0 +1,162 @@ +{ + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://w3id.org/traceability/v1" + ], + "id": "http://example.org/credentials/", + "type": [ + "VerifiableCredential" + ], + "issuanceDate": "2021-02-04T20:29:37+00:00", + "issuer": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U", + "credentialSubject": { + "@context": [ + "https://w3id.org/traceability/v1" + ], + "type": "Event", + "eventType": "commission", + "eventId": "12345", + "actor": [ + { + "type": "Organization", + "name": "White, Howell and Runolfsson", + "description": "Seamless didactic initiative", + "address": { + "type": "PostalAddress", + "streetAddress": "81311 Torphy Groves", + "addressLocality": "Lake Taylor", + "addressRegion": "Oregon", + "postalCode": "75298-4103", + "addressCountry": "Equatorial Guinea" + }, + "email": "Chester_Reichert25@example.com", + "phoneNumber": "555-628-4924", + "faxNumber": "555-192-2412" + }, + { + "type": "Organization", + "name": "Keeling - Bergnaum", + "description": "Face to face intermediate matrix", + "address": { + "type": "PostalAddress", + "streetAddress": "656 Buckridge Oval", + "addressLocality": "Cassinhaven", + "addressRegion": "Nebraska", + "postalCode": "27027-6015", + "addressCountry": "Cambodia" + }, + "email": "Amari43@example.net", + "phoneNumber": "555-585-9995", + "faxNumber": "555-971-6601" + } + ], + "place": { + "type": "Place", + "globalLocationNumber": "1295710388268", + "geo": { + "type": "GeoCoordinates", + "latitude": "-0.1494", + "longitude": "146.3952" + }, + "address": { + "type": "PostalAddress", + "organizationName": "Dicki - Berge", + "streetAddress": "7420 Wunsch Rapids", + "addressLocality": "New Marlon", + "addressRegion": "Vermont", + "postalCode": "92487-0853", + "addressCountry": "Bangladesh" + } + }, + "eventTime": "", + "products": [ + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Anna", + "lastName": "Gusikowski", + "email": "Hallie38@example.net", + "phoneNumber": "555-349-6434", + "worksFor": { + "type": "Organization", + "name": "Dietrich, Bruen and Kulas", + "description": "Expanded web-enabled initiative", + "address": { + "type": "PostalAddress", + "streetAddress": "2846 Kasey Squares", + "addressLocality": "Mabelside", + "addressRegion": "Pennsylvania", + "postalCode": "61557-1756", + "addressCountry": "Lao People's Democratic Republic" + }, + "email": "Roderick71@example.com", + "phoneNumber": "555-423-6603", + "faxNumber": "555-465-1090" + }, + "jobTitle": "Principal Division Liaison" + }, + "name": "Rustic Concrete Hat", + "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "3725" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "268" + }, + "sku": "962958370089" + }, + { + "type": "Product", + "manufacturer": { + "type": "Person", + "firstName": "Pearl", + "lastName": "Williamson", + "email": "Marian_Bergstrom72@example.org", + "phoneNumber": "555-290-5245", + "worksFor": { + "type": "Organization", + "name": "Sporer - Rogahn", + "description": "Re-contextualized composite utilisation", + "address": { + "type": "PostalAddress", + "streetAddress": "8000 Edmund Prairie", + "addressLocality": "Macejkovicside", + "addressRegion": "Indiana", + "postalCode": "36902-7880", + "addressCountry": "Seychelles" + }, + "email": "Carley62@example.com", + "phoneNumber": "555-181-5576", + "faxNumber": "555-869-3096" + }, + "jobTitle": "Lead Mobility Assistant" + }, + "name": "Refined Rubber Bike", + "description": "The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients", + "sizeOrAmount": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "3660" + }, + "weight": { + "type": "QuantitativeValue", + "unitCode": "hg/ha", + "value": "8418" + }, + "sku": "115514706525" + } + ] + }, + "proof": { + "type": "Ed25519Signature2018", + "created": "2019-12-11T03:50:55Z", + "jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..XMQeKunpJptw8EAs_OjpaEMmBJ-kn4Tqt8OAFvq2AAG7uiddUnG6Qlx7b8mYBjl47Ns7hnvopuihdd5eQnSeAA", + "proofPurpose": "assertionMethod", + "verificationMethod": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U#z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U" + } +} \ No newline at end of file diff --git a/packages/traceability-schemas/src/generators/Event.js b/packages/traceability-schemas/src/generators/Event.js index 5d529bf67..75f4aa992 100644 --- a/packages/traceability-schemas/src/generators/Event.js +++ b/packages/traceability-schemas/src/generators/Event.js @@ -10,8 +10,8 @@ const getEvent = () => { delete actor[0]['@context']; delete actor[1]['@context']; - const eventLocation = getPlace(); - delete eventLocation['@context']; + const place = getPlace(); + delete place['@context']; const eventTime = ''; const products = [getProduct(), getProduct()]; delete products[0]['@context']; @@ -23,7 +23,7 @@ const getEvent = () => { eventType, eventId, actor, - eventLocation, + place, eventTime, products, }; diff --git a/packages/traceability-schemas/typings.d.ts b/packages/traceability-schemas/typings.d.ts index a682d12ad..c4f4b37d4 100644 --- a/packages/traceability-schemas/typings.d.ts +++ b/packages/traceability-schemas/typings.d.ts @@ -35,6 +35,7 @@ EcommerceWayBillRegistrationCredential: require('./schemas/EcommerceWayBillRegis EcommerceWayBillRegistrationEvidenceDocument: require('./schemas/EcommerceWayBillRegistrationEvidenceDocument.json'), EcommerceWayBillTotals: require('./schemas/EcommerceWayBillTotals.json'), Entity: require('./schemas/Entity.json'), +Event: require('./schemas/Event.json'), GeoCoordinates: require('./schemas/GeoCoordinates.json'), Inbond: require('./schemas/Inbond.json'), InspectionReport: require('./schemas/InspectionReport.json'), From 9b0f172dc74a42609aead81bbc16cc44131c50bd Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Tue, 25 May 2021 12:02:44 -0400 Subject: [PATCH 04/15] fixed getOrg to getEntity --- packages/traceability-schemas/src/generators/Event.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/traceability-schemas/src/generators/Event.js b/packages/traceability-schemas/src/generators/Event.js index 75f4aa992..f8c37734e 100644 --- a/packages/traceability-schemas/src/generators/Event.js +++ b/packages/traceability-schemas/src/generators/Event.js @@ -1,18 +1,17 @@ -const faker = require('faker'); -const { getOrganization } = require('./Organization'); +const { getEntity } = require('./Entity'); const { getPlace } = require('./Place'); const { getProduct } = require('./Product'); const getEvent = () => { const eventType = 'commission'; const eventId = '12345'; - const actor = [getOrganization(), getOrganization()]; + const actor = [getEntity(), getEntity()]; delete actor[0]['@context']; delete actor[1]['@context']; const place = getPlace(); delete place['@context']; - const eventTime = ''; + const eventTime = '2019-12-11T03:50:55Z'; const products = [getProduct(), getProduct()]; delete products[0]['@context']; delete products[1]['@context']; From 5211e7a9d5b1f3fd9f365f7837bd29efe3a776ed Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Wed, 2 Jun 2021 09:45:37 -0400 Subject: [PATCH 05/15] Update packages/traceability-schemas/schemas/Event.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/schemas/Event.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index 5d38167b9..15e92ef2f 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -55,7 +55,7 @@ "products": { "$comment": "{\"term\": \"products\", \"@id\": \"https://schema.org/Product\"}", "title": "Products", - "description": "Products referenced by the event", + "description": "The products referenced by the event.", "type": "array", "items": { "$ref": "https://w3id.org/traceability/schemas/Product.json" @@ -64,4 +64,4 @@ }, "additionalProperties": false, "examples": [] -} \ No newline at end of file +} From 9469b5e5bd0f28b89bd8f1d710977b93b4ee7572 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Wed, 2 Jun 2021 09:46:44 -0400 Subject: [PATCH 06/15] Update packages/traceability-schemas/schemas/Event.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/schemas/Event.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index 15e92ef2f..713fa8e1b 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -3,7 +3,7 @@ "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "{\"term\": \"Event\", \"@id\": \"https://schema.org/Event\"}", "title": "Organization", - "description": "An event such as transformation, aggregation, commission etc.", + "description": "An event such as a transformation, aggregation, commission, etc.", "type": "object", "properties": { "@context": { From ec03eeca6270ba380fd75a200851f5bfb7a54c92 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Wed, 2 Jun 2021 09:47:00 -0400 Subject: [PATCH 07/15] Update packages/traceability-schemas/schemas/Event.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/schemas/Event.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index 713fa8e1b..c91617655 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -22,7 +22,7 @@ "eventType": { "$comment": "{\"term\": \"eventType\", \"@id\": \"https://schema.org/value\"}", "title": "Event Type", - "description": "Type of Event", + "description": "The Type of the Event.", "type": "string" }, "eventId": { From 711a68200a222f3e1fcf5258e9a50cd5030f17fd Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Wed, 2 Jun 2021 09:47:09 -0400 Subject: [PATCH 08/15] Update packages/traceability-schemas/src/__fixtures__/Event/bad.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/src/__fixtures__/Event/bad.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/traceability-schemas/src/__fixtures__/Event/bad.json b/packages/traceability-schemas/src/__fixtures__/Event/bad.json index 5cbe76138..2b14f6fbb 100644 --- a/packages/traceability-schemas/src/__fixtures__/Event/bad.json +++ b/packages/traceability-schemas/src/__fixtures__/Event/bad.json @@ -89,7 +89,7 @@ "jobTitle": "Regional Branding Analyst" }, "name": "Tasty Wooden Ball", - "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "description": "New range of formal shirts, designed keeping you in mind, with fits and styling that will make you stand apart.", "sizeOrAmount": { "type": "QuantitativeValue", "unitCode": "hg/ha", @@ -141,4 +141,4 @@ { "panel": "quantify" } -] \ No newline at end of file +] From 748b6d8833bc0d7207680039e36ade32bdd24d0b Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:56:41 -0400 Subject: [PATCH 09/15] Update packages/traceability-schemas/src/__fixtures__/Event/credential.json Co-authored-by: Ted Thibodeau Jr --- .../src/__fixtures__/Event/credential.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/traceability-schemas/src/__fixtures__/Event/credential.json b/packages/traceability-schemas/src/__fixtures__/Event/credential.json index 9fd1fed47..4dd939896 100644 --- a/packages/traceability-schemas/src/__fixtures__/Event/credential.json +++ b/packages/traceability-schemas/src/__fixtures__/Event/credential.json @@ -97,7 +97,7 @@ "jobTitle": "Principal Division Liaison" }, "name": "Rustic Concrete Hat", - "description": "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + "description": "New range of formal shirts, designed keeping you in mind, with fits and styling that will make you stand apart.", "sizeOrAmount": { "type": "QuantitativeValue", "unitCode": "hg/ha", @@ -152,4 +152,4 @@ } ] } -} \ No newline at end of file +} From 5e0d605125bd54c82f28ca5cccea9cd5fa64adaa Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:56:50 -0400 Subject: [PATCH 10/15] Update packages/traceability-schemas/src/__fixtures__/Event/bad.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/src/__fixtures__/Event/bad.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/src/__fixtures__/Event/bad.json b/packages/traceability-schemas/src/__fixtures__/Event/bad.json index 2b14f6fbb..6fe121f80 100644 --- a/packages/traceability-schemas/src/__fixtures__/Event/bad.json +++ b/packages/traceability-schemas/src/__fixtures__/Event/bad.json @@ -29,7 +29,7 @@ { "type": "Organization", "name": "Shanahan, Waelchi and Beier", - "description": "Extended explicit framework", + "description": "Extended the explicit framework.", "address": { "type": "PostalAddress", "streetAddress": "1456 Hermiston Dale", From c1ef914b321e0e15fd6b7b7f9a934d7779c01492 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:57:00 -0400 Subject: [PATCH 11/15] Update packages/traceability-schemas/schemas/Event.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/schemas/Event.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index c91617655..641ab6587 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -43,7 +43,7 @@ "place": { "$comment": "{\"term\": \"place\", \"@id\": \"https://w3id.org/traceability#place\"}", "title": "Event Location", - "description": "Location where event took place", + "description": "The location where the event took place.", "$ref": "https://w3id.org/traceability/schemas/Place.json" }, "eventTime": { From 372669b3cc9f7ec36d5acb3ac7b03b28ff964615 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:57:07 -0400 Subject: [PATCH 12/15] Update packages/traceability-schemas/src/__fixtures__/Event/bad.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/src/__fixtures__/Event/bad.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/src/__fixtures__/Event/bad.json b/packages/traceability-schemas/src/__fixtures__/Event/bad.json index 6fe121f80..14c9e730b 100644 --- a/packages/traceability-schemas/src/__fixtures__/Event/bad.json +++ b/packages/traceability-schemas/src/__fixtures__/Event/bad.json @@ -121,7 +121,7 @@ "faxNumber": "555-504-7099" }, "name": "Handcrafted Fresh Pizza", - "description": "The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J", + "description": "The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J.", "sizeOrAmount": { "type": "QuantitativeValue", "unitCode": "hg/ha", From d93ca2cafc4a5e65ec9d2c19dfe0f8e7b73bcec4 Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:57:16 -0400 Subject: [PATCH 13/15] Update packages/traceability-schemas/src/__fixtures__/Event/credential.json Co-authored-by: Ted Thibodeau Jr --- .../traceability-schemas/src/__fixtures__/Event/credential.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/src/__fixtures__/Event/credential.json b/packages/traceability-schemas/src/__fixtures__/Event/credential.json index 4dd939896..b0b0eb22c 100644 --- a/packages/traceability-schemas/src/__fixtures__/Event/credential.json +++ b/packages/traceability-schemas/src/__fixtures__/Event/credential.json @@ -137,7 +137,7 @@ "jobTitle": "Lead Mobility Assistant" }, "name": "Refined Rubber Bike", - "description": "The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients", + "description": "The beautiful range of Apple Naturalé has an exciting mix of natural ingredients, with the Goodness of 100% Natural Ingredients", "sizeOrAmount": { "type": "QuantitativeValue", "unitCode": "hg/ha", From 14bcd788458e200239f6439a21a73d2eaf9611ec Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:57:51 -0400 Subject: [PATCH 14/15] Update packages/traceability-schemas/schemas/Event.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/schemas/Event.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index 641ab6587..b2a35337b 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -49,7 +49,7 @@ "eventTime": { "$comment": "{\"term\": \"eventTime\", \"@id\": \"https://schema.org/DateTime#v2\"}", "title": "Event Time", - "description": "Time when the event took place", + "description": "The time when the event took place.", "type": "string" }, "products": { From f0385989cc2c8cb43d2420d2fdd8aebe6035adaf Mon Sep 17 00:00:00 2001 From: Mahmoud Alkhraishi Date: Mon, 21 Jun 2021 11:57:57 -0400 Subject: [PATCH 15/15] Update packages/traceability-schemas/schemas/Event.json Co-authored-by: Ted Thibodeau Jr --- packages/traceability-schemas/schemas/Event.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/traceability-schemas/schemas/Event.json b/packages/traceability-schemas/schemas/Event.json index b2a35337b..805f4eef8 100644 --- a/packages/traceability-schemas/schemas/Event.json +++ b/packages/traceability-schemas/schemas/Event.json @@ -28,7 +28,7 @@ "eventId": { "$comment": "{\"term\": \"eventId\", \"@id\": \"https://schema.org/identifier\"}", "title": "Event Identifier", - "description": "Event Identifier.", + "description": "The Identifier of the Event.", "type": "string" }, "actor": {