Mets-bag-checker

From COPTR
Jump to navigation Jump to search


METS Bag checker is a simple python tool to check the validity of METS Information Packages (XML validity, completeness, Data Objects fixity, absence of unreferenced files).
Homepage:Unknown
Source Code:https://framagit.org/BCaron/mets-bag-checker
License:GNU GPLv3
Language:python
Input Formats:METS (Metadata Encoding and Transmission Standard)
Function:Fixity,Validation




Description[edit]

METS Bag checker is a simple python tool to help METS implementers with little IT resources checking the validitiy of their Information Packages (below abbreviated as "IP(s)"). The term "bag" refers to the BagIt standard (RFC 8493), as this tool is based on some basic rules, similar to those defined by BagIt, in order to perform checks on IPs. Note that these conventions are not enforced by the METS standard itself but are of common usage in METS implementations:

  • Manifest at the root Package (directory) level;
  • Same manifest name in all Packages - or at least predictable, according to a given pattern -;
  • Reference to all files contained in the Package by //mets:file elements;
  • Reference to the Package files' via a relative path in the //mets:file/mets:FLocat/@xlink:href attribute;
  • Use of //mets:file/@CHECKSUM and //mets:file/@CHECKSUMTYPE attributes to specify file checksum calculated with MD5, SHA-1, SHA-256, SHA-384 or SHA-512 algorithm.

Please note that this is a personal project by Bertrand Caron (Bibliothèque nationale de France).