-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrosetta-csv-validation-schema-anz.json
189 lines (189 loc) · 6.81 KB
/
rosetta-csv-validation-schema-anz.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
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
{
"title": "Rosetta CSV Validation Schema - Archives NZ",
"description": "Draft schema for validating CSV files for ingest in Rosetta at Archives New Zealand.",
"validator": "http://csvlint.io/",
"standard" : "http://dataprotocols.org/json-table-schema/",
"fields": [
{
"name": "Object Type",
"description": "The type of object we're describing in the row.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": true,
"pattern": "^(SIP|IE|REPRESENTATION|FILE)$"
}
},
{
"name": "SIP Title",
"description": "Title of the SIP to ingest.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "Title (DC)",
"description": "Title of the digital object being uploaded.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "Access Rights Policy ID (IE)",
"description": "Rosetta access restriction key.",
"type": "http://www.w3.org/2001/XMLSchema#int",
"constraints": {
"required": false,
"pattern": "(^\\d{7}$|^$)"
}
},
{
"name": "Archway Unique ID (Object Identifier)",
"description": "Record number in Archive New Zealand's catalogue.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^R\\d{8}$|^$)"
}
},
{
"name": "Identifier - Archway Unique Id (DC)",
"description": "Record number in Archive New Zealand's catalogue.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^R\\d{8}$|^$)"
}
},
{
"name": "Archway Series Number",
"description": "Series number identifier as denoted by Archive New Zealand's catalogue.",
"type": "http://www.w3.org/2001/XMLSchema#int",
"constraints": {
"required": false,
"pattern": "(^\\d{5}$|^$)"
}
},
{
"name": "Provenance (dcterms)",
"description": "Code for originating agency, e.g. Archives New Zealand: AEZB.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^[A-Z]{4}$|^$)"
}
},
{
"name": "IE Entity Type",
"description": "Essence of the content found in the digital object.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^(ANZ_NotDetermined)$|^$)"
}
},
{
"name": "Submission Reason",
"description": "Overarching reason for submission into Rosetta, e.g. Digital Transfer.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^(DigitalTransfer)$|^$)"
}
},
{
"name": "Revision Number",
"description": "Version of the file to be uploaded.",
"type": "http://www.w3.org/2001/XMLSchema#int",
"constraints": {
"required": false,
"pattern": "(^\\d{1,2}$|^$)"
}
},
{
"name": "Usage Type",
"description": "What we can do with file instance in Rosetta, e.g. VIEW.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^(VIEW)$|^$)"
}
},
{
"name": "Representation Code",
"description": "Is this file a digital original?",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^(True|False)$|^$)"
}
},
{
"name": "Preservation Type",
"description": "Preservation purpose of file instance in Rosetta, e.g. Preservation Master.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^(PRESERVATION_MASTER|DERIVATIVE_COPY)$|^$)"
}
},
{
"name": "Digital Original",
"description": "Is this file a digital original?",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "File Original Path",
"description": "Directory path to location of file to be uploaded. Path begins at root of ZIP and does not begin with an opening slash. Does not contain filename",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "File Original Name",
"description": "File name, including extension, of file to be uploaded.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "File Label",
"description": "File label as an alternative to name.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "MD5",
"description": "Hash generated for the file to be uploaded.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false,
"pattern": "(^([a-fA-F\\d]{32})$|^$)"
}
},
{
"name": "File Modification Date (General File Characteristics)",
"description": "Date file was last modified.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
},
{
"name": "File Creation Date (General File Characteristics)",
"description": "Date file was created.",
"type": "http://www.w3.org/2001/XMLSchema#string",
"constraints": {
"required": false
}
}
]
}