250 likes | 421 Views
Preservation Metadata Extraction and Collection : Tools and Techniques. Mat Black National Library of New Zealand Te Puna Matauranga o Aotearoa. How to get what you need to keep what you’ve got. The stack. Fixity generation Virus checking Format identification Format validation
E N D
Preservation Metadata Extraction and Collection :Tools and Techniques Mat Black National Library of New Zealand Te Puna Matauranga o Aotearoa
The stack • Fixity generation • Virus checking • Format identification • Format validation • Enviromental metadata collection • Format specific metadata extraction
Fixity“Get it early and get it right” • Common fixity types: • Hashing algorithms (MD5, SHA1) • Digital signatures • File size? • Use multiple fixity algorythems. • Find out the legal implications.
Fixity values for what? • File • Bitstream • Compound (all the files in an object) • Metadata • The whole lot (files, filename & metadata)
Virus checking • Virus check datetime • Results including false positives and any warnings (word macros etc) • The virus checker name and version • The virus pattern file name and version • The virus engine name and version
Format identificationFile / Bitstream / Complex • Methods of format identification • File name or extension • File type/creator codes (Old Mac’s) • Magic numbers • Brute force file parsing (for all, try throw catch) http://en.wikipedia.org/wiki/File_format
What file format is this? ? And the winner is……..
Subzero by Pain Receptor They describe their music as sounding like “falling down the stairs carrying leeches and bottles“ http://www.myspace.com/painreceptor
Sub format identification • Embedded Bistreams • XML Base64 encoded octet streams • Microsoft Structured Storage • Archives • ZIP, TAR, ARC • Encapsulation/Container formats • OGG, AVI, MIME • CODEC’s • DV, DivX, Indeo, Cinepak, MS MPEG-4
Available tools • File extensions (google it) • Magic utilities (google it) • Jhove http://hul.harvard.edu/jhove/ • DROID http://www.nationalarchives.gov.uk/pronom/ • Build you own! (Java, PERL, C#, C++) • If you have a fixed format list • You use a proprietary format.
Format validation • Types of validation • Pattern comparison • Parsing • Rendering
Available tools • JHOVE • NLNZ Extract tool (sort of) • The application used to create the file • Anything that opens a file and can throw an error. • Parsing tools • E.g. XML Parsers, XML Schema, PERL Modules, Java Classes. • rendering tools • E.g. LibTIFF, ImageMagick, Microsoft Office (wrapped), OpenOffice PERL Modules, Java classes, etc….
Things to keep in mind • Test it till it breaks. • Define your requirements, break them, then define them again. (Repeat if required). • Not all tools are created equal. • Not all tools obey the rules. • Some rules are made to be broken.
Environmental metadata • Consider the native environment of your content. • Is there metadata that you need that only exists in a digital objects native environment? • Structure and relationships. • File system attributes
Format specific metadata extractionaka format characterisation • Available metadata will vary depending on the format. • You will probably need format specific schemas. • The types of metadata that can be extracted: • Preservation • Descriptive • Structural • Administrative • Rights • Technical
The big question…. “Why would I extract the metadata now and store it in a database if I can just come back and extract it again later when I need it”?
Available tools • NLNZ Metadata Extract Tool • http://www.natlib.govt.nz/en/whatsnew/4initiatives.html#extraction • JHOVE • http://hul.harvard.edu/jhove/ • Anything you can wrap • LibTIFF, ImageMagick, PERL Modules, Java classes etc… • Build your own! • And make sure you open source it
What tools should I use? • Use as many tools as you need to. • Keep the workflow configurable • Preferably by content or format type. • Allow for multiple tools to be used. • Allow for new tools to be added later. • Compare metadata from multiple tools.
The workflow • Fixity generation • Virus checking • Format identification • Format validation • Enviromental metadata extraction • Format specific metadata extraction • Store in repository
Fixity generation Virus checking Fixity check Format identification Fixity check Format validation Fixity check Enviromental metadata extraction Fixity check Format specific metadata extraction Fixity check Virus check Store in repository Fixity check Virus check Fixity check Paranoid workflow
Paranoid access flow. • Retrieve content from repository • Fixity check • Virus check • Send content to consumer
Global Digital Format Registry • Format identification components • Format validation components • Metadata extraction components • Format registry • At risk content alerts • http://hul.harvard.edu/gdfr/