JSON Schema: Accession

URI Template

/repositories/:repo_id/accessions

Properties

- (string) uri

- (array (JSONModel(:external_id) object)) external_ids

- (string (max length: 8192)) title

- (string (max length: 8192)) display_string

- (string) slug

- (boolean) is_slug_auto

- (string (max length: 255)) id_0

- (string (max length: 255)) id_1

- (string (max length: 255)) id_2

- (string (max length: 255)) id_3

- (string (max length: 65000)) content_description

- (string (max length: 65000)) condition_description

- (string (max length: 65000)) disposition

- (string (max length: 65000)) inventory

- (string (max length: 65000)) provenance

- (array ([{"type"=>"JSONModel(:accession_parts_relationship) object"}, {"type"=>"JSONModel(:accession_sibling_relationship) object"}])) related_accessions

- (date) accession_date

- (boolean) publish

- (array (Object (ref, _resolved))) classifications

- (array (Object (ref, _resolved))) subjects

- (array (Object (ref, _resolved))) linked_events

- (array (JSONModel(:extent) object)) extents

- (array (JSONModel(:lang_material) object)) lang_materials

- (array (JSONModel(:date) object)) dates

- (array (JSONModel(:external_document) object)) external_documents

- (array (JSONModel(:rights_statement) object)) rights_statements

- (array (JSONModel(:deaccession) object)) deaccessions

- (JSONModel(:collection_management) object) collection_management

- (JSONModel(:user_defined) object) user_defined

- (array (Object (ref, _resolved))) related_resources

- (array (Object (ref, _resolved))) component_links

- (boolean) suppressed

- (string) acquisition_type

- (string) resource_type

- (string) language

- (string) script

- (boolean) restrictions_apply

- (string (max length: 65000)) retention_rule

- (string (max length: 65000)) general_note

- (boolean) access_restrictions

- (string (max length: 65000)) access_restrictions_note

- (boolean) use_restrictions

- (string (max length: 65000)) use_restrictions_note

- (array (Object (role, terms, title, relator, is_primary, ref, _resolved))) linked_agents

- (array (JSONModel(:instance) object)) instances

- (array (JSONModel(:metadata_rights_declaration) object)) metadata_rights_declarations

- (JSONModel(:file_version) object) representative_file_version

View Source


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
# File 'common/schemas/accession.rb', line 1

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "uri" => "/repositories/:repo_id/accessions",
    "properties" => {
      "uri" => {"type" => "string", "required" => false},

      "external_ids" => {"type" => "array", "items" => {"type" => "JSONModel(:external_id) object"}},

      "title" => {"type" => "string", "maxLength" => 8192, "ifmissing" => nil},
      "display_string" => {"type" => "string", "maxLength" => 8192, "readonly" => true},

      "slug" => {"type" => "string"},
      "is_slug_auto" => {"type" => "boolean", "default" => true},

      "id_0" => {"type" => "string", "ifmissing" => "error", "maxLength" => 255},
      "id_1" => {"type" => "string", "maxLength" => 255},
      "id_2" => {"type" => "string", "maxLength" => 255},
      "id_3" => {"type" => "string", "maxLength" => 255},

      "content_description" => {"type" => "string", "maxLength" => 65000},
      "condition_description" => {"type" => "string", "maxLength" => 65000},

      "disposition" => {"type" => "string", "maxLength" => 65000},
      "inventory" => {"type" => "string", "maxLength" => 65000},

      "provenance" => {"type" => "string", "maxLength" => 65000},

      "related_accessions" => {
        "type" => "array",
        "items" => {
          "type" => [
            {"type" => "JSONModel(:accession_parts_relationship) object"},
            {"type" => "JSONModel(:accession_sibling_relationship) object"}
          ]
        },
      },


      "accession_date" => {"type" => "date", "minLength" => 1, "default" => "9999-12-31"},

      "publish" => {"type" => "boolean"},
      "classifications" => {
              "type" => "array",
              "items" => {
                "type" => "object",
                "subtype" => "ref",
                "properties" => {
                  "ref" => {
                    "type" => [ { "type" => "JSONModel(:classification) uri"},
                                { "type" => "JSONModel(:classification_term) uri" }],
                    "ifmissing" => "error"
                  },
                  "_resolved" => {
                                "type" => "object",
                                "readonly" => "true"
                              }
                }
              }
      },

      "subjects" => {
        "type" => "array",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => "JSONModel(:subject) uri",
              "ifmissing" => "error"
            },
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
        }
      },

      "linked_events" => {
        "type" => "array",
        "readonly" => "true",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => "JSONModel(:event) uri",
              "ifmissing" => "error"
            },
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
        }
      },

      "extents" => {"type" => "array", "items" => {"type" => "JSONModel(:extent) object"}},
      "lang_materials" => {"type" => "array", "items" => {"type" => "JSONModel(:lang_material) object"}},
      "dates" => {"type" => "array", "items" => {"type" => "JSONModel(:date) object"}},
      "external_documents" => {"type" => "array", "items" => {"type" => "JSONModel(:external_document) object"}},
      "rights_statements" => {"type" => "array", "items" => {"type" => "JSONModel(:rights_statement) object"}},
      "deaccessions" => {"type" => "array", "items" => {"type" => "JSONModel(:deaccession) object"}},
      "collection_management" => {"type" => "JSONModel(:collection_management) object"},
      "user_defined" => {"type" => "JSONModel(:user_defined) object"},

      "related_resources" => {
        "type" => "array",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => [{"type" => "JSONModel(:resource) uri"}],
              "ifmissing" => "error"
            },
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
        }
      },

      "component_links" => {
        "type" => "array",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => [{"type" => "JSONModel(:archival_object) uri"}],
              "ifmissing" => "error"
            },
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
        }
      },

      "suppressed" => {"type" => "boolean", "readonly" => "true"},

      "acquisition_type" => {"type" => "string", "dynamic_enum" => "accession_acquisition_type"},

      "resource_type" => {"type" => "string", "dynamic_enum" => "accession_resource_type"},

      "language" => {"type" => "string", "dynamic_enum" => "language_iso639_2"},

      "script" => {"type" => "string", "dynamic_enum" => "script_iso15924"},

      "restrictions_apply" => {"type" => "boolean", "default" => false},

      "retention_rule" => {"type" => "string", "maxLength" => 65000},

      "general_note" => {"type" => "string", "maxLength" => 65000},

      "access_restrictions" => {"type" => "boolean", "default" => false},
      "access_restrictions_note" => {"type" => "string", "maxLength" => 65000},

      "use_restrictions" => {"type" => "boolean", "default" => false},
      "use_restrictions_note" => {"type" => "string", "maxLength" => 65000},

      "linked_agents" => {
        "type" => "array",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "role" => {
              "type" => "string",
              "dynamic_enum" => "linked_agent_role",
              "ifmissing" => "error"
            },

            "terms" => {"type" => "array", "items" => {"type" => "JSONModel(:term) uri_or_object"}},

            "title" => {"type" => "string"},

            "relator" => {
              "type" => "string",
              "dynamic_enum" => "linked_agent_archival_record_relators",
            },

            "is_primary" => {"type" => "boolean", "default" => false},

            "ref" => {"type" => [{"type" => "JSONModel(:agent_corporate_entity) uri"},
                                 {"type" => "JSONModel(:agent_family) uri"},
                                 {"type" => "JSONModel(:agent_person) uri"},
                                 {"type" => "JSONModel(:agent_software) uri"}],
              "ifmissing" => "error"},
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
        }
      },

      "instances" => {"type" => "array", "items" => {"type" => "JSONModel(:instance) object"}},

      "metadata_rights_declarations" => {"type" => "array", "items" => {"type" => "JSONModel(:metadata_rights_declaration) object"}},

      "representative_file_version" => {
        "type" => "JSONModel(:file_version) object",
        "readonly" => true
      },
    },
  },
}

Plain Text Version