forked from w3c-ccg/traceability-vocab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlantSystemsInspectionCredential.yml
328 lines (327 loc) · 9.87 KB
/
PlantSystemsInspectionCredential.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
$linkedData:
term: PlantSystemsInspectionCredential
'@id': https://w3id.org/traceability#PlantSystemsInspectionCredential
title: Plant Systems Inspection Credential
tags:
- Agriculture
description: >-
The Plant Systems Audit (PSA) program provides an unbiased, third party audit of a facility's
food safety and quality systems. The frequency and scope of the audits can be tailored to meet an
applicant's needs. AMS audits are conducted during actual production. This voluntary, user fee
auditing service is available upon request and can allow a firm to gain objective information
about a supplier. A company may also request these services to gain an objective assessment of
their own operations.
(source: Plant Systems Audits,
https://www.ams.usda.gov/services/auditing/plant-audits).
type: object
properties:
'@context':
type: array
readOnly: true
const:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
default:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
items:
type: string
enum:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
type:
type: array
readOnly: true
const:
- VerifiableCredential
- PlantSystemsInspectionCredential
default:
- VerifiableCredential
- PlantSystemsInspectionCredential
items:
type: string
enum:
- VerifiableCredential
- PlantSystemsInspectionCredential
id:
type: string
name:
type: string
description:
type: string
issuanceDate:
type: string
expirationDate:
type: string
issuer:
$ref: ../common/Organization.yml
credentialSchema:
type: object
properties:
id:
title: Id
description: The url of the schema file to validate the shape of the json object
type: string
format: uri
example: https://w3id.org/traceability/openapi/components/schemas/credentials/PlantSystemsInspectionCredential.yml
default: https://w3id.org/traceability/openapi/components/schemas/credentials/PlantSystemsInspectionCredential.yml
readOnly: true
type:
title: Type
description: The type of validation to be run against the defined schema
const: OpenApiSpecificationValidator2022
credentialSubject:
$ref: ../common/PlantSystemsInspection.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
- type
- issuanceDate
- issuer
- credentialSubject
example: |-
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/traceability/v1"
],
"id": "https://example.com/credential/123",
"type": [
"VerifiableCredential",
"PlantSystemsInspectionCredential"
],
"name": "Plant Systems Inspection Credential",
"issuanceDate": "2021-12-11T03:50:55Z",
"issuer": {
"id": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"type": [
"Organization"
],
"name": "Hauck Group",
"description": "Focused secondary synergy",
"location": {
"type": [
"Place"
],
"address": {
"type": [
"PostalAddress"
],
"streetAddress": "3198 O'Kon Wall",
"addressLocality": "North Adolphchester",
"addressRegion": "Nevada",
"postalCode": "50788",
"addressCountry": "Cote d'Ivoire"
}
},
"email": "[email protected]",
"phoneNumber": "555-171-4411",
"faxNumber": "+1-555-758-9761"
},
"credentialSubject": {
"type": [
"PlantSystemsInspection"
],
"commonInfo": {
"type": [
"AgricultureInspectionCommonInfo"
],
"applicant": {
"type": [
"Organization"
],
"name": "Miracle Produce",
"description": "Organic fruits & vegetables",
"email": "[email protected]",
"phoneNumber": "460-555-2604",
"url": "miracle.example.com"
},
"facility": {
"type": [
"Place"
],
"globalLocationNumber": "5449782976823",
"geo": {
"type": [
"GeoCoordinates"
],
"latitude": "-79.6395",
"longitude": "178.5353"
},
"address": {
"type": [
"PostalAddress"
],
"name": "Miracle Produce",
"streetAddress": "853 Wisozk River",
"addressLocality": "New Noemyfort",
"addressRegion": "New Mexico",
"postalCode": "18047-2038",
"addressCountry": "USA"
},
"unLocode": "DKCPH"
},
"inspector": {
"type": [
"Inspector"
],
"person": {
"type": [
"Person"
],
"firstName": "Jason",
"lastName": "Grant",
"email": "[email protected]",
"phoneNumber": "555-460-4373",
"worksFor": {
"type": [
"Organization"
],
"name": "Glayson & Co. Inspections",
"description": "Agricultural cleanliness & plant systems assurance",
"email": "[email protected]",
"phoneNumber": "555-521-6143",
"faxNumber": "555-150-7668"
},
"jobTitle": "Principal Data Supervisor"
},
"qualification": [
{
"type": [
"Qualification"
],
"qualificationCategory": "Agricultural Security Analyst",
"qualificationValue": "Executive"
},
{
"type": [
"Qualification"
],
"qualificationCategory": "Future Metrics Planner",
"qualificationValue": "Coordinator"
},
{
"type": [
"Qualification"
],
"qualificationCategory": "Internal Identity Agent",
"qualificationValue": "Assistant"
}
]
},
"delegateOf": {
"type": [
"Organization"
],
"name": "Glayson & Co. Inspections",
"description": "Agricultural cleanliness & plant systems assurance",
"email": "[email protected]",
"phoneNumber": "521-555-6143",
"faxNumber": "150-555-7668"
},
"regulatoryAgency": {
"type": [
"Organization"
],
"name": "CDFA",
"description": "California Department of Food and Agriculture",
"email": "[email protected]",
"phoneNumber": "467-555-2604",
"faxNumber": "486-555-3154"
},
"inspectionStarted": "2020-03-15T14:30-08:00",
"inspectionEnded": "2020-03-15T17:30-08:00"
},
"productsPacked": [
{
"type": [
"AgricultureProduct"
],
"upc": "033383401508",
"plu": "94225",
"gtin": "033383401508",
"product": {
"type": [
"Product"
],
"manufacturer": {
"type": [
"Organization"
],
"email": "[email protected]",
"phoneNumber": "555-267-4748"
},
"name": "Tomatoes",
"description": "Tomatoes, Cartons",
"sizeOrAmount": {
"type": [
"QuantitativeValue"
],
"unitCode": "cartons",
"value": "348"
},
"weight": {
"type": [
"QuantitativeValue"
],
"unitCode": "lbs",
"value": "640"
},
"sku": "164664203943"
},
"scientificName": "Solanum lycopersicum",
"labelImageUrl": "https://img.example.org/033383401508/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"name": "Tomatoes",
"productImageUrl": "https://img.example.org/102934920857/937/903/",
"productImageHash": "8kb47j986hklhde4rfh78okjhgjo08765fgu7tfg4t864fy876rfser45thj87f3"
}
],
"summaryOfDeficiencies": "Some issues observed with cross-contamination of peanut allergens, as well as improper storage of reagents.",
"observationsImprovements": "Implement employee training program for cross-contamination; reagent storage does not appear to be a consistent issue.",
"questions": [
{
"type": [
"PlantSystemsQuestion"
],
"code": "34",
"pointsWorth": 5,
"pointsDeducted": 0
},
{
"type": [
"PlantSystemsQuestion"
],
"code": "35",
"pointsWorth": 5,
"pointsDeducted": 3
},
{
"type": [
"PlantSystemsQuestion"
],
"code": "A3",
"pointsWorth": 10,
"pointsDeducted": 0
}
],
"additionalViolations": [
"Reagents observed in partially open containers"
]
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2023-04-20T05:50:52Z",
"verificationMethod": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U#z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19.._8ApOATCRkgBSh4p5FksMAJDSGwCMlcHnoHfrxwkj8IFiBzC-wtgUWwmyYffW4R0YVIWYf5LnBDM_WDFglV0Ag"
}
}