Test Case CSIP2
CSIP2
Testable: TRUE Schema Valid: Valid Description: mets/@TYPE MUST exist. mets/@TYPE MUST have a value from the VocabularyContentCategory as defined by DILCIS Board. If mets/@TYPE = “OTHER” then mets/@csip:OTHERTYPE MUST exist and have a value.
Rules
-
Rule ID: 1
Descripton: mets/@TYPE MUST exist.
ERROR: mets/@TYPE attribute does not exist. MUST be: attribute exists and has a value.
Packages:
mets-xml_mets_TYPE_attribute_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.90s True E-ARK Python Validator v1.1.3.dev7 0 invalid 2.84s True E-ARK Python Validator v1.1.3 0 invalid 0.38s 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.88s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.80s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 2
Descripton: mets/@TYPE MUST have a value from the VocabularyContentCategory as defined by DILCIS Board.
ERROR: mets/@TYPE attribute has incorrect value. MUST be: attribute has a value from the VocabularyContentCategory as defined by DILCIS.
Packages:
mets-xml_mets_TYPE_attribute_value_incorrect
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.90s True E-ARK Python Validator v1.1.3.dev7 0 invalid 2.90s True E-ARK Python Validator v1.1.3 0 invalid 0.38s 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.88s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.80s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 3
Descripton: If mets/@TYPE = “OTHER” then mets/@csip:OTHERTYPE MUST exist.
ERROR: mets/@csip:OTHERTYPE attribute does not exist. MUST be: If mets/@TYPE = “OTHER” then mets/@csip:OTHERTYPE MUST exist and have a value.
Packages:
mets-xml_mets_TYPE_attribute_value_OTHER_and_csip-OTHERTYPE_attribute_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.92s True E-ARK Python Validator v1.1.3.dev7 0 invalid 2.81s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True valid_minimal_mets_TYPE_value_OTHER
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.88s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.80s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 4
Descripton: If mets/@TYPE = “OTHER” then mets/@csip:OTHERTYPE MUST exist and have a value.
ERROR: mets/@csip:OTHERTYPE attribute has no value. MUST be: If mets/@TYPE = “OTHER” then mets/@csip:OTHERTYPE MUST exist and have a value.
Packages:
mets-xml_mets_TYPE_attribute_value_OTHER_and_csip-OTHERTYPE_attribute_has_no_value
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.88s True E-ARK Python Validator v1.1.3.dev7 0 invalid 2.81s True E-ARK Python Validator v1.1.3 0 invalid 0.38s True valid_minimal_mets_TYPE_value_OTHER
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.88s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.80s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False