-
Notifications
You must be signed in to change notification settings - Fork 5
/
media-table-schema.json
135 lines (135 loc) · 4.2 KB
/
media-table-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
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
131
132
133
134
135
{
"name": "media",
"title": "Media",
"description": "Table with media files (images/videos) recorded during deployments (`deploymentID`). Includes timestamp and file path.",
"fields": [
{
"name": "mediaID",
"description": "Unique identifier of the media file.",
"skos:broadMatch": "http://purl.org/dc/terms/identifier",
"type": "string",
"constraints": {
"required": true,
"unique": true
},
"example": "m1"
},
{
"name": "deploymentID",
"description": "Identifier of the deployment the media file belongs to. Foreign key to `deployments.deploymentID`.",
"skos:broadMatch": "http://rs.tdwg.org/dwc/terms/parentEventID",
"type": "string",
"constraints": {
"required": true
},
"example": "dep1"
},
{
"name": "captureMethod",
"description": "Method used to capture the media file.",
"skos:broadMatch": "http://rs.tdwg.org/ac/terms/resourceCreationTechnique",
"type": "string",
"constraints": {
"required": false,
"enum": [
"activityDetection",
"timeLapse"
]
},
"example": "activityDetection"
},
{
"name": "timestamp",
"description": "Date and time at which the media file was recorded. Formatted as an ISO 8601 string with timezone designator (`YYYY-MM-DDThh:mm:ssZ` or `YYYY-MM-DDThh:mm:ss±hh:mm`).",
"skos:exactMatch": "http://ns.adobe.com/xap/1.0/CreateDate",
"type": "datetime",
"format": "%Y-%m-%dT%H:%M:%S%z",
"constraints": {
"required": true
},
"example": "2020-03-24T11:21:46Z"
},
{
"name": "filePath",
"description": "URL or relative path to the media file, respectively for externally hosted files or files that are part of the package.",
"skos:broadMatch": "http://rs.tdwg.org/ac/terms/accessURI",
"type": "string",
"constraints": {
"required": true,
"pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$"
},
"example": "https://multimedia.agouti.eu/assets/6d65f3e4-4770-407b-b2bf-878983bf9872/file"
},
{
"name": "filePublic",
"description": "`false` if the media file is not publicly accessible (e.g. to protect the privacy of people).",
"skos:broadMatch": "http://rs.tdwg.org/ac/terms/serviceExpectation",
"type": "boolean",
"constraints": {
"required": true
},
"example": true
},
{
"name": "fileName",
"description": "Name of the media file. If provided, one should be able to sort media files chronologically within a deployment on `timestamp` (first) and `fileName` (second).",
"type": "string",
"constraints": {
"required": false
},
"example": "IMG0001.jpg"
},
{
"name": "fileMediatype",
"description": "Mediatype of the media file. Expressed as an [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml).",
"skos:broadMatch": "http://purl.org/dc/elements/1.1/format",
"type": "string",
"constraints": {
"required": true,
"pattern": "^(image|video|audio)\/.*$"
},
"example": "image/jpeg"
},
{
"name": "exifData",
"description": "EXIF data of the media file. Formatted as a valid JSON object.",
"type": "any",
"constraints": {
"required": false
},
"example": "{\"EXIF\":{\"ISO\":200,\"Make\":\"RECONYX\"}}"
},
{
"name": "favorite",
"description": "`true` if the media file is deemed of interest (e.g. an exemplar image of an individual).",
"type": "boolean",
"constraints": {
"required": false
},
"example": true
},
{
"name": "mediaComments",
"description": "Comments or notes about the media file.",
"skos:exactMatch": "http://rs.tdwg.org/ac/terms/comments",
"type": "string",
"constraints": {
"required": false
},
"example": "corrupted file"
}
],
"missingValues": [
""
],
"primaryKey": "mediaID",
"foreignKeys": [
{
"fields": "deploymentID",
"reference": {
"resource": "deployments",
"fields": "deploymentID"
}
}
]
}