Home > parker-manuscript-transformation

parker-manuscript-transformation

Parker-manuscript-transformation is a project mainly written in ..., it's free.

This is a one-time use script for transforming Parker XML configuration scripts used on parker.stanford.edu into N3 format

PARKER MANUSCRIPT TRANSFORMATION

Summary

This is a one-time use script for transforming Parker XML configuration scripts used on http://parker.stanford.edu into N3 format.

Usage

To transform the XML files in data/input/xml to N3 in data/output/n3 simply run the following:

./transform_parker_manuscripts.rb

NB: The script is set to transform the files in test_data by default.

Sample Output

Examining test_data/input/xml for Parker XML configuration file

Transforming manuscript 1
    Generating Manifest file
    Generating NormalSequence file
    Generating ImageCollection file

Transforming manuscript 26
    This manuscript cannot be transformed; it has one or more flaps, folds, bookmarks and/or spreads

Transforming manuscript 37
    This manuscript cannot be transformed; it has one or more flaps, folds, bookmarks and/or spreads

Transforming manuscript 49
    This manuscript cannot be transformed; it has one or more flaps, folds, bookmarks and/or spreads

Transforming manuscript 521
    Generating Manifest file
    Generating NormalSequence file
    Generating ImageCollection file

Transforming manuscript 70
    This manuscript cannot be transformed; it has one or more flaps, folds, bookmarks and/or spreads

Dependencies

  • ruby 1.8.7
  • rubygems 1.3.5
  • rdf 0.3.1
  • rdf::n3 0.3.1.1
  • nokogiri 1.4.4

Known Issues / Bugs

  • RDF::List support is "experimental" - lists handled manually - euggh
  • Transformation fails for pages that have folds, flaps, spreads or bookmarks
  • The DMS data model is ever-evolving