Skip to content

Commit 193cd76

Browse files
authored
Merge pull request #975 from w3c-ccg/environmental_passport
add NG env passport credential.
2 parents 83aa443 + 54b001e commit 193cd76

File tree

4 files changed

+310
-22
lines changed

4 files changed

+310
-22
lines changed

docs/credentials-with-issuer-dependent-terms.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
[
2-
{
3-
"type": "environmentalImpactCredential",
4-
"count": 17
5-
},
62
{
73
"type": "WebLeiCredential",
8-
"count": 28
4+
"count": 22
95
},
106
{
117
"type": "VerifiableScorecard",
@@ -59,6 +55,10 @@
5955
"type": "SIMASteelImportLicenseApplicationCredential",
6056
"count": 6
6157
},
58+
{
59+
"type": "QualifiedWebLeiIssuerCredential",
60+
"count": 3
61+
},
6262
{
6363
"type": "PurchaseOrderCredential",
6464
"count": 6
@@ -99,6 +99,10 @@
9999
"type": "OilAndGasDeliveryTicketCredential",
100100
"count": 6
101101
},
102+
{
103+
"type": "NaturalGasProducerEnvironmentalPassportCredential",
104+
"count": 34
105+
},
102106
{
103107
"type": "MultiModalBillOfLadingCredential",
104108
"count": 0
@@ -235,6 +239,10 @@
235239
"type": "EventCredential",
236240
"count": 9
237241
},
242+
{
243+
"type": "EnvironmentalImpactCredential",
244+
"count": 17
245+
},
238246
{
239247
"type": "EntryNumberCredential",
240248
"count": 0

docs/openapi/components/schemas/credentials/environmentalImpactCredential.yml renamed to docs/openapi/components/schemas/credentials/EnvironmentalImpactCredential.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$linkedData:
2-
term: environmentalImpactCredential
3-
'@id': https://w3id.org/traceability#environmentalImpactCredential
2+
term: EnvironmentalImpactCredential
3+
'@id': https://w3id.org/traceability#EnvironmentalImpactCredential
44
title: Environmental Impact Credential
55
tags:
66
- Oil and Gas
@@ -26,15 +26,15 @@ properties:
2626
readOnly: true
2727
const:
2828
- VerifiableCredential
29-
- environmentalImpactCredential
29+
- EnvironmentalImpactCredential
3030
default:
3131
- VerifiableCredential
32-
- environmentalImpactCredential
32+
- EnvironmentalImpactCredential
3333
items:
3434
type: string
3535
enum:
3636
- VerifiableCredential
37-
- environmentalImpactCredential
37+
- EnvironmentalImpactCredential
3838
id:
3939
type: string
4040
format: uri
@@ -54,8 +54,8 @@ properties:
5454
description: The url of the schema file to validate the shape of the json object
5555
type: string
5656
format: uri
57-
example: https://w3id.org/traceability/openapi/components/schemas/credentials/environmentalImpactCredential.yml
58-
default: https://w3id.org/traceability/openapi/components/schemas/credentials/environmentalImpactCredential.yml
57+
example: https://w3id.org/traceability/openapi/components/schemas/credentials/EnvironmentalImpactCredential.yml
58+
default: https://w3id.org/traceability/openapi/components/schemas/credentials/EnvironmentalImpactCredential.yml
5959
readOnly: true
6060
type:
6161
title: Type
@@ -124,7 +124,7 @@ example: |-
124124
"id": "http://example.com/dd0c6f9a-5df6-40a3-bb34-863cd1fda606",
125125
"type": [
126126
"VerifiableCredential",
127-
"environmentalImpactCredential"
127+
"EnvironmentalImpactCredential"
128128
],
129129
"issuer": {
130130
"type": [
Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
$linkedData:
2+
term: NaturalGasProducerEnvironmentalPassportCredential
3+
'@id': https://w3id.org/traceability#NaturalGasProducerEnvironmentalPassportCredential
4+
title: Natural Gas Producer Environmental Passport Credential
5+
tags:
6+
- Oil and Gas
7+
description: A credential that represents the environmental passport of a natural gas producer
8+
type: object
9+
properties:
10+
'@context':
11+
type: array
12+
readOnly: true
13+
const:
14+
- https://www.w3.org/2018/credentials/v1
15+
- https://w3id.org/traceability/v1
16+
default:
17+
- https://www.w3.org/2018/credentials/v1
18+
- https://w3id.org/traceability/v1
19+
items:
20+
type: string
21+
enum:
22+
- https://www.w3.org/2018/credentials/v1
23+
- https://w3id.org/traceability/v1
24+
type:
25+
type: array
26+
readOnly: true
27+
const:
28+
- VerifiableCredential
29+
- NaturalGasProducerEnvironmentalPassportCredential
30+
default:
31+
- VerifiableCredential
32+
- NaturalGasProducerEnvironmentalPassportCredential
33+
items:
34+
type: string
35+
enum:
36+
- VerifiableCredential
37+
- NaturalGasProducerEnvironmentalPassportCredential
38+
id:
39+
type: string
40+
format: uri
41+
issuanceDate:
42+
type: string
43+
format: date-time
44+
expirationDate:
45+
type: string
46+
format: date-time
47+
issuer:
48+
$ref: ../common/Organization.yml
49+
credentialSchema:
50+
type: object
51+
properties:
52+
id:
53+
title: Id
54+
description: The url of the schema file to validate the shape of the json object
55+
type: string
56+
format: uri
57+
example: https://w3id.org/traceability/openapi/components/schemas/credentials/NaturalGasProducerEnvironmentalPassportCredential.yml
58+
default: https://w3id.org/traceability/openapi/components/schemas/credentials/NaturalGasProducerEnvironmentalPassportCredential.yml
59+
readOnly: true
60+
type:
61+
title: Type
62+
description: The type of validation to be run against the defined schema
63+
const: OpenApiSpecificationValidator2022
64+
credentialSubject:
65+
title: Natural Gas Producer Environmental Passport Credential
66+
description: A credential that represents the environmental passport of a natural gas producer
67+
type: object
68+
properties:
69+
organization:
70+
type: object
71+
title: Organization
72+
description: the organization the passport is issued to
73+
properties:
74+
legalName:
75+
type: string
76+
title: Organization Legal Name
77+
description: Legal name of the Organization
78+
dailyVolumeProduced:
79+
type: string
80+
title: Daily volume produced
81+
description: Daily volume of Natural Gas produced in MMcf/d (Millions of cubic feet per day)
82+
productionLocation:
83+
type: object
84+
description: the location of the production site
85+
$ref: ../common/Place.yml
86+
productionPhase:
87+
type: string
88+
enum:
89+
- Active
90+
- Inactive
91+
- In development
92+
required:
93+
- legalName
94+
- dailyVolumeProduced
95+
- productionLocation
96+
- productionPhase
97+
certifications:
98+
title: Certifications
99+
type: array
100+
items:
101+
type: object
102+
properties:
103+
certificationPeriod:
104+
type: string
105+
format: date-time
106+
title: Certification Period
107+
description: the validity period of the certification
108+
certificateIssuer:
109+
type: string
110+
title: Certificate Issuer
111+
description: issuer of the certificate
112+
certificateIdentifier:
113+
type: string
114+
title: CertificateIdentifier
115+
description: the identifier of the certificate
116+
certificationStandard:
117+
type: string
118+
title: CertificationStardard
119+
description: the standard for the certification.
120+
assessmentBody:
121+
type: string
122+
title: Assessment Body
123+
description: The entity that conducts the assessment for the certification
124+
observations:
125+
title: Observations
126+
description: >-
127+
List of observations
128+
type: array
129+
items:
130+
$ref: ../common/Observation.yml
131+
required:
132+
- certificationPeriod
133+
- certificateIssuer
134+
- certificateIdentifier
135+
- certificationStandard
136+
- observations
137+
proof:
138+
$ref: ../snippets/proof.yml
139+
additionalProperties: false
140+
required:
141+
- '@context'
142+
- type
143+
- id
144+
- issuanceDate
145+
- issuer
146+
- credentialSubject
147+
example: |-
148+
{
149+
"@context": [
150+
"https://www.w3.org/2018/credentials/v1",
151+
"https://w3id.org/traceability/v1"
152+
],
153+
"id": "http://example.com/dd0c6f9a-5df6-40a3-bb34-863cd1fda606",
154+
"type": [
155+
"VerifiableCredential",
156+
"NaturalGasProducerEnvironmentalPassportCredential"
157+
],
158+
"issuer": {
159+
"type": [
160+
"Organization"
161+
],
162+
"id": "did:web:organization.example.com"
163+
},
164+
"issuanceDate": "2022-11-01T10:58:45-04:00",
165+
"credentialSubject": {
166+
"organization": {
167+
"legalName": "Example Company",
168+
"dailyVolumeProduced": "200",
169+
"productionLocation": {
170+
"type": [
171+
"Place"
172+
],
173+
"globalLocationNumber": "1111111111111",
174+
"geo": {
175+
"type": [
176+
"GeoCoordinates"
177+
],
178+
"latitude": "-79.6395",
179+
"longitude": "178.5353"
180+
},
181+
"address": {
182+
"type": [
183+
"PostalAddress"
184+
],
185+
"name": "Example Production Location",
186+
"streetAddress": "100 main street",
187+
"addressLocality": "Example locality",
188+
"addressRegion": "Example Region",
189+
"postalCode": "1X2Y3Z",
190+
"addressCountry": "CA"
191+
},
192+
"unLocode": "DKCPH"
193+
},
194+
"productionPhase": "Active"
195+
},
196+
"certifications": [
197+
{
198+
"certificationPeriod": "2019-12-11T03:50:55Z",
199+
"certificateIssuer": "MiQ",
200+
"certificateIdentifier": "123456",
201+
"certificationStandard": "MiQ",
202+
"assessmentBody": "Example Body",
203+
"observations": [
204+
{
205+
"type": [
206+
"Observation"
207+
],
208+
"date": "2019-12-11T03:50:55Z",
209+
"property": {
210+
"type": [
211+
"ChemicalProperty"
212+
],
213+
"name": "Methane Intensity"
214+
},
215+
"measurement": {
216+
"type": [
217+
"MeasuredValue"
218+
],
219+
"value": "00.00",
220+
"unitCode": "UNKNOWN"
221+
}
222+
}
223+
]
224+
}
225+
]
226+
}
227+
}

0 commit comments

Comments
 (0)