We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test case: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/testCase.xml contains the definition of 3 packages which should be invalid but the validator says they are valid. Valid according to the validator, but should be invalid: Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/invalid/CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value Output: struct result is: WellFormed {"uid":"977e360a0b234cda8a6345ce265d1d2b","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@type = 'Textual works � Print') or (@type = 'Textual works � Digital') or (@type = 'Textual works � Electronic Serials') or (@type = 'Digital Musical Composition (score-based representations)') or (@type = 'Musical Scores - Print') or (@type = 'Musical Scores - Digital') or (@type = 'Photographs � Print') or (@type = 'Photographs � Digital') or (@type = 'Other Graphic Images � Print') or (@type = 'Other Graphic Images � Digital') or (@type = 'Microforms') or (@type = 'Audio � On Tangible Medium (digital or analog)') or (@type = 'Audio � Media-independent (digital)') or (@type = 'Motion Pictures � Digital and Physical Media') or (@type = 'Video � File-based and Physical Media') or (@type = 'Software') or (@type = 'Software and Video Games') or (@type = 'Email') or (@type = 'Datasets') or (@type = 'Geospatial Data') or (@type = 'Geographic Information System (GIS) - Vector Data') or (@type = 'GIS Raster and Georeferenced Images') or (@type = 'GIS Vector and Raster Combined') or (@type = 'Non-GIS Cartographic') or (@type = '2D and 3D Computer Aided Design') or (@type = 'Design (schematics, architectural drawings) - Print') or (@type = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@type = 'Databases') or (@type = 'Websites') or (@type = 'Web Archives') or (@type = 'Collection') or (@type = 'Event') or (@type = 'Image') or (@type = 'Interactive resource') or (@type = 'Moving image') or (@type = 'Sound') or (@type = 'Still image') or (@type = 'Text') or (@type = 'Physical object') or (@type = 'Service') or (@type = 'Mixed') or (@type = 'Other')) and (@type != 'Other' or (@type = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@type attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@use = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@use attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @use attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @Label attribute value "Representations", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP2","severity":"Error","location":"/mets:mets@PROFILE = 'https://earksip.dilcis.eu/profile/E-ARK-SIP.xml'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The PROFILE attribute MUST contain the URL of the METS profile, for a SIP: https://earksip.dilcis.eu/profile/E-ARK-SIP.xml."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","label":"","type":"OTHER","profile":"https://earkcsip.dilcis.eu/profile/E-ARK-CSIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","label":"","oaispackagetype":"SIP","othertype":"Textual works - Manuscripts","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}
Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/invalid/CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1 Output: struct result is: WellFormed {"uid":"a13a48396dd84b079a82c061e158a2cc","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@type = 'Textual works � Print') or (@type = 'Textual works � Digital') or (@type = 'Textual works � Electronic Serials') or (@type = 'Digital Musical Composition (score-based representations)') or (@type = 'Musical Scores - Print') or (@type = 'Musical Scores - Digital') or (@type = 'Photographs � Print') or (@type = 'Photographs � Digital') or (@type = 'Other Graphic Images � Print') or (@type = 'Other Graphic Images � Digital') or (@type = 'Microforms') or (@type = 'Audio � On Tangible Medium (digital or analog)') or (@type = 'Audio � Media-independent (digital)') or (@type = 'Motion Pictures � Digital and Physical Media') or (@type = 'Video � File-based and Physical Media') or (@type = 'Software') or (@type = 'Software and Video Games') or (@type = 'Email') or (@type = 'Datasets') or (@type = 'Geospatial Data') or (@type = 'Geographic Information System (GIS) - Vector Data') or (@type = 'GIS Raster and Georeferenced Images') or (@type = 'GIS Vector and Raster Combined') or (@type = 'Non-GIS Cartographic') or (@type = '2D and 3D Computer Aided Design') or (@type = 'Design (schematics, architectural drawings) - Print') or (@type = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@type = 'Databases') or (@type = 'Websites') or (@type = 'Web Archives') or (@type = 'Collection') or (@type = 'Event') or (@type = 'Image') or (@type = 'Interactive resource') or (@type = 'Moving image') or (@type = 'Sound') or (@type = 'Still image') or (@type = 'Text') or (@type = 'Physical object') or (@type = 'Service') or (@type = 'Mixed') or (@type = 'Other')) and (@type != 'Other' or (@type = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@type attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@use = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@use attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @use attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @Label attribute value "Representations", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP2","severity":"Error","location":"/mets:mets@PROFILE = 'https://earksip.dilcis.eu/profile/E-ARK-SIP.xml'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The PROFILE attribute MUST contain the URL of the METS profile, for a SIP: https://earksip.dilcis.eu/profile/E-ARK-SIP.xml."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","label":"","type":"OTHER","profile":"https://earkcsip.dilcis.eu/profile/E-ARK-CSIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","label":"","oaispackagetype":"SIP","othertype":"Textual works - Manuscripts","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}
Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/invalid/CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists Output: struct result is: WellFormed {"uid":"115eda51b1dc4659aec5e928c8e3f6b0","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@type = 'Textual works � Print') or (@type = 'Textual works � Digital') or (@type = 'Textual works � Electronic Serials') or (@type = 'Digital Musical Composition (score-based representations)') or (@type = 'Musical Scores - Print') or (@type = 'Musical Scores - Digital') or (@type = 'Photographs � Print') or (@type = 'Photographs � Digital') or (@type = 'Other Graphic Images � Print') or (@type = 'Other Graphic Images � Digital') or (@type = 'Microforms') or (@type = 'Audio � On Tangible Medium (digital or analog)') or (@type = 'Audio � Media-independent (digital)') or (@type = 'Motion Pictures � Digital and Physical Media') or (@type = 'Video � File-based and Physical Media') or (@type = 'Software') or (@type = 'Software and Video Games') or (@type = 'Email') or (@type = 'Datasets') or (@type = 'Geospatial Data') or (@type = 'Geographic Information System (GIS) - Vector Data') or (@type = 'GIS Raster and Georeferenced Images') or (@type = 'GIS Vector and Raster Combined') or (@type = 'Non-GIS Cartographic') or (@type = '2D and 3D Computer Aided Design') or (@type = 'Design (schematics, architectural drawings) - Print') or (@type = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@type = 'Databases') or (@type = 'Websites') or (@type = 'Web Archives') or (@type = 'Collection') or (@type = 'Event') or (@type = 'Image') or (@type = 'Interactive resource') or (@type = 'Moving image') or (@type = 'Sound') or (@type = 'Still image') or (@type = 'Text') or (@type = 'Physical object') or (@type = 'Service') or (@type = 'Mixed') or (@type = 'Other')) and (@type != 'Other' or (@type = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@type attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@use = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@use attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @use attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @Label attribute value "Representations", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP2","severity":"Error","location":"/mets:mets@PROFILE = 'https://earksip.dilcis.eu/profile/E-ARK-SIP.xml'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The PROFILE attribute MUST contain the URL of the METS profile, for a SIP: https://earksip.dilcis.eu/profile/E-ARK-SIP.xml."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","label":"","type":"OTHER","profile":"https://earkcsip.dilcis.eu/profile/E-ARK-CSIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","label":"","oaispackagetype":"SIP","othertype":"Textual works - Manuscripts","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Test case: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/testCase.xml contains the definition of 3 packages which should be invalid but the validator says they are valid.
Valid according to the validator, but should be invalid:
Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/invalid/CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value
Output: struct result is: WellFormed
{"uid":"977e360a0b234cda8a6345ce265d1d2b","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@type = 'Textual works � Print') or (@type = 'Textual works � Digital') or (@type = 'Textual works � Electronic Serials') or (@type = 'Digital Musical Composition (score-based representations)') or (@type = 'Musical Scores - Print') or (@type = 'Musical Scores - Digital') or (@type = 'Photographs � Print') or (@type = 'Photographs � Digital') or (@type = 'Other Graphic Images � Print') or (@type = 'Other Graphic Images � Digital') or (@type = 'Microforms') or (@type = 'Audio � On Tangible Medium (digital or analog)') or (@type = 'Audio � Media-independent (digital)') or (@type = 'Motion Pictures � Digital and Physical Media') or (@type = 'Video � File-based and Physical Media') or (@type = 'Software') or (@type = 'Software and Video Games') or (@type = 'Email') or (@type = 'Datasets') or (@type = 'Geospatial Data') or (@type = 'Geographic Information System (GIS) - Vector Data') or (@type = 'GIS Raster and Georeferenced Images') or (@type = 'GIS Vector and Raster Combined') or (@type = 'Non-GIS Cartographic') or (@type = '2D and 3D Computer Aided Design') or (@type = 'Design (schematics, architectural drawings) - Print') or (@type = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@type = 'Databases') or (@type = 'Websites') or (@type = 'Web Archives') or (@type = 'Collection') or (@type = 'Event') or (@type = 'Image') or (@type = 'Interactive resource') or (@type = 'Moving image') or (@type = 'Sound') or (@type = 'Still image') or (@type = 'Text') or (@type = 'Physical object') or (@type = 'Service') or (@type = 'Mixed') or (@type = 'Other')) and (@type != 'Other' or (@type = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@type attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@use = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@use attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @use attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @Label attribute value "Representations", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP2","severity":"Error","location":"/mets:mets@PROFILE = 'https://earksip.dilcis.eu/profile/E-ARK-SIP.xml'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The PROFILE attribute MUST contain the URL of the METS profile, for a SIP: https://earksip.dilcis.eu/profile/E-ARK-SIP.xml."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","label":"","type":"OTHER","profile":"https://earkcsip.dilcis.eu/profile/E-ARK-CSIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_no_value","label":"","oaispackagetype":"SIP","othertype":"Textual works - Manuscripts","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}
Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/invalid/CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1
Output: struct result is: WellFormed
{"uid":"a13a48396dd84b079a82c061e158a2cc","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@type = 'Textual works � Print') or (@type = 'Textual works � Digital') or (@type = 'Textual works � Electronic Serials') or (@type = 'Digital Musical Composition (score-based representations)') or (@type = 'Musical Scores - Print') or (@type = 'Musical Scores - Digital') or (@type = 'Photographs � Print') or (@type = 'Photographs � Digital') or (@type = 'Other Graphic Images � Print') or (@type = 'Other Graphic Images � Digital') or (@type = 'Microforms') or (@type = 'Audio � On Tangible Medium (digital or analog)') or (@type = 'Audio � Media-independent (digital)') or (@type = 'Motion Pictures � Digital and Physical Media') or (@type = 'Video � File-based and Physical Media') or (@type = 'Software') or (@type = 'Software and Video Games') or (@type = 'Email') or (@type = 'Datasets') or (@type = 'Geospatial Data') or (@type = 'Geographic Information System (GIS) - Vector Data') or (@type = 'GIS Raster and Georeferenced Images') or (@type = 'GIS Vector and Raster Combined') or (@type = 'Non-GIS Cartographic') or (@type = '2D and 3D Computer Aided Design') or (@type = 'Design (schematics, architectural drawings) - Print') or (@type = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@type = 'Databases') or (@type = 'Websites') or (@type = 'Web Archives') or (@type = 'Collection') or (@type = 'Event') or (@type = 'Image') or (@type = 'Interactive resource') or (@type = 'Moving image') or (@type = 'Sound') or (@type = 'Still image') or (@type = 'Text') or (@type = 'Physical object') or (@type = 'Service') or (@type = 'Mixed') or (@type = 'Other')) and (@type != 'Other' or (@type = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@type attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@use = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@use attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @use attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @Label attribute value "Representations", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP2","severity":"Error","location":"/mets:mets@PROFILE = 'https://earksip.dilcis.eu/profile/E-ARK-SIP.xml'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The PROFILE attribute MUST contain the URL of the METS profile, for a SIP: https://earksip.dilcis.eu/profile/E-ARK-SIP.xml."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","label":"","type":"OTHER","profile":"https://earkcsip.dilcis.eu/profile/E-ARK-CSIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"CONTENTINFORMATIONTYPE_OTHER_and_OTHERCONTENTINFORMATIONTYPE_vocabulary_1","label":"","oaispackagetype":"SIP","othertype":"Textual works - Manuscripts","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}
Package: https://github.com/DILCISBoard/eark-ip-test-corpus/tree/integration/corpus/CSIP/CSIP63/invalid/CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists
Output: struct result is: WellFormed
{"uid":"115eda51b1dc4659aec5e928c8e3f6b0","structure":{"status":"WellFormed","messages":[{"rule_id":"CSIPSTR3","severity":"Info","location":"root CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","message":"The Information Package MAY be contained in an archive/compressed form, e.g. TAR or ZIP, for storage or transfer. The specific format details should be decided by the interested parties and documented, for example in a submission agreement or statement of access terms."},{"rule_id":"CSIPSTR8","severity":"Info","location":"root CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","message":"If any other metadata are available, they MAY be included in separate sub-folders, for example an additional folder named other."},{"rule_id":"CSIPSTR12","severity":"Warn","location":"rep1 representation","message":"The representation folder SHOULD include a metadata file named METS.xml which includes information about the identity and structure of the representation and its components. The recommended best practice is to always have a METS.xml in the representation folder."}]},"metadata":{"schema_results":{"status":"VALID","messages":[]},"schematron_results":{"status":"INVALID","messages":[{"rule_id":"CSIP2","severity":"Error","location":"/mets:mets((@type = 'Textual works � Print') or (@type = 'Textual works � Digital') or (@type = 'Textual works � Electronic Serials') or (@type = 'Digital Musical Composition (score-based representations)') or (@type = 'Musical Scores - Print') or (@type = 'Musical Scores - Digital') or (@type = 'Photographs � Print') or (@type = 'Photographs � Digital') or (@type = 'Other Graphic Images � Print') or (@type = 'Other Graphic Images � Digital') or (@type = 'Microforms') or (@type = 'Audio � On Tangible Medium (digital or analog)') or (@type = 'Audio � Media-independent (digital)') or (@type = 'Motion Pictures � Digital and Physical Media') or (@type = 'Video � File-based and Physical Media') or (@type = 'Software') or (@type = 'Software and Video Games') or (@type = 'Email') or (@type = 'Datasets') or (@type = 'Geospatial Data') or (@type = 'Geographic Information System (GIS) - Vector Data') or (@type = 'GIS Raster and Georeferenced Images') or (@type = 'GIS Vector and Raster Combined') or (@type = 'Non-GIS Cartographic') or (@type = '2D and 3D Computer Aided Design') or (@type = 'Design (schematics, architectural drawings) - Print') or (@type = 'Scanned 3D Objects (output from photogrammetry scanning)') or (@type = 'Databases') or (@type = 'Websites') or (@type = 'Web Archives') or (@type = 'Collection') or (@type = 'Event') or (@type = 'Image') or (@type = 'Interactive resource') or (@type = 'Moving image') or (@type = 'Sound') or (@type = 'Still image') or (@type = 'Text') or (@type = 'Physical object') or (@type = 'Service') or (@type = 'Mixed') or (@type = 'Other')) and (@type != 'Other' or (@type = 'Other' and @csip:OTHERTYPE != ''))/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The mets/@type attibute MUST be used to declare the category of the content held in the package, e.g. book, journal, stereograph, video, etc.. Legal values are defined in a fixed vocabulary."},{"rule_id":"CSIP45","severity":"Info","location":"/mets:mets/mets:amdSecmets:rightsMD/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='amdSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A simple rights statement may be used to describe general permissions for the package. Individual representations should state their specific rights in their representation METS file."},{"rule_id":"CSIP114","severity":"Error","location":"/mets:mets/mets:fileSecmets:fileGrp[@use = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']","message":"A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@use attribute value “Representations”."},{"rule_id":"CSIP74","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an ADMID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][1]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP61","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp@ADMID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]","message":"ADMID attribute used."},{"rule_id":"CSIP73","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@OWNERID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an OWNERID attribute."},{"rule_id":"CSIP75","severity":"Info","location":"/mets:mets/mets:fileSec/mets:fileGrp/mets:file@DMDID/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileSec' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='fileGrp' and namespace-uri()='http://www.loc.gov/METS/'][4]/[local-name()='file' and namespace-uri()='http://www.loc.gov/METS/']","message":"A file element has an DMDID attribute."},{"rule_id":"CSIP101","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When no representations are present the content referenced in the file section file group with @use attribute value “Representations” is described in the structural map as a single sub division."},{"rule_id":"CSIP103","severity":"Error","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"The package's content division div element must have the @Label attribute value "Representations", taken from the vocabulary."},{"rule_id":"CSIP105","severity":"Warn","location":"/mets:mets/mets:structMap[@Label = 'CSIP']/mets:divmets:div[@Label = 'Representations']/mets:div/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='structMap' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='div' and namespace-uri()='http://www.loc.gov/METS/']","message":"When a package consists of multiple representations, each described by a representation level METS.xml document, there should be a discrete representation div element for each representation."},{"rule_id":"SIP2","severity":"Error","location":"/mets:mets@PROFILE = 'https://earksip.dilcis.eu/profile/E-ARK-SIP.xml'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']","message":"The PROFILE attribute MUST contain the URL of the METS profile, for a SIP: https://earksip.dilcis.eu/profile/E-ARK-SIP.xml."},{"rule_id":"SIP14","severity":"Error","location":"/mets:mets/mets:metsHdr/mets:agent[@ROLE = 'CREATOR']/mets:note@NOTETYPE = 'IDENTIFICATIONCODE'/[local-name()='mets' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='metsHdr' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='agent' and namespace-uri()='http://www.loc.gov/METS/']/[local-name()='note' and namespace-uri()='http://www.loc.gov/METS/']","message":"The creator agent element MUST have a NOTETYPE attribute of value IDENTIFICATIONCODE."}]}},"package":{"mets":{"root":{"namespaces":{"":"http://www.loc.gov/METS/","csip":"https://DILCIS.eu/XML/METS/CSIPExtensionMETS","xsi":"http://www.w3.org/2001/XMLSchema-instance","xlink":"http://www.w3.org/1999/xlink"},"objid":"CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","label":"","type":"OTHER","profile":"https://earkcsip.dilcis.eu/profile/E-ARK-CSIP.xml"},"file_entries":[{"path":"metadata/descriptive/package_archival_descriptions_ead2002.xml","type":"file","size":"53968","checksum":{"algorithm":"SHA-256","value":"277813238F172F44E54820B9D4AEAC8478E2CF54333F853F0E0A29BEC58550D2"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/descriptive/rep1_archival_descriptions_ead2002.xml","type":"file","size":"53648","checksum":{"algorithm":"SHA-256","value":"7AC0597465CDFAFD6DC7D6A9720D8C71C88D234B6A66B46C102EA691670AB5A4"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"metadata/preservation/package_preservation_meta_premis_v3.xml","type":"file","size":"16464","checksum":{"algorithm":"SHA-256","value":"A541189BF81FB4847AD980CEC7B6E6AD5F0441D23D16441F5998B6BB55ECF2EA"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"representations/rep1/metadata/preservation/rep1_preservation_meta_premis_v2-1.xml","type":"file","size":"23828","checksum":{"algorithm":"SHA-256","value":"6EDB936393AA9A291E8523F949A12B88AA83CAA4A95149C7CFE3C20F37B25113"},"mimetype":"text/xml","isValid":true,"errors":[]},{"path":"documentation/Doc1.txt","type":"file","size":"40","checksum":{"algorithm":"MD5","value":"F57DBBDDF87F18043C2029D978749318"},"mimetype":"text/plain","isValid":true,"errors":[]},{"path":"schemas/DILCISExtensionMETS.xsd","type":"file","size":"1633","checksum":{"algorithm":"MD5","value":"E99C19B9CA1271C1D9BAFED19C4BD50A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/ead2002.xsd","type":"file","size":"98321","checksum":{"algorithm":"MD5","value":"0856696BCEF5C849EB10B95B808AB7C0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/mets.xsd","type":"file","size":"136472","checksum":{"algorithm":"MD5","value":"D303B7A71BA2B4FF0061BDCBA0F152E0"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/xlink.xsd","type":"file","size":"3180","checksum":{"algorithm":"MD5","value":"6BDC7F9459A502964F889D70A335CECE"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"schemas/premis-v3-0.xsd","type":"file","size":"52845","checksum":{"algorithm":"MD5","value":"60DFC63A796C507AF85C6AB635BFDF8E"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/Estonian_UAM_arh_classification_scheme_v2.0.xsd","type":"file","size":"54962","checksum":{"algorithm":"MD5","value":"59836748963A11653F1B6ACF066C6715"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/schemas/premis-v2-1.xsd","type":"file","size":"57056","checksum":{"algorithm":"MD5","value":"F8115667D6BF917F7C44E172D937FD5A"},"mimetype":"application/xml","isValid":true,"errors":[]},{"path":"representations/rep1/data/archival_record_xyz123_Estonian_UAM_arh.xml","type":"file","size":"59785","checksum":{"algorithm":"MD5","value":"16967CF0D9517EF180154732C1F8316F"},"mimetype":"application/xml","isValid":true,"errors":[]}]},"details":{"name":"CONTENTINFORMATIONTYPE_not_OTHER_and_OTHERCONTENTINFORMATIONTYPE_exists","label":"","oaispackagetype":"SIP","othertype":"Textual works - Manuscripts","contentinformationtype":"OTHER","checksums":[]},"representations":[]}}
The text was updated successfully, but these errors were encountered: