Difference between revisions of "Mets-bag-checker"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* Same manifest name in all Packages - or at least predictable, according to a given pattern -; | * 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 all files contained in the Package by //mets:file elements; | ||
− | * Reference to the Package files' via a relative path in the //mets:file/@xlink:href attribute; | + | * 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. | * 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). | Please note that this is a personal project by Bertrand Caron (Bibliothèque nationale de France). |
Latest revision as of 10:50, 4 September 2024
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).