...
This content consists of three types of files:
- The user-content files (such as PDF, TIFF, TXT, MP4, etc.)
- RDF files containing user-properties related to the OCFL object and/or user's content files
- Fedora-specific JSON "header" files containing system-properties related to the OCFL object and/or user's content files
For each user-content and RDF user-properties file, Fedora needs to retain system metadata to have a full interpretation of the file. These "system metadata" files are call Fedora Header Files.
...
All header files are serialized as JSON documents according to the following JSON Schema:
Code Block | ||||
---|---|---|---|---|
| ||||
{
"$schema": "http://json-schema.org/draft/2019-09/schema#",
"$id": "https://fedora.info/schemas/2020/06/06/headers.json"
"type": "object",
"properties": {
"id": {"type": "string", "format": "uri"},
"parent": {"type": "string", "format": "uri"},
"stateToken": {"type": "string"},
"interactionModel": {"type": "string", "format": "uri",
"enum": ["http://www.w3.org/ns/ldp#NonRDFSource",
"http://www.w3.org/ns/ldp#RDFSource",
"http://www.w3.org/ns/ldp#RDFSource",
"http://www.w3.org/ns/ldp#Container",
"http://www.w3.org/ns/ldp#BasicContainer",
"http://www.w3.org/ns/ldp#DirectContainer",
"http://www.w3.org/ns/ldp#IndirectContainer",
"http://fedora.info/definitions/v4/repository#ArchivalGroup",
"http://fedora.info/definitions/v4/repository#NonRdfSourceDescription",
"http://fedora.info/definitions/v4/webac#Acl" ]
},
"createdDate": {"type": "date-time"} "2020-06-03T23:59:00.284677Z",
"createdBy": {"type": "string"}
"lastModifiedDate": {"type": "date-time"} "2020-06-03T23:59:00.284677Z",
"lastModifiedBy": {"type": "string"} "2020-06-03T23:59:00.284677Z",
"archivalGroup": {"type": "boolean"},
"objectRoot": {"type": "boolean"},
"deleted": {"type": "boolean"}
},
"required": ["parent", "id"],
"additionalProperties": false
$comment NonRDFSource resources have additional properties
"if": {
"properties": {"interactionModel": {"const": "http://www.w3.org/ns/ldp#NonRDFSource" }
},
"then": {
"properties": {
"mimeType": {"type": "string"},
"filename": {"type": "string"},
"contentSize": {"type": "integer"},
"digests": {"type": "array",
"items": {"type": "uri"} },
"externalUrl": {"type": "uri"}
"externalHandling": {"type": "enum"}
},
"required": ["mimeType", "filename", "contentSize", "digests"]
}
}
| ||||
No Format | ||||
...the schema... |
Header files associated with user-content files
...