aboutsummaryrefslogtreecommitdiff
path: root/app/utils/dataset_schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils/dataset_schema.json')
-rw-r--r--app/utils/dataset_schema.json130
1 files changed, 130 insertions, 0 deletions
diff --git a/app/utils/dataset_schema.json b/app/utils/dataset_schema.json
new file mode 100644
index 0000000..2aec504
--- /dev/null
+++ b/app/utils/dataset_schema.json
@@ -0,0 +1,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": "^(.*)$"
+ },
+ "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": [
+ "type",
+ "format",
+ "raw"
+ ],
+ "properties": {
+ "type": {
+ "$id": "#/properties/time/properties/type",
+ "type": "string",
+ "title": "The Type Schema",
+ "default": "",
+ "pattern": "^(.*)$"
+ },
+ "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",
+ "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"
+ ]
+ }
+ }
+ }
+}