JSON Schema: Digital_object

URI Template

/repositories/:repo_id/digital_objects

Properties

- (string (max length: 255)) digital_object_id

- (string) level

- (string) slug

- (boolean) is_slug_auto

- (string) digital_object_type

- (array (JSONModel(:file_version) object)) file_versions

- (boolean) restrictions

- (object) tree

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

- (array ([{"type"=>"JSONModel(:note_bibliography) object"}, {"type"=>"JSONModel(:note_digital_object) object"}])) notes

- (JSONModel(:collection_management) object) collection_management

- (JSONModel(:user_defined) object) user_defined

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

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

View Source


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

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "parent" => "abstract_archival_object",
    "uri" => "/repositories/:repo_id/digital_objects",
    "properties" => {

      "digital_object_id" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error"},
      "level" => {"type" => "string", "dynamic_enum" => "digital_object_level"},
      "slug" => {"type" => "string"},
      "is_slug_auto" => {"type" => "boolean", "default" => true},
      "digital_object_type" => {
        "type" => "string",
        "dynamic_enum" => "digital_object_digital_object_type"
      },

      "file_versions" => {"type" => "array", "items" => {"type" => "JSONModel(:file_version) object"}},
      "restrictions" => {"type" => "boolean", "default" => false},
      "tree" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => "JSONModel(:digital_object_tree) uri",
              "ifmissing" => "error"
            },
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
      },
      "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"
                              }
                }
              }
      },

      "notes" => {
            "type" => "array",
            "items" => {"type" => [{"type" => "JSONModel(:note_bibliography) object"},
                                   {"type" => "JSONModel(:note_digital_object) object"}]},
          },
      "collection_management" => {"type" => "JSONModel(:collection_management) object"},
      "user_defined" => {"type" => "JSONModel(:user_defined) object"},

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

Plain Text Version