Skip to content

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

Notifications You must be signed in to change notification settings

leereilly/parker-manuscript-transformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Bugs

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published