JSON Schema: Rights_statement

URI Template

Properties

- (string) rights_type

- (string (max length: 255)) identifier

- (string) status

- (date) determination_date

- (date) start_date

- (date) end_date

- (string (max length: 255)) license_terms

- (string (max length: 255)) statute_citation

- (string) jurisdiction

- (string) other_rights_basis

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

- (array (JSONModel(:rights_statement_act) object)) acts

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

- (array (JSONModel(:note_rights_statement) object)) notes

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

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",

    "properties" => {
      "rights_type" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "rights_statement_rights_type"},
      "identifier" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "required" => false},

      "status" => {"type" => "string", "required" => false, "dynamic_enum" => "rights_statement_ip_status"},
      "determination_date" => {"type" => "date", "required" => false},
      "start_date" => {"type" => "date", "required" => false},
      "end_date" => {"type" => "date", "required" => false},

      "license_terms" => {"type" => "string", "maxLength" => 255, "required" => false},

      "statute_citation" => {"type" => "string", "maxLength" => 255, "required" => false},
      "jurisdiction" => {"type" => "string", "required" => false, "dynamic_enum" => "country_iso_3166"},

      "other_rights_basis" => {"type" => "string", "required" => false, "dynamic_enum" => "rights_statement_other_rights_basis"},

      "external_documents" => {"type" => "array", "items" => {"type" => "JSONModel(:rights_statement_external_document) object"}},
      "acts" => {"type" => "array", "items" => {"type" => "JSONModel(:rights_statement_act) object"}},
      "linked_agents" => {
        "type" => "array",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "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"
            }
          }
        }
      },
      "notes" => {
        "type" => "array",
        "items" => {"type" => "JSONModel(:note_rights_statement) object"},
      },
    },
  },
}

Plain Text Version