-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathasset.json
115 lines (113 loc) · 2.96 KB
/
asset.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
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
{
"$schema": "http://json-schema.org/draft-06/schema#",
"id": "asset.json#",
"title": "Asset / Feature / Collection / Thingy",
"type": "object",
"description":
"This object represents the metadata associated with a thingy.",
"additionalProperties": true,
"allOf": [
{
"$ref": "#/definitions/core"
},
{
"properties": {
"properties": {
"required": ["startDate", "endDate", "links"]
}
},
"required": ["id", "type", "geometry"]
}
],
"definitions": {
"core": {
"allOf": [
{
"oneOf": [
{ "$ref": "geojson.json#/definitions/feature" },
{ "$ref": "geojson.json#/definitions/featurecollection" }
]
},
{
"type": "object",
"properties": {
"geometry": {
"properties": {
"type": {
"enum": ["Polygon", "MultiPolygon"]
}
}
},
"id": {
"title": "Provider ID",
"description": "Provider item ID",
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"startDate": {
"title": "Date Start",
"description": "First date/time",
"type": "string",
"format": "date-time"
},
"endDate": {
"title": "Date End",
"description": "Last date/time",
"type": "string",
"format": "date-time"
},
"provider": {
"title": "Provider",
"description": "Provider name and contact",
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/entity"
}
]
},
"license": {
"title": "Data license",
"description": "Data license name based on SPDX License List"
},
"links": {
"title": "Resource links",
"description":
"Links to resources, could be download or other URLs",
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri"
}
}
}
}
}
}
]
},
"entity": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"phone": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
}
}
}