METS
Introduction
METS is an international standard defined by the Library of Congress. It defines a metadata XML, which allows for describing a structured set of physical files (files and their metadata) and non-physical objects (i.e. metadata-only containers). MediaHaven uses it to describe a structured set of files grouped together in a ZIP file. By adding the METS XML inside the ZIP, this combination of files and metadata forms a Submission Information Package (SIP) defined by the OAIS standard.
Complete Examples
Validation
METS XML forms a skeleton structure with additional embedded metadata from other standards. As such the validation of the METS XML using XSD requires several XSD files. In particular, the XSD validation of the METS inside the SIP requires the following 3 XSDs
XSD | Version | Link |
---|---|---|
METS XSD | 1.12 | |
Premis XSD | 3.0 | |
MediaHaven XSD | 20.3 |
Structure
Record Types in StructMap
The attribute TYPE
in mets:div
must refer to a valid record type. These types are configurable and additional ones can be configured.
For the newspaper ingest the following record types are applicable:
Newspaper
NewspaperPage
Media
Representation
Sip
For DigiHaven the following records types are available (non exhaustive list)
Dossier
Document
Representation
StructMap
FileSec
Metadata
By using the attribute DMDID
on the element mets:div
in the section mets:structMap
we can link it to metadata described in the sections mets:dmdSec
. In the new format the embedded metadata is the new https://mediahaven.atlassian.net/wiki/spaces/CS/pages/488964146 format.
The example below includes the field ExternalId
.
Important: Metadata must be defined for each Newspaper and NewspaperPage inside the StructMap and should contain at least a title (<mhs:Descriptive><mh:Title>...</mh:Title></mhs:Descriptive>
).
Events
By using the attribute
AMDID
on the elementmets:div
in the sectionmets:structMap
we can link it to events described in the sectionsmets:amdSec
.The premis event will be validated against the premis XSD 3.0, premis V2 is not supported
Provided events will be stored in MediaHaven as actual premis events for the object
Benefits
Provided events are visible in the monitoring for the object
Provided events are validated to be syntactically correct → ensures stability of OAI and webhooks
Future screen in MediaHaven 2.0 will show these events
Mapping of
premis:event
into MediaHavenPart of the premis event recognised by MediaHaven (first agent, type, date, outcome, first comment) will be extracted
The complete premis event in XML will be fully stored as extra column
When returning events in the API in XML, the original premis event XML enhanced with the extra identifier is returned
Storage Location
By using the attribute “USE” on the element mets:file
inside the mets:fileSec
you can control whether or not to
USE="Tape"
Store the object on tapesUSE="Disk"
Store the object on disk(s)
Common mistakes
The value of the attribute ID must be a valid XML tag name which has the following rules:
Must be unique within the METS xml
Must start with a letter or underscore
Cannot start with the letters xml (or XML, or Xml, etc)
Can contain letters, digits, hyphens, underscores, and periods
Cannot contain spaces
Because the value of the attribute xlink:href
must be a valid URI, you will have to URI encode its value if the path to the file contains illegal URI symbols such as ?
%
etc.