Difference between revisions of "Mets-bag-checker"

From COPTR
Jump to navigation Jump to search
(Creation of the tool's page)
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
|language=python
 
|language=python
 
|formats_in=METS (Metadata Encoding and Transmission Standard)
 
|formats_in=METS (Metadata Encoding and Transmission Standard)
|function=Validation, Fixity
+
|function=Fixity, Validation
 
}}
 
}}
 
{{Infobox tool details}}
 
{{Infobox tool details}}
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 <file> CHECKSUM and CHEcKSUMTYPE 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


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).