-
Notifications
You must be signed in to change notification settings - Fork 1
/
iscc.json
519 lines (519 loc) · 23.2 KB
/
iscc.json
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
{
"title": "iscc-collection",
"type": "object",
"description": "Collection of all ISCC Metadata fields",
"examples": [
{
"iscc": "ISCC:KACYPXW445FTYNJ3CYSXHAFJMA2HUWULUNRFE3BLHRSCXYH2M5AEGQY"
}
],
"properties": {
"@context": {
"type": "string",
"format": "uri",
"default": "http://purl.org/iscc/context/0.3.7.jsonld",
"description": "The [JSON-LD](https://json-ld.org/) Context URI for ISCC metadata.",
"readOnly": true
},
"@type": {
"type": "string",
"readOnly": true,
"default": "CreativeWork",
"enum": [
"CreativeWork",
"TextDigitalDocument",
"ImageObject",
"AudioObject",
"VideoObject"
],
"description": "The type of digital content according to schema.org classes (TextDigitalDocument, ImageObject, AudioObject, VideoObject)."
},
"$schema": {
"type": "string",
"format": "uri",
"default": "http://purl.org/iscc/schema/0.3.7.json",
"description": "The [JSON Schema](https://json-schema.org/) URI for ISCC metadata.",
"readOnly": true,
"x-iscc-context": "http://purl.org/iscc/terms/#$schema"
},
"iscc": {
"type": "string",
"description": "An **ISCC-CODE** in canonical representation. This is the minimal required field for a valid ISCC Metadata object.",
"example": "ISCC:KACYPXW445FTYNJ3CYSXHAFJMA2HUWULUNRFE3BLHRSCXYH2M5AEGQY",
"minLength": 15,
"maxLength": 73,
"pattern": "^ISCC:[A-Z2-7]{10,73}$"
},
"iscc_id": {
"type": "string",
"description": "The **ISCC-ID** of the digital content in canonical representation.",
"example": "ISCC:MAACAJINXFXA2SQX",
"minLength": 15,
"maxLength": 73,
"pattern": "^ISCC:[A-Z2-7]{10,73}$",
"x-iscc-context": "http://schema.org/identifier",
"x-iscc-schema-doc": "The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"example": "The Never Ending Story",
"description": "The title or name of the intangible creation manifested by the identified *digital content*. **Used as input for ISCC Meta-Code generation**.",
"x-iscc-context": "http://schema.org/name",
"x-iscc-schema-doc": "The name of the item.",
"x-iscc-embed": "Use `Iptc.Application2.Headline` and `Xmp.photoshop.Headline` for image embedding"
},
"description": {
"type": "string",
"example": "a 1984 fantasy film co-written and directed by *Wolfgang Petersen*",
"minLength": 1,
"maxLength": 4096,
"description": "Description of the *digital content* identified by the **ISCC**. **Used as input for ISCC Meta-Code generation**. Any user presentable text string (including Markdown text) indicative of the identity of the referent may be used.",
"x-iscc-context": "http://schema.org/disambiguatingDescription",
"x-iscc-schema-doc": "A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.",
"x-iscc-embed": "Use `Exif.Image.ImageDescription`, `Iptc.Application2.Caption` and `Xmp.dc.description` for image embedding."
},
"meta": {
"type": "string",
"maxLength": 16384,
"example": "data:application/json;charset=utf-8;base64,eyJleHRlbmRlZCI6Im1ldGFkYXRhIn0=",
"description": "Subject, industry, or use-case specific metadata encoded as Data-URL.",
"x-iscc-context": "http://purl.org/iscc/terms/#meta",
"x-iscc-status": "stable"
},
"mode": {
"type": "string",
"enum": [
"text",
"image",
"audio",
"video",
"mixed"
],
"example": "video",
"description": "The perceptual mode used to create the ISCC-CODE."
},
"creator": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": [
{
"type": "string"
}
]
}
],
"description": "An entity primarily responsible for making the resource.",
"example": "Agatha Christie",
"x-iscc-context": "http://schema.org/creator",
"x-iscc-schema-doc": "The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.",
"x-iscc-embed": "Use `Exif.Image.Artist`, `Iptc.Application2.Byline` and `Xmp.dc.creator` for emedding this field into image metadata."
},
"license": {
"type": "string",
"format": "uri",
"description": "URI of license for the identified *digital content*.",
"example": "https://example.com/license-terms-for-this-item",
"x-iscc-context": "http://schema.org/license",
"x-iscc-schema-doc": "A license document that applies to this content, typically indicated by URL.",
"x-iscc-embed": "Use `Xmp.xmpRights.WebStatement` for embedding as image metadata."
},
"acquire": {
"type": "string",
"format": "uri",
"description": "This field must contain a valid URL referring to a page showing information about how one can acquire a license for the item. This may be a page of a web shop or NFT marketplace ready for providing a license.",
"example": "https://example.com/buy-license-for-item-here",
"x-iscc-context": "http://schema.org/acquireLicensePage",
"x-iscc-schema-doc": "Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.",
"x-iscc-embed": "Use `Xmp.plus.Licensor[1]/plus:LicensorURL` for embedding in images."
},
"credit": {
"type": "string",
"description": "A line of text that you expect users of the image (such as Google Images) to display alongside the image.",
"example": "Frank Farian - Getty Images",
"x-iscc-context": "http://schema.org/creditText",
"x-iscc-schema-doc": "Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.",
"x-iscc-embed": "Use `Iptc.Application2.Credit` and `Xmp.photoshop.Credit` for metadata embedding."
},
"rights": {
"type": "string",
"description": "Contains any necessary copyright notice and should identify the current owner of the copyright of this work with associated intellectual property rights.",
"example": "© Copyright 2022 ISCC Foundation - www.iscc.codes",
"x-iscc-context": "http://schema.org/copyrightNotice",
"x-iscc-schema-doc": "Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.",
"x-iscc-embed": "Use `Exif.Image.Copyright`, `Iptc.Application2.Copyright` and `Xmp.dc.rights` for embedding."
},
"original": {
"type": "boolean",
"description": "The signee of the declaring transaction claims to be the original creator of the work manifested by the identified digital content.",
"example": true,
"x-iscc-context": "http://purl.org/iscc/terms/#original"
},
"credentials": {
"oneOf": [
{
"type": "string"
},
{
"type": "object"
},
{
"type": "array"
}
],
"description": "One or more [Verifiable Credentials](https://www.w3.org/TR/vc-data-model/) or one ore more URIs pointing to one or more VCs. A reader of ISCC metadata must interpret the value according to the following rules <ul> <li>If the value is a string interpret it as an URI. The expectation is that the URI dereferences to a response with Content-type `application/json` where the data is a VC or an `array` of VCs.</li><li>If the value is a JSON `object` interpret it as a VC according to the [Verifiable Credentials JSON Schema](https://w3c-ccg.github.io/vc-json-schemas/).</li><li>If the value is an `array` and an item in the `array` is a JSON `object` interpret it as a VC.</li><li>If the value is an `array` and an items is a `string` interpret the item as an URI that dereferences to VC(s)</li><li>Credentials should only be taken into account if the [`credentialSubject`](https://www.w3.org/2018/credentials/#property-definitions) matches with the declarer (e.g. [`did:pkh`](https://github.com/w3c-ccg/did-pkh/blob/main/did-pkh-method-draft.md) representation of the declarers address).</li> </ul>",
"example": "https://schema.iscc.codes/examples/vc.json",
"x-iscc-context": "https://www.w3.org/2018/credentials#VerifiableCredential",
"x-iscc-schema-doc": "A credential is a set of one or more claims made by an issuer. A verifiable credential is a tamper-evident credential that has authorship that can be cryptographically verified. Verifiable credentials can be used to build verifiable presentations, which can also be cryptographically verified. The claims in a credential can be about different subjects."
},
"verifications": {
"description": "A list of self-verifications. Self-verifications are public URLs under the account/authority of the signee. The verification URL must respond to a GET request with text that contains a multihash of the ISCC declaration signees wallet address in the format of `verify:<multihash-of-wallet-address>:verify`.",
"example": [
{
"url": "https://twitter.com/titusz/status/1490104312051257347"
}
],
"type": "array",
"items": {
"type": "object"
},
"maxItems": 128,
"uniqueItems": true,
"x-iscc-context": "http://purl.org/iscc/terms/#verifications"
},
"media_id": {
"type": "string",
"description": "Vendor specific (internal) identifier for the source media file.",
"example": "05VQ3BGTGFCJA",
"x-iscc-context": "http://schema.org/identifier",
"x-iscc-schema-doc": "The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links."
},
"image": {
"type": "string",
"format": "uri",
"description": "URI for a user-presentable image that serves as a preview of the *digital content*. The URI may be a Data-URL [RFC2397](https://datatracker.ietf.org/doc/html/rfc2397). If **ISCC** metadata is used as NFT metadata according to [ERC-721](https://ethereum.org/en/developers/docs/standards/tokens/erc-721/) or [ERC-1155](https://ethereum.org/en/developers/docs/standards/tokens/erc-1155/) the URI should reference the actual digital content represented by the NFT.",
"example": "https://picsum.photos/200/300.jpg",
"x-iscc-context": "http://schema.org/image",
"x-iscc-schema-doc": "An image of the item. This can be a URL or a fully described ImageObject."
},
"identifier": {
"description": "Other identifier(s) referencing the work, product or other abstraction of which the referenced **digital content** is a full or partial manifestation.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": [
{
"type": "string"
}
]
}
],
"x-iscc-context": "http://schema.org/identifier",
"x-iscc-schema-doc": "The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details."
},
"content": {
"description": "URI of the *digital content* that was used to create this ISCC.",
"type": "string",
"format": "uri",
"x-iscc-context": "http://schema.org/contentUrl",
"x-iscc-schema-doc": "Actual bytes of the media object, for example the image file or video file."
},
"keywords": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": [
{
"type": "string"
}
]
}
],
"description": "Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas.",
"x-iscc-context": "http://schema.org/keywords",
"x-iscc-schema-doc": "Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas."
},
"redirect": {
"type": "string",
"description": "URL to which an ISCC resolver should redirect the ISCC-ID. **Supports URI template `(iscc-id)`**",
"example": "https://example.com/land-here-when-resolving-iscc-id",
"format": "uri",
"x-iscc-context": "http://purl.org/iscc/terms/#redirect"
},
"previous": {
"description": "ISCC of the preceding version of this item.",
"type": "string",
"x-iscc-context": "http://purl.org/iscc/terms/#previous"
},
"version": {
"description": "The version of the CreativeWork embodied by a specified resource.",
"type": [
"integer",
"string"
],
"x-iscc-context": "http://schema.org/version",
"x-iscc-schema-doc": "The version of the *digital content* identified by the ISCC."
},
"created": {
"description": "Datetime the ISCC was created for the item.",
"type": "string",
"format": "date-time",
"readOnly": true,
"x-iscc-context": "http://schema.org/dateCreated",
"x-iscc-schema-doc": "The date on which the CreativeWork was created or the item was added to a DataFeed."
},
"filename": {
"type": "string",
"readOnly": true,
"description": "Filename of the referenced **digital content** (automatically used as fallback if the `name` field was not specified for ISCC processing)",
"x-iscc-context": "http://purl.org/iscc/terms/#filename"
},
"filesize": {
"type": "integer",
"readOnly": true,
"description": "File size of media asset in number of bytes.",
"x-iscc-context": "http://schema.org/fileSize",
"x-iscc-schema-doc": "Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed."
},
"mediatype": {
"type": "string",
"readOnly": true,
"description": "An [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml) (MIME type)",
"example": "image/png",
"x-iscc-context": "http://schema.org/encodingFormat",
"x-iscc-schema-doc": "Media type typically expressed using a MIME format (see IANA site and MDN reference) e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.). In cases where a CreativeWork has several media type representations, encoding can be used to indicate each MediaObject alongside particular encodingFormat information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry."
},
"duration": {
"type": "integer",
"readOnly": true,
"description": "Duration of audio-visual media in secondes.",
"x-iscc-context": "http://schema.org/duration",
"x-iscc-schema-doc": "The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](https://en.wikipedia.org/wiki/ISO_8601)."
},
"fps": {
"readOnly": true,
"type": "number",
"description": "Frames per second of video assets.",
"format": "float",
"example": 24,
"x-iscc-context": "http://purl.org/iscc/terms/#fps",
"minimum": 1
},
"width": {
"readOnly": true,
"type": "integer",
"description": "Width of visual media in number of pixels.",
"format": "int32",
"example": 640,
"x-iscc-context": "http://purl.org/iscc/terms/#width"
},
"height": {
"readOnly": true,
"type": "integer",
"description": "Height of visual media in number of pixels.",
"format": "int32",
"example": 480,
"minimum": 1,
"x-iscc-context": "http://purl.org/iscc/terms/#height"
},
"characters": {
"readOnly": true,
"type": "integer",
"description": "Number of text characters (code points after Unicode normalization)",
"example": 55689,
"x-iscc-context": "http://purl.org/iscc/terms/#characters"
},
"pages": {
"readOnly": true,
"type": "integer",
"description": "Number of pages (for paged documents only)",
"example": 77,
"x-iscc-context": "http://schema.org/numberOfPages",
"x-iscc-schema-doc": "The number of pages in the book."
},
"language": {
"description": "Language(s) of content [BCP 47](https://tools.ietf.org/search/bcp47).",
"example": "en-US",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": [
{
"type": "string"
}
]
}
],
"x-iscc-context": "http://schema.org/inLanguage",
"x-iscc-schema-doc": "The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](https://www.rfc-editor.org/info/bcp47). See also [availableLanguage](https://schema.org/availableLanguage)."
},
"parts": {
"type": "array",
"description": "Indicates items that are part of this item via Content-Codes (inverse-property belongs).",
"x-iscc-context": "http://purl.org/iscc/terms/#parts",
"items": {
"type": "string"
}
},
"part_of": {
"type": "array",
"description": "Indicates that this item is part of other items via their Content-Code.",
"x-iscc-context": "http://purl.org/iscc/terms/#part_of",
"items": {
"type": "string"
}
},
"features": {
"readOnly": true,
"type": "array",
"description": "Granular features of the *digital content*.",
"x-iscc-context": "http://purl.org/iscc/terms/#features",
"items": {
"type": "object"
}
},
"generator": {
"readOnly": true,
"type": "string",
"description": "Name and version of the software that generated the ISCC",
"x-iscc-context": "http://purl.org/iscc/terms/#generator"
},
"external_url": {
"description": "This is the URL that will appear below the asset's image on some NFT Marketplaces and will allow users to leave the site and view the item on your site. **Supports URI template `(iscc-id)`**.",
"type": "string",
"format": "uri",
"x-iscc-context": "http://purl.org/iscc/terms/#external_url",
"x-iscc-category": "nft"
},
"animation_url": {
"description": "A URL to a multi-media attachment for the item.",
"type": "string",
"format": "uri",
"x-iscc-context": "http://purl.org/iscc/terms/#animation_url",
"x-iscc-category": "nft"
},
"properties": {
"description": "Arbitrary properties. Values may be strings, numbers, object or arrays. Properties defined here may show up on NFT marketplaces. See [ERC-1155](https://eips.ethereum.org/EIPS/eip-1155#metadata)",
"type": "object",
"example": {
"simple_property": "example value",
"rich_property": {
"name": "Name",
"value": "123",
"display_value": "123 Example Value",
"class": "emphasis",
"css": {
"color": "#ffffff",
"font-weight": "bold",
"text-decoration": "underline"
}
},
"array_property": {
"name": "Name",
"value": [
1,
2,
3,
4
],
"class": "emphasis"
}
},
"x-iscc-context": "http://purl.org/iscc/terms/#properties",
"x-iscc-category": "nft"
},
"attributes": {
"description": "Similar to `properties` but as an array of objects. These attributes will show up on some NFT marketplaces.",
"example": [
{
"trait_type": "METAL",
"value": "SILVER"
},
{
"display_type": "number",
"trait_type": "GENERATION",
"value": 1
}
],
"type": "array",
"items": {
"type": "object"
},
"x-iscc-context": "http://purl.org/iscc/terms/#attributes",
"x-iscc-category": "nft"
},
"nft": {
"description": "A unique URI for a non-fungible token of the identified content. The URI must contain references to the blockchain, smart-contract and token. The recommended schemes are [CAIP-22](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-22.md) and [CAIP-29](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-29.md).",
"type": "string",
"format": "uri",
"example": "eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/771769",
"x-iscc-context": "http://purl.org/iscc/terms/#nft",
"x-iscc-category": "nft"
},
"tophash": {
"type": "string",
"readOnly": true,
"minLength": 40,
"example": "bdyqnosmb56tqudeibogyygmf2b25xs7wpg4zux4zcts2v6llqmnj4ja",
"description": "A [Multihash](https://multiformats.io/multihash/) of the concatenation (binding) of metahash and datahash (default blake3).",
"x-iscc-context": "http://purl.org/iscc/terms/#tophash"
},
"metahash": {
"type": "string",
"minLength": 40,
"example": "f01551220b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
"readOnly": true,
"description": "A [Multiformats](https://multiformats.io) multihash or IPFS CIDv1 of the supplied metadata. The hash is created from `name` and `description` fields or `meta` if supplied.",
"x-iscc-context": "http://purl.org/iscc/terms/#metahash"
},
"datahash": {
"type": "string",
"minLength": 40,
"example": "bdyqk6e2jxh27tingubae32rw3teutg6lexe23qisw7gjve6k4qpteyq",
"readOnly": true,
"description": "A [Multihash](https://multiformats.io/multihash/) of the *digital content* (default blake3).",
"x-iscc-context": "http://purl.org/iscc/terms/#datahash"
},
"chain": {
"type": "string",
"description": "The blockchain on which an ISCC-CODE is declared.",
"example": "ETHEREUM",
"enum": [
"PRIVATE",
"BITCOIN",
"ETHEREUM",
"POLYGON"
],
"x-iscc-context": "http://purl.org/iscc/terms/#chain"
},
"wallet": {
"type": "string",
"description": "The wallet-address that signs an ISCC declaration.",
"example": "0xb794f5ea0ba39494ce839613fffba74279579268",
"x-iscc-context": "http://purl.org/iscc/terms/#wallet"
},
"thumbnail": {
"type": "string",
"description": "URI an autogenerated user-presentable thumbnail-image that serves as a preview of the digital content. The URI may be a Data-URL RFC2397.",
"format": "uri",
"example": "https://picsum.photos/200/300.jpg",
"x-iscc-context": "http://schema.org/thumbnailUrl",
"x-iscc-schema-doc": "A thumbnail image relevant to the Thing.",
"x-iscc-status": "stable"
}
}
}