-
Notifications
You must be signed in to change notification settings - Fork 915
Expand file tree
/
Copy pathissue-3230-examples.txt
More file actions
368 lines (314 loc) · 10.1 KB
/
issue-3230-examples.txt
File metadata and controls
368 lines (314 loc) · 10.1 KB
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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
TYPES: #eg-0483 Certification
PRE-MARKUP:
Complete example of a certification object for a product registered in the EU EPREL
(https://eprel.ec.europa.eu/) database. Illustrates all relevant fields of the Certification
type.
MICRODATA:
<!-- JSON-LD example only -->
RDFA:
<!-- JSON-LD example only -->
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Certification",
"name": "EPREL",
"description": "Registration of products in the European Product Registry for Energy Labeling (EPREL)",
"url": "https://eprel.ec.europa.eu/screen/product/dishwashers2019/1779994",
"about": {
"@type": "Product",
"@id": "https://www.dishwashers.com/en/built-in-dishwashers/1377-built-in-dishwasher-gsi1399xx"
},
"issuedBy": {
"@type": "Organization",
"name": [
"European Commission, Directorate-General for Energy",
"EC"
],
"url": "https://eprel.ec.europa.eu/screen/home"
},
"certificationStatus": "https://schema.org/CertificationActive",
"expires": "2026-05-12",
"datePublished": "2023-06-01",
"validFrom": "2023-05-12",
"auditDate": "2023-10-01",
"validIn": {
"@type": "AdministrativeArea",
"name": "European Union",
"address": {
"@type": "PostalAddress",
"addressCountry": ["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GR",
"HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO",
"SE","SI","SK"]
}
},
"logo": "https://eprel.ec.europa.eu/assets/images/label/thumbnails/E-Left-LightOrange-WithAGScale.png",
"certificationIdentification": "1779994",
"certificationRating": {
"@type": "Rating",
"ratingValue": "E",
"bestRating": "A",
"worstRating": "G"
},
"hasMeasurement": {
"@type": "QuantitativeValue",
"name": "Energy Efficiency Index (EEI)",
"valueReference": "https://eur-lex.europa.eu/eli/reg_del/2019/2017/2021-05-01#anx_IV",
"value": 55.9
}
}
</script>
TYPES: #eg-0484 Certification
PRE-MARKUP:
The previous example illustrates a certificate as it could be published on the site of a
registration/certification body. A product from a manufacturer, supplier, or merchant could
then reference this certificate as follows using the hasCertificate property (using @id
to reference the Certification object on the site of the certification body instead of
embedding the full Certification within the Product object itself):
MICRODATA:
<!-- JSON-LD example only -->
RDFA:
<!-- JSON-LD example only -->
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"sku": "1234-5678",
"image": "https://www.example.com/dishwasher1234.jpg",
"name": "Household Dishwasher",
"description": "Large capacity household dishwasher",
"gtin14": "12345678901231",
"mpn": "DW1234",
"brand": {
"@type": "Brand",
"name": "Household applicance brand"
},
"hasCertification": {
"@type": "Certification",
"@id": "https://eprel.ec.europa.eu/qr/1779994",
"url": "https://eprel.ec.europa.eu/screen/product/dishwashers2019/1779994"
},
"offers": {
"@type": "Offer",
"url": "https://www.example.com/dishwasher1234",
"itemCondition": "https://schema.org/NewCondition",
"availability": "https://schema.org/InStock",
"price": 499,
"priceCurrency": "EUR"
}
}
</script>
TYPES: #eg-0485 Certification
PRE-MARKUP:
Example of a certification for carbon footprint of a product with a W3C verifiable
credential (https://w3c.github.io/vc-data-model). The certification information is copied
and embedded within the Product.
Note the use of id and type instead of @id and @type, using the mappings defined in
https://www.w3.org/ns/credentials/v2, for lighter-weight credential-type specific processing.
MICRODATA:
<!-- JSON-LD example only -->
RDFA:
<!-- JSON-LD example only -->
JSON:
<script type="application/ld+json">
{
"@context": [
"https://schema.org",
"https://www.w3.org/ns/credentials/v2"
],
"id": "http://certification.example/credentials/3732",
"type": "VerifiableCredential",
"issuer": "https://certification.example/issuers/14",
"validFrom": "2023-01-01T19:23:24Z",
"credentialSubject": {
"type": "Product",
"id": "https://www.example.com/12345678901231",
"hasCertification": {
"type": "Certification",
"schema:name": "CO2 Measured",
"certificationStatus": "CertificationActive",
"issuedBy": {
"type": "Organization",
"schema:name": "CO2 Trust",
"url": "https://www.co2trust.com/"
},
"logo": "https://www.co2trust.com/c02-measured-logo.jpg",
"hasMeasurement": {
"@type": "QuantitativeValue",
"schema:name": "CO2e",
"value": 0.158,
"unitCode": "KGM"
}
}
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "ecdsa-rdfc-2019",
"created": "2023-12-11T14:58:20Z",
"verificationMethod": "https://certification.example/issuers/14#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z5dqTceMhzmpFSfwEphYDnWJJiAtcGaitiZ2FgpRWEcLJmfQBRMUpaTihmhpdHbiMJN9Ranx1PXLaGSePQjV74nLC"
}
}
</script>
TYPES: #eg-0486 Certification
PRE-MARKUP:
Example of a product certification for carbon footprint and a W3C verifiable credential
(https://w3c.github.io/vc-data-model/). In this example the certification information is
assumed to be present on another url. The verifiable credential is specified separate
from the product itself on the same url.
MICRODATA:
<!-- JSON-LD example only -->
RDFA:
<!-- JSON-LD example only -->
JSON:
<script type="application/ld+json">
[
{
"@context": "https://schema.org/",
"@type": "Product",
"@id": "https://www.example.com/12345678901231",
"sku": "1234-5678",
"image": "https://www.example.com/waterheater.jpg",
"name": "Water heater",
"description": "Large capacity water heater",
"gtin14": "12345678901231",
"mpn": "WH1234",
"brand": {
"@type": "Brand",
"name": "ExampleWaterHeaterBrand"
},
"hasCertification": {
"@type": "Certification",
"@id": "https://www.co2trust.com/12345678901231"
},
"offers": {
"@type": "Offer",
"url": "https://www.example.com/hotwaterheater",
"itemCondition": "https://schema.org/NewCondition",
"availability": "https://schema.org/InStock",
"price": 1799,
"priceCurrency": "EUR"
}
},
{
"@context": [
"https://schema.org",
"https://www.w3.org/ns/credentials/v2"
],
"id": "http://certification.example/credentials/3732",
"type": "VerifiableCredential",
"issuer": "https://certification.example/issuers/14",
"validFrom": "2023-01-01T19:23:24Z",
"credentialSubject": {
"type": "Product",
"id": "https://www.example.com/12345678901231"
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "ecdsa-rdfc-2019",
"created": "2023-12-11T14:58:20Z",
"verificationMethod": "https://certification.example/issuers/14#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z5dqTceMhzmpFSfwEphYDnWJJiAtcGaitiZ2FgpRWEcLJmfQBRMUpaTihmhpdHbiMJN9Ranx1PXLaGSePQjV74nLC"
}
}
]
</script>
TYPES: #eg-0487 Certification
PRE-MARKUP:
A mobile phone product certified by the FCC and bearing the CE mark.
MICRODATA:
<!-- JSON-LD example only -->
RDFA:
<!-- JSON-LD example only -->
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"hasCertification": [
{
"@type": "Certification",
"name": "FCC",
"certificationStatus": "http://schema.org/CertificationActive",
"certificationIdentification": {
"@type": "DefinedTerm",
"termCode": "BCG-E3307A",
"inDefinedTermSet": "https://apps.fcc.gov/coresWeb/publicHome.do"
},
"logo": "https://www.fcc.gov/sites/default/files/fcc-logo-black-2020-large.png",
"issuedBy": {
"@type": "Organization",
"url": "https://www.fcc.gov/",
"name": "Federal Communications Commission"
}
},
{
"@type": "Certification",
"certificationStatus": "http://schema.org/CertificationActive",
"name": "CE",
"issuedBy": {
"@type": "Organization",
"url": "https://europa.eu/",
"name": "European Commission"
}
}
]
}
</script>
TYPES: #eg-0488 Certification
PRE-MARKUP:
A FIPS compliant hardware security module, with the actual certification files hosted by
NIST (https://csrc.nist.gov). We assume there is no Schema.org Certification object present
on the actual certification page hosted by the certification body, so we include it in the
product itself.
MICRODATA:
<!-- JSON-LD example only -->
RDFA:
<!-- JSON-LD example only -->
JSON:
<script type="application/ld+json">
{
"@context": [
"https://schema.org",
"https://www.w3.org/ns/credentials/v2"
],
"@type": "VerifiableCredential",
"validFrom": "2022-01-01T16:00:00Z",
"id": "http://certification.example/credentials/99876",
"issuer": "https://certification.example/issuers/1562",
"credentialSubject": {
"type": "Product",
"schema:name": "WolfCrypt",
"hasCertification": {
"type": "Certification",
"schema:name": "FIPS 140-2",
"url": "https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/3389",
"certificationStatus": "CertificationActive",
"issuedBy": {
"type": "Organization",
"schema:name": "NIST",
"url": "https://www.nist.gov"
},
"certificationIdentification": "3389",
"certificationRating": {
"@type": "Rating",
"ratingValue": 1,
"bestRating": 4,
"worstRating": 1
},
"expires": "2024-03-03"
}
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "ecdsa-rdfc-2019",
"created": "2023-12-11T13:00:00Z",
"verificationMethod": "https://certification.example/issuers/1562#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "998qTceMhzmpFSfwEphYDnWJJiAtcGaitiZ2FgpRWEcLJmfQBRMUpaTihmhpdHbiMJN9Ranx1PXLaGSePQjV74nLC"
}
}
</script>