forked from peterataylor/om-json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TimeseriesTVP.json
78 lines (78 loc) · 2.71 KB
/
TimeseriesTVP.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesTVP.json",
"title": "TimeseriesTVP",
"description": "A TimeseriesML time-value pair encoded timeseries",
"type": "object",
"definitions": {
"TVPairMeasure" : {
"type":"object",
"description":"A time-value pair with a measure value.",
"properties" : {
"time": {
"type":"object",
"$ref":"http://raw.githubusercontent.com/peterataylor/om-json/master/Temporal.json#/definitions/temporalPrimitive"
},
"value": {
"type":"number"
},
"metadata": {
"type":"object",
"$ref":"http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesMetadata.json#/definitions/PointMetadata"
}
},
"additionalProperties":false
},
"TVPairCategory" : {
"type":"object",
"description":"A time-value pair with a catgeory result.",
"properties" : {
"time": {
"type":"object",
"$ref":"http://raw.githubusercontent.com/peterataylor/om-json/master/Temporal.json#/definitions/temporalPrimitive"
},
"value": {
"type":"object",
"$ref":"http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm"
}
},
"additionalProperties":false
}
},
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "Identifier for the time-series",
"type":"string"
},
"type": {
"title": "type",
"description": "Identifies the type of time-series",
"type": "string"
},
"metadata": {
"title": "metadata",
"description": "Metadata about the timeseries.",
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesMetadata.json#/definitions/TimeseriesMetadata"
},
"defaultPointMetadata": {
"title": "defaultPointMetadata",
"description": "Default metadata for each point in the timeseries (can be overridden on a per-point basis).",
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesMetadata.json#/definitions/PointMetadata"
},
"points": {
"title": "points",
"description": "The data points (time, value pairs) for the timeseries.",
"type":"array",
"items": {
"oneOf" : [
{ "$ref": "#/definitions/TVPairMeasure" },
{ "$ref": "#/definitions/TVPairCategory" }
]
}
}
},
"required": [ "id", "points" ],
"additionalProperties": false
}