-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfileData.json
More file actions
216 lines (216 loc) · 5.97 KB
/
fileData.json
File metadata and controls
216 lines (216 loc) · 5.97 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"$id": "http://openvre.bsc.es/metadata/schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VRE-DEV Schema file data",
"description": "",
"type": "object",
"properties": {
"_id": {
"type": "string",
"title": "VRE identifier",
"description": "A string uniquely identifying the VRE ",
"pattern": "^[a-z,A-Z]{1,5}(USER|ANON)[a-z,0-9]{1,}_[a-z,0-9]{1,}[.][0-9]{1,}$",
"readOnly": true
},
"name": {
"type": "string",
"title": "Name",
"description": "A string that can be used to name. Automatically set up as the file basename."
},
"size": {
"type": "integer",
"title": "Size",
"description": "For blobs, the blob size in bytes. For bundles, the cumulative size, in bytes, of directory",
"readOnly": true
},
"atime": {
"type": "string",
"title": "Creation time",
"description": "Timestamp of content creation",
"format": "date-time",
"readOnly": true
},
"mtime": {
"type": "string",
"title": "Modification time",
"description": "Timestamp of content update",
"format": "date-time",
"readOnly": true
},
"expiration": {
"title": "Expiration",
"description": "Timestamp of content expiration before authomatic deletion",
"anyOf": [
{
"type": "number",
"minimum": -1,
"maximum": -1
},
{
"type": "string",
"format": "date-time"
}
],
"readOnly": true
},
"lastAccess": {
"type": "string",
"title": "Last Access",
"description": "Timestamp of last content access",
"format": "date-time",
"readOnly": true
},
"checksums": {
"type": "array",
"title": "Checksums",
"description": "The hex-string encoded checksum for the data",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"checksum": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"sha-256",
"sha-256-128",
"sha-256-120",
"sha-256-96",
"sha-256-64",
"sha-256-32",
"sha-384",
"sha-512",
"sha3-224",
"sha3-256",
"sha3-384",
"sha3-512"
]
}
}
},
"readOnly": true
},
"path": {
"type": "string",
"title": "Local Path",
"description": "Resource path relative to the App datastore",
"format": "uri-reference",
"readOnly": true
},
"url": {
"type": "string",
"title": "Remote Path (URL)",
"description": "Resource access URL",
"format": "uri",
"readonly": true
},
"type": {
"type": "string",
"title": "Type",
"description": "Type of VRE data object",
"enum": [
"file",
"dir"
],
"default": "file",
"const": "file",
"readOnly": true
},
"files": {
"type": "array",
"title": "Directory contents",
"description": "File Identifiers bundled in the directory. Required only if type=dir.",
"items": {
"type": "string",
"pattern": "^[a-z,A-Z]{1,5}(USER|ANON)[a-z,0-9]{1,}_[a-z,0-9]{1,}[.][0-9]{1,}$"
},
"uniqueItems": true,
"readOnly": true,
"default": []
},
"parentDir": {
"type": "string",
"title": "Parent Directory",
"description": "Parent directory of file",
"pattern": "^[a-z,A-Z]{1,5}(USER|ANON)[a-z,0-9]{1,}_[a-z,0-9]{1,}[.][0-9]{1,}$",
"readOnly": true
},
"project": {
"type": "string",
"title": "Project Name",
"description": "_____TODO_____",
"pattern": "^__PROJ",
"readOnly": true
},
"owner": {
"type": "string",
"title": "Data Owner",
"description": "The owner of the file/directory",
"pattern": "^[a-z,A-Z]{1,5}(USER|ANON)[a-z,0-9]{1,}$",
"readOnly": true
},
"source_url": {
"type": "string",
"title": "Source URL",
"description": "Reference to the source URL",
"format": "uri"
},
"self_uri": {
"type": "string",
"title": "Self URI",
"description": "____TODO____",
"format": "uri",
"readOnly": true
},
"validated": {
"type": "boolean",
"title": "Valid Metadata",
"description": "Indicates if the full set of metadata is valid",
"default": false,
"readonly": true
},
"tool": {
"type": "string",
"title": "Tool (provenance data)",
"description": "Provenance metadata. VRE Tool or Process that generated the present data resource.",
"readonly": true
},
"log_file": {
"type": "string",
"title": "Log File Path (provenance data)",
"description": "Absolute path of the log file generated associated to the VRE process that generated the present data resouce. Only applicable if the resource is the result of a VRE process.",
"readonly": true
},
"submission_file": {
"type": "string",
"title": "Submission File Path (provenance data)",
"description": "Absolute path of the submission file generated associated to the VRE process that generated the present data resouce. Only applicable if the resource is the result of a VRE process.",
"readonly": true
},
"is_a": {
"type": "string",
"title": "Is a",
"description": "Extra specification on the data resource nature",
"enum": [
"project"
],
"readonly": true
},
"project_type": {
"type": "string",
"title": "Project Type",
"description": "Type of VRE project or workspace. Only applicable if the data resource is_a=project. ",
"enum": [
"private"
],
"readonly": true,
"default": "private"
}
},
"additionalProperties": false,
"options": {
"hidden": true
}
}