{ "$schema": "http://json-schema.org/draft-06/schema#", "title": "Fileset", "description": "Relevant groupings of Files. Also called a File Grouping.", "type": "object", "required": ["@context", "@type", "externalIdentifier", "internalIdentifier", "label", "version", "administrative", "access", "identification", "structural"], "properties": { "@context": { "description": "URI for the JSON-LD context definitions.", "type": "string" }, "@type": { "description": "The content type of the Fileset.", "type": "string", "enum": [ "http://cocina.sul.stanford.edu/models/fileset.jsonld" ] }, "depositor": { "description": "The Agent (User, Group, Application, Department, other) that deposited the Fileset into SDR.", "$ref": "Agent.json" }, "label": { "description": "Primary processing label (can be same as title) for a Fileset.", "type": "string" }, "externalIdentifier": { "description": "Identifier for the resource within the SDR architecture but outside of the repository. UUID. Constant across resource versions. What clients will use calling the repository. Same as `identification.identifier`", "type": "string" }, "internalIdentifier": { "description": "Identifier for the resource within the repository. UUID, unique for each new version of a repository resource.", "type": "string" }, "version": { "description": "Version for the Fileset within SDR.", "type": "integer" }, "precedingVersion": { "description": "Preceding version for the Fileset within SDR.", "type": "string" }, "followingVersion": { "description": "Following version for the Fileset within SDR.", "type": "string" }, "access": { "description": "Access Metadata for the Fileset.", "type": "object", "required": ["access", "download"], "properties": { "access": { "description": "Access level for the Fileset.", "type": "string", "enum": ["world", "stanford", "location-based", "citation-only", "dark"] }, "download": { "description": "Download level for the Fileset metadata.", "type": "string", "enum": ["world", "stanford", "location-based", "citation-only", "dark"] } } }, "administrative": { "type": "object", "description": "Administrative metadata for the SDR resource.", "required": ["created", "sdrPreserve"], "properties": { "created": { "description": "When the resource in SDR was created.", "type": "string", "format": "date-time" }, "deleted": { "description": "If the resource has been deleted (but not purged).", "type": "boolean" }, "gravestoneMessage": { "description": "Message describing why the resource was deleted.", "type": "string" }, "lastUpdated": { "description": "When the resource in SDR was last updated.", "type": "string", "format": "date-time" }, "partOfProject": { "description": "Administrative or Internal project this resource is a part of.", "type": "string" }, "sdrPreserve": { "description": "If this resource should be sent to Preservation.", "type": "boolean" }, "remediatedBy": { "description": "The Agent (User, Group, Application, Department, other) that remediated a Fileset in SDR.", "type": "array", "items": { "$ref": "Agent.json" } } } }, "identification": { "description": "Identifying information for the Fileset.", "type": "object", "required": ["identifier"], "properties": { "identifier": { "description": "Identifier for the Fileset within the Stanford Digital Repository system", "type": "string" }, "sdrUUID": { "type": "string", "description": "UUID previously minted for the resource within SDR2 / Fedora 3." } } }, "structural": { "description": "Structural metadata for the Fileset.", "type": "object", "required": ["isContainedBy"], "properties": { "contains": { "description": "Files that are members of the fileset.", "type": "array", "items": { "$ref": "File.json" } }, "isContainedBy": { "description": "Parent DRO that is represented by the files in this Fileset.", "type": "string" }, "isTargetOf": { "description": "An Annotation instance that applies to this Fileset.", "type": ["string", "null"] } } } } }