Test Case CSIP80
CSIP80
Testable: TRUE Schema Valid: Valid Description: At least one structural map element must be present and follow all the requirements given in the CSIP. The tricky question seen from a validation perspective is how to determine and validate the correct structMap if for example two structMap exist which only partially live up to the requirements. The suggestion here is to let mets/structMap[@LABEL='CSIP'] (see CSIP82) determine that the StructMap elemement is the one to be validated. CSIP82 states: "The mets/structMap/@LABEL attribute value is set to “CSIP” from the vocabulary." and has the cardinality 1..1. This is also reflected in the explanatory text above the table with the StrucMap-requirements: "The structMap element’s @LABEL attribute is mandatory and must have the value “CSIP”. The @LABEL attribute distinguishes the CSIP mandated structural maps from other structural maps. NOTE this means that the “CSIP” @LABEL value should be treated as a unique id and not applied to other structMap elements!"
Rules
-
Rule ID: 1
Descripton: There should be one structMap-element in the METS.xml with a @LABEL attribute value "CSIP"
ERROR: There is no structMap-element with the @LABEL attribute value "CSIP". It MUST be there.
Packages:
IP_missing_strucMap_label_attribue_value
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.85s False E-ARK Python Validator v1.1.3.dev7 0 invalid 0.50s False E-ARK Python Validator v1.1.3 0 invalid 0.37s True minimal_IP_with_1_representation
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.93s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.82s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 2
Descripton: There should maximum one structMap-element in the METS.xml with a @LABEL attribute value "CSIP"
ERROR: There is more than one structMap-element with the @LABEL attribute value "CSIP".
Packages:
IP_two_strucMap_label_attribue_value
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.91s True E-ARK Python Validator v1.1.3.dev7 0 invalid 3.70s True E-ARK Python Validator v1.1.3 0 invalid 0.38s False minimal_IP_with_1_representation
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.93s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.82s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False