aboutsummaryrefslogtreecommitdiff
path: root/app/utils/dataset_schema.json
blob: 2d94ecbfb21ec240868eba6163b6143d9c89abdb (plain)
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
{
	"definitions": {},
	"$schema": "http://json-schema.org/draft-07/schema#",
	"$id": "http://example.com/root.json",
	"type": "object",
	"title": "Dataset Schema",
	"default": null,
	"required": [
		"name",
		"n_obs",
		"n_dim",
		"series"
	],
	"properties": {
		"name": {
			"$id": "#/properties/name",
			"type": "string",
			"title": "The Name Schema",
			"default": "",
			"pattern": "^(.*)$"
		},
		"longname": {
			"$id": "#/properties/longname",
			"type": "string",
			"title": "The Longname Schema",
			"default": "",
			"pattern": "^(.+)$"
		},
		"n_obs": {
			"$id": "#/properties/n_obs",
			"type": "integer",
			"title": "The N_obs Schema",
			"default": 0
		},
		"n_dim": {
			"$id": "#/properties/n_dim",
			"type": "integer",
			"title": "The N_dim Schema",
			"default": 0
		},
		"demo": {
			"$id": "#/properties/demo",
			"type": "object",
			"title": "The Demo Schema",
			"properties": {
				"true_CPs": {
					"$id": "#/properties/demo/properties/true_CPs",
					"type": "array",
					"items": {
						"$id": "#/properties/demo/properties/true_CPs/items",
						"type": "integer",
						"title": "The Items Schema",
						"default": null
					}
				}
			}
		},
		"time": {
			"$id": "#/properties/time",
			"type": "object",
			"title": "The Time Schema",
			"default": null,
			"required": [
				"format",
				"raw"
			],
			"properties": {
				"format": {
					"$id": "#/properties/time/properties/format",
					"type": "string",
					"title": "The Format Schema",
					"default": "",
					"pattern": "^(.*)$"
				},
				"raw": {
					"$id": "#/properties/time/properties/raw",
					"type": "array",
					"title": "The Raw Schema",
					"items": {
						"$id": "#/properties/time/properties/raw/items",
						"type": "string",
						"title": "The Items Schema",
						"default": ""
					}
				}
			}
		},
		"series": {
			"$id": "#/properties/series",
			"type": "array",
			"title": "The Series Schema",
			"items": {
				"$id": "#/properties/series/items",
				"type": "object",
				"title": "The Variable Schema",
				"default": null,
				"properties": {
					"label": {
						"$id": "#/properties/series/items/properties/label",
						"type": "string",
						"title": "The Label Schema",
						"default": "",
						"pattern": "^(.*)$"
					},
					"type": {
						"$id": "#/properties/series/items/properties/type",
						"type": "string",
						"title": "The Type Schema",
						"default": "",
						"pattern": "^(.*)$"
					},
					"raw": {
						"$id": "#/properties/series/items/properties/raw",
						"type": "array",
						"title": "The Raw Schema",
						"items": {
							"$id": "#/properties/series/items/properties/raw/items",
							"title": "The Items Schema",
							"default": 0
						}
					}
				},
				"required": [
					"type",
					"raw"
				]
			}
		}
	}
}