-
Notifications
You must be signed in to change notification settings - Fork 7
/
submission_schema.json
56 lines (56 loc) · 1.9 KB
/
submission_schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://hepdata.net/submission/schemas/1.1.1/submission_schema.json",
"title": "Submission table",
"description": "Metadata for a HEPData table apart from independent_variables and dependent_variables",
"type": "object",
"properties": {
"name": { "type": "string", "maxLength": 64 },
"related_to_table_dois" : {
"type" : "array",
"uniqueItems": true,
"items" : {"type" : "string", "maxLength" : 128, "pattern" : "^10\\.17182\/hepdata\\.\\d+\\.v\\d+\/t\\d+$" }
},
"location": { "type": "string", "maxLength": 256 },
"description": { "type": "string"},
"keywords": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string", "maxLength": 128, "enum": ["cmenergies", "observables", "reactions", "phrases"] },
"values": {
"type": "array",
"items": { "type": [ "string", "number" ], "maxLength": 128 }
}
},
"required": [ "name", "values" ],
"additionalProperties": false
}
},
"data_file": { "type": "string" },
"data_schema": {
"type": "string",
"description": "Remote location of the JSON schema for the data_file"
},
"data_license": {
"type": "object",
"properties": {
"name": { "type": "string", "maxLength": 256 },
"url": { "type": "string", "maxLength": 256 },
"description": { "type": "string" }
},
"required": [ "name", "url" ],
"additionalProperties": false
},
"additional_resources": {
"$ref": "additional_resources_schema.json"
},
"table_doi": {
"type": "string",
"description": "Present if a user downloads YAML from an existing HEPData record"
}
},
"required": ["name", "description", "keywords", "data_file"],
"additionalProperties": false
}