Preservation Metadata Extraction and Collection : Tools and Techniques

Post on 14-Jan-2016

51 views 2 download

description

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 - PowerPoint PPT Presentation

Transcript of Preservation Metadata Extraction and Collection : Tools and Techniques

Preservation Metadata Extraction and Collection :

Tools and Techniques

Mat BlackNational Library of New ZealandTe 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

• 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

A sound file opened in an image viewer

What file format is this?

??And the winner is……..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

1. Fixity generation

2. Virus checking

3. Format identification

4. Format validation

5. Enviromental metadata extraction

6. Format specific metadata extraction

7. Store in repository

Paranoid workflow

1. Fixity generation

2. Virus checking

3. Fixity check

4. Format identification

5. Fixity check

6. Format validation

7. Fixity check

8. Enviromental metadata extraction

9. Fixity check

10. Format specific metadata extraction

11. Fixity check

12. Virus check

13. Store in repository

14. Fixity check

15. Virus check

16. Fixity check

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/

Questions?