Skip to content
flazz edited this page Sep 13, 2010 · 23 revisions

PiM

Step 1: Validation

Business Logic

Given a PiM Document via an input method

  1. Basic XML/Schema validation
    1. check for well-formed document, if errors then return specifics
    2. validate against XML Schema, if errors then return specifics
  2. Best Practice / METS Profile validation
    1. validate against Schematron schemas
    2. return minimally a list of errors in output methods outlined below
    3. Optional/Experimental: suggestions for each error; profile/BP citations

Input Methods

  1. given a HTTP URI of a PiM Document, validate it.
  2. upload a PiM Document file via a html form
  3. input a PiM Document directly via a html form
  4. Web Service based
    1. via POST
    2. via GET with a URI of a PiM Document passes as a query parameter.
    3. investigate what w3 validator does.

Output formats

  1. html
  2. plain text
  3. xml
  4. json

(all but html will be directly useful to the web service, indirectly ajax interfaces can use the rest)

Step 2: PREMIS → PiM

Step 3: PiM → PREMIS

Step 4: ???

Step 5: PROFIT!

Clone this wiki locally