Difference between revisions of "METS schematron rules"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
# mdWrap element MUST contain 1 MDTYPE attribute | # mdWrap element MUST contain 1 MDTYPE attribute | ||
# mdWrap element MUST contain 1 xmlData element | # mdWrap element MUST contain 1 xmlData element | ||
− | # mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute | + | # if MDTYPE is not OTHER, mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute |
− | # mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute | + | # if MDTYPE is not OTHER, mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute |
+ | |||
+ | </br> | ||
+ | |||
+ | ==amdSec== | ||
+ | |||
+ | ''Note: under construction...'' | ||
+ | |||
+ | # amdSec MUST contain 1 ID attribute | ||
+ | |||
+ | </br> | ||
+ | |||
+ | ===techMD=== | ||
+ | |||
+ | # amdSec MUST contain 1 techMD | ||
+ | # techMD MUST contain 1 ID attribute | ||
+ | # techMD MUST contain 1 mdWrap with attribute MDTYPE="PREMIS:OBJECT" | ||
+ | # techMD mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute | ||
+ | # techMD mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute | ||
+ | # techMD mdWrap element MUST contain 1 xsi:type="file" attribute | ||
+ | |||
+ | </br> | ||
+ | |||
+ | ===digiprovMD=== | ||
+ | |||
+ | # amdSec MUST contain at least 1 digiprovMD | ||
+ | # digiprovMD MUST contain 1 ID attribute | ||
+ | # digiprovMD MUST contain at least 1 mdWrap with attribute MDTYPE="PREMIS:EVENT" | ||
+ | # digiprovMD mdWrap EVENT element MUST contain 1 XML namespace (<xmlns>) attribute | ||
+ | # digiprovMD mdWrap EVENT element MUST contain 1 XML schema location instance (<xsi>) attribute | ||
+ | # digiprovMD mdWrap EVENT element MUST contain the following PREMIS semantic components: eventIdentifier, eventType, eventDateTime, eventDetail, eventOutcomeInformation, linkingAgentIdentifier. | ||
+ | # PREMIS semantic component eventType value MUST be one of the following: ingestion, message digest calculation, virus check, name cleanup, format identification, validation, normalization, fixity check, creation, unpacking. | ||
+ | # digiprovMD MUST contain 3 mdWraps with attribute MDTYPE="PREMIS:AGENT" | ||
</br> | </br> |
Latest revision as of 18:46, 28 May 2014
Main Page > Development > Development documentation > Metadata elements > METS > METS schematron rules
Root element[edit]
- An Archivematica AIP METS file MUST contain 1 root element
- root element MUST contain 1 metsHdr
- root element MUST contain 1 fileSec
- root element MUST contain at least 1 structMap
- root element MUST contain at least 1 amdSec
- root element MAY contain 1 or more dmdSecs
metsHdr[edit]
- metsHdr MUST contain 1 CREATEDATE attribute
- metsHdr MAY contain 1 LASTMODDATE attribute
dmdSec[edit]
- dmdSec MUST contain 1 ID attribute
- dmdSec MUST contain either 1 mdRef or 1 mdWrap element
- mdRef element MUST contain 1 LABEL attribute
- mdRef element MUST contain 1 xlink attribute
- mdRef element MUST 1 MDTYPE attribute
- mdRef element MUST contain 1 LOCTYPE attribute
- if LOCYTPE attribute is OTHER, mdRef element MUST contain 1 OTHERLOCTYPE attribute
- mdRef element MAY contain 1 XPTR attribute
- mdWrap element MUST contain 1 MDTYPE attribute
- mdWrap element MUST contain 1 xmlData element
- if MDTYPE is not OTHER, mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute
- if MDTYPE is not OTHER, mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute
amdSec[edit]
Note: under construction...
- amdSec MUST contain 1 ID attribute
techMD[edit]
- amdSec MUST contain 1 techMD
- techMD MUST contain 1 ID attribute
- techMD MUST contain 1 mdWrap with attribute MDTYPE="PREMIS:OBJECT"
- techMD mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute
- techMD mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute
- techMD mdWrap element MUST contain 1 xsi:type="file" attribute
digiprovMD[edit]
- amdSec MUST contain at least 1 digiprovMD
- digiprovMD MUST contain 1 ID attribute
- digiprovMD MUST contain at least 1 mdWrap with attribute MDTYPE="PREMIS:EVENT"
- digiprovMD mdWrap EVENT element MUST contain 1 XML namespace (<xmlns>) attribute
- digiprovMD mdWrap EVENT element MUST contain 1 XML schema location instance (<xsi>) attribute
- digiprovMD mdWrap EVENT element MUST contain the following PREMIS semantic components: eventIdentifier, eventType, eventDateTime, eventDetail, eventOutcomeInformation, linkingAgentIdentifier.
- PREMIS semantic component eventType value MUST be one of the following: ingestion, message digest calculation, virus check, name cleanup, format identification, validation, normalization, fixity check, creation, unpacking.
- digiprovMD MUST contain 3 mdWraps with attribute MDTYPE="PREMIS:AGENT"
fileSec[edit]
- fileSec MUST contain at least 1 fileGrp element
- fileGrp MUST contain 1 USE attribute
- fileGrp MUST contain at least 1 file element
- file element MUST contain 1 GROUPID attribute
- file element MUST contain 1 ID attribute
- file element MAY contain 1 or more ADMID attributes
- file element MUST contain 1 FLocat element
- FLocat element MUST contain 1 xlink attribute
- FLocat element MUST contain 1 LOCTYPE attribute
- If FLocat LOCTYPE attribute is "OTHER", FLocat element MUST contain 1 OTHERLOCTYPE attribute
structMap[edit]
- structMap MUST have 1 ID attribute
- structMap MUST have 1 TYPE attribute
- structMap MUST have 1 LABEL attribute
- structMap MUST have 1 or more div elements
- div element MUST have 1 TYPE attribute
- div element MUST have 1 LABEL attribute
- div element MAY have 1 DMDID attribute
- if div LABEL attribute is "Item", div element MAY have 1 fptr element
- fptr element MUST have 1 FILEID attribute