Skip to content

fields.csv: Subrecords/fields that can be uri or object not yet handled #15

Description

@kspurgin

Need to discuss how these are best represented, given how they are typically populated in migration work.

These include:

PATTERN

{"type" => "array", "items" => {"type" => "JSONModel(:rectype) uri_or_object"}, "ifmissing" => "error", "minItems" => 1}

PROPERTIES

[<#AspaceDataTools::Doc::Property:2370 rectype: subject, name: terms !>]

PATTERN

{"type" => "array",
 "items" =>
  {"type" => "object",
   "subtype" => "ref",
   "properties" =>
    {"role" => {"type" => "string", "dynamic_enum" => "enum_name", "ifmissing" => "error"},
     "terms" => {"type" => "array", "items" => {"type" => "JSONModel(:rectype) uri_or_object"}},
     "relator" => {"type" => "string", "dynamic_enum" => "enum_name"},
     "title" => {"type" => "string"},
     "ref" => {"type" => [{"type" => "JSONModel(:rectype)"}], "ifmissing" => "error"},
     "is_primary" => {"type" => "boolean", "default" => false},
     "_resolved" => {"type" => "object", "readonly" => "true"},
     "_inherited" => {"type" => "object", "subtype" => "ref", "properties" => {"ref" => {"type" => "string"}, "level" => {"type" => "string"}, "direct" => {"type" => "boolean"}}}}}}

PROPERTIES

[<#AspaceDataTools::Doc::Property:2400 rectype: archival_object, name: linked_agents !>,
 <#AspaceDataTools::Doc::Property:2410 rectype: digital_object, name: linked_agents !>,
 <#AspaceDataTools::Doc::Property:2420 rectype: digital_object_component, name: linked_agents !>,
 <#AspaceDataTools::Doc::Property:2430 rectype: resource, name: linked_agents !>]

PATTERN

{"type" => "array",
 "items" =>
  {"type" => "object",
   "subtype" => "ref",
   "properties" =>
    {"role" => {"type" => "string", "dynamic_enum" => "enum_name", "ifmissing" => "error"},
     "terms" => {"type" => "array", "items" => {"type" => "JSONModel(:rectype) uri_or_object"}},
     "title" => {"type" => "string"},
     "relator" => {"type" => "string", "dynamic_enum" => "enum_name"},
     "is_primary" => {"type" => "boolean", "default" => false},
     "ref" => {"type" => [{"type" => "JSONModel(:rectype)"}], "ifmissing" => "error"},
     "_resolved" => {"type" => "object", "readonly" => "true"}}}}

PROPERTIES

[<#AspaceDataTools::Doc::Property:2440 rectype: accession, name: linked_agents !>]

Metadata

Metadata

Assignees

Labels

known issueKnown issuesquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions