forked from usnistgov/mgi-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Collection.json
27 lines (27 loc) · 942 Bytes
/
Collection.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "Collection",
"description": "This schema is for creating a collection (i.e., a folder), which can contain of files, datasets, collections, samples, instruments, etc.",
"required": [
"@id",
"@context",
"@type"
],
"allOf": [
{
"@context": {
"type": "string",
"default": "http://schema.org/"
},
"@type": {
"type": "string",
"default": "Collection"
}
},
{"$ref": "definition-schemas/CordraObjectID.json#/definitions/CordraObjectID"},
{"$ref": "definition-schemas/Thing.json#/definitions/Thing"},
{"$ref": "definition-schemas/CreativeWork.json#/definitions/CreativeWork"},
{"$ref": "definition-schemas/Collection.json#/definitions/Collection"}
]
}