Difference between revisions of "METS schematron rules"

From Archivematica
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
# metsHdr MUST contain 1 CREATEDATE attribute
 
# metsHdr MUST contain 1 CREATEDATE attribute
 
# metsHdr MAY contain 1 LASTMODDATE attribute
 
# metsHdr MAY contain 1 LASTMODDATE attribute
 +
 +
</br>
 +
 +
==dmdSec==
 +
 +
# 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
 +
 +
</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>
Line 31: Line 80:
 
# FLocat element MUST contain 1 xlink attribute
 
# FLocat element MUST contain 1 xlink attribute
 
# FLocat element MUST contain 1 LOCTYPE attribute
 
# FLocat element MUST contain 1 LOCTYPE attribute
# If FLocat LOCTYPE element is "OTHER", FLocat element MUST contain 1 OTHERLOCTYPE attribute
+
# If FLocat LOCTYPE attribute is "OTHER", FLocat element MUST contain 1 OTHERLOCTYPE attribute
 +
 
 +
</br>
 +
 
 +
==structMap==
 +
 
 +
# 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

Latest revision as of 17:46, 28 May 2014

Main Page > Development > Development documentation > Metadata elements > METS > METS schematron rules


Root element[edit]

  1. An Archivematica AIP METS file MUST contain 1 root element
  2. root element MUST contain 1 metsHdr
  3. root element MUST contain 1 fileSec
  4. root element MUST contain at least 1 structMap
  5. root element MUST contain at least 1 amdSec
  6. root element MAY contain 1 or more dmdSecs


metsHdr[edit]

  1. metsHdr MUST contain 1 CREATEDATE attribute
  2. metsHdr MAY contain 1 LASTMODDATE attribute


dmdSec[edit]

  1. dmdSec MUST contain 1 ID attribute
  2. dmdSec MUST contain either 1 mdRef or 1 mdWrap element
  3. mdRef element MUST contain 1 LABEL attribute
  4. mdRef element MUST contain 1 xlink attribute
  5. mdRef element MUST 1 MDTYPE attribute
  6. mdRef element MUST contain 1 LOCTYPE attribute
  7. if LOCYTPE attribute is OTHER, mdRef element MUST contain 1 OTHERLOCTYPE attribute
  8. mdRef element MAY contain 1 XPTR attribute
  9. mdWrap element MUST contain 1 MDTYPE attribute
  10. mdWrap element MUST contain 1 xmlData element
  11. if MDTYPE is not OTHER, mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute
  12. if MDTYPE is not OTHER, mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute


amdSec[edit]

Note: under construction...

  1. amdSec MUST contain 1 ID attribute


techMD[edit]

  1. amdSec MUST contain 1 techMD
  2. techMD MUST contain 1 ID attribute
  3. techMD MUST contain 1 mdWrap with attribute MDTYPE="PREMIS:OBJECT"
  4. techMD mdWrap element MUST contain 1 XML namespace (<xmlns>) attribute
  5. techMD mdWrap element MUST contain 1 XML schema location instance (<xsi>) attribute
  6. techMD mdWrap element MUST contain 1 xsi:type="file" attribute


digiprovMD[edit]

  1. amdSec MUST contain at least 1 digiprovMD
  2. digiprovMD MUST contain 1 ID attribute
  3. digiprovMD MUST contain at least 1 mdWrap with attribute MDTYPE="PREMIS:EVENT"
  4. digiprovMD mdWrap EVENT element MUST contain 1 XML namespace (<xmlns>) attribute
  5. digiprovMD mdWrap EVENT element MUST contain 1 XML schema location instance (<xsi>) attribute
  6. digiprovMD mdWrap EVENT element MUST contain the following PREMIS semantic components: eventIdentifier, eventType, eventDateTime, eventDetail, eventOutcomeInformation, linkingAgentIdentifier.
  7. 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.
  8. digiprovMD MUST contain 3 mdWraps with attribute MDTYPE="PREMIS:AGENT"


fileSec[edit]

  1. fileSec MUST contain at least 1 fileGrp element
  2. fileGrp MUST contain 1 USE attribute
  3. fileGrp MUST contain at least 1 file element
  4. file element MUST contain 1 GROUPID attribute
  5. file element MUST contain 1 ID attribute
  6. file element MAY contain 1 or more ADMID attributes
  7. file element MUST contain 1 FLocat element
  8. FLocat element MUST contain 1 xlink attribute
  9. FLocat element MUST contain 1 LOCTYPE attribute
  10. If FLocat LOCTYPE attribute is "OTHER", FLocat element MUST contain 1 OTHERLOCTYPE attribute


structMap[edit]

  1. structMap MUST have 1 ID attribute
  2. structMap MUST have 1 TYPE attribute
  3. structMap MUST have 1 LABEL attribute
  4. structMap MUST have 1 or more div elements
  5. div element MUST have 1 TYPE attribute
  6. div element MUST have 1 LABEL attribute
  7. div element MAY have 1 DMDID attribute
  8. if div LABEL attribute is "Item", div element MAY have 1 fptr element
  9. fptr element MUST have 1 FILEID attribute