xml forms metadata and - islandora...more crud read: populate the form fields, set the "self"...

39
Metadata and XML Forms Donald Moses, UPEI Islandora Camp NY : November 20, 2013

Upload: others

Post on 19-Feb-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

  • Metadata and XML FormsDonald Moses, UPEI

    Islandora Camp NY : November 20, 2013

  • Metadata

    “What is metadata? Some sci-fi word? A collection of misplaced letters? No. The truth is, metadata is your friend. It could be your best friend if you choose and, most of the

    time, its free to use!”

    http://www.examiner.com/article/metadata-the-silent-marketing-giant

    http://www.examiner.com/topic/metadatahttp://www.examiner.com/topic/metadatahttp://www.examiner.com/article/metadata-the-silent-marketing-gianthttp://www.examiner.com/article/metadata-the-silent-marketing-giant

  • Metadata Standards

    Sources of standards:Seeing Standards

    o http://www.dlib.indiana.edu/~jenlrile/metadatamap/

    Library of Congresso http://www.loc.gov/standards/

    Wikipediao http://en.wikipedia.org/wiki/Metadata_standards

    JISCo http://www.jiscdigitalmedia.ac.uk/guide/putting-

    things-in-order-links-to-metadata-schemas-and-related-standards/

    http://www.dlib.indiana.edu/~jenlrile/metadatamap/seeingstandards_glossary_pamphlet.pdfhttp://www.dlib.indiana.edu/~jenlrile/metadatamap/seeingstandards_glossary_pamphlet.pdfhttp://www.loc.gov/standards/http://www.loc.gov/standards/http://en.wikipedia.org/wiki/Metadata_standardshttp://en.wikipedia.org/wiki/Metadata_standardshttp://www.jiscdigitalmedia.ac.uk/guide/putting-things-in-order-links-to-metadata-schemas-and-related-standards/http://www.jiscdigitalmedia.ac.uk/guide/putting-things-in-order-links-to-metadata-schemas-and-related-standards/http://www.jiscdigitalmedia.ac.uk/guide/putting-things-in-order-links-to-metadata-schemas-and-related-standards/http://www.jiscdigitalmedia.ac.uk/guide/putting-things-in-order-links-to-metadata-schemas-and-related-standards/

  • Why use a metadata standard ?

  • Why use a metadata standard ?

    ● Participate and contribute back to a larger community

    ● Metadata sharing is simplified as is system interoperability

    ● Leverage existing tools○ data dictionaries

    ■ Digital Library Federation/Aquifer Implementation Guidelines for Shareable MODS Records

    ○ data extraction and transformation tools■ http://www.loc.gov/standards/mods/mods-

    conversions.html

    https://wiki.dlib.indiana.edu/confluence/download/attachments/24288/DLFMODS_ImplementationGuidelines.pdfhttps://wiki.dlib.indiana.edu/confluence/download/attachments/24288/DLFMODS_ImplementationGuidelines.pdfhttps://wiki.dlib.indiana.edu/confluence/download/attachments/24288/DLFMODS_ImplementationGuidelines.pdfhttps://wiki.dlib.indiana.edu/confluence/download/attachments/24288/DLFMODS_ImplementationGuidelines.pdfhttp://www.loc.gov/standards/mods/mods-conversions.htmlhttp://www.loc.gov/standards/mods/mods-conversions.htmlhttp://www.loc.gov/standards/mods/mods-conversions.html

  • 10/1/1991 ca. June 10, 1901

    ca. 1920. (ca). June 19, 1901)

    (ca). 1920) Scanned and Processed: 1998-06 01

    2001.06.08 by CAD [between 1904 and 1908]

    Unknown [ca. 1967]

    1853 1918?

    c1875 191-?

    c1908 November 19 1870 December, c1871

    [2001 or 2002] 1920, 1921, 1922, 1923, 1924,1925, 1926, 1927, 1928, 1929

    [1919?] 20th century

    Halloween 1975 IIIrd century A.D. (not before 237 A.D.)

    PEI’s centennial January-February, 200 A.D.

    1926 Web site: 7/25/02 Series 1871 ca. 1871

  • Types of MetadataType of Metadata Function Supported Schema Examples

    Descriptive Resource Discovery; Selection; Access

    DC: creator, title, subjectMODS: namePart, title, topicDarwinCore: scientificName

    Preservation Resource Management FITS/FOXML: mimetypeExiftool: scannerModelName, ApertureValueFITS/FOXML: checksumsPREMIS: contentLocationType

    Provenance Lifecycle management; Authentication

    FOXML: audit:responsibilityDC: sourceMODS: note type="ownership"

    Contextual Awareness; Comprehension; Interpretation

    DC: date, relationMODS: dateIssued, dateCaptured, relatedItem

    Technical Use; Access; Resource Management

    Jhove: imageWidthJhove: size

    Rights Management Access; Reproduction; Use/Re-use

    DC: rightsMODS: accessionConditionMETSRights

  • Descriptive Metadata

    Descriptive metadata is what authorized users typically add/edit within the Islandora framework. eg. MODS, DC, PBCore, DarwinCore and more.

    Many elements have attributes that can be added.

    Postcards

    Use controlled vocabularies / thesauri where possible.

  • Controlled Vocabularies / Thesauri

    Examples:

    • Library of Congress Linked Data Serviceo http://id.loc.gov/

    • Getty's Art and Architecture Thesauruso http://www.getty.

    edu/research/tools/vocabularies/aat/index.html• DarwinCore Types

    o http://rs.tdwg.org/dwc/terms/type-vocabulary/index.htm

    • and many more...

    http://id.loc.gov/http://id.loc.gov/http://www.getty.edu/research/tools/vocabularies/aat/index.htmlhttp://www.getty.edu/research/tools/vocabularies/aat/index.htmlhttp://www.getty.edu/research/tools/vocabularies/aat/index.htmlhttp://rs.tdwg.org/dwc/terms/type-vocabulary/index.htmhttp://rs.tdwg.org/dwc/terms/type-vocabulary/index.htmhttp://rs.tdwg.org/dwc/terms/type-vocabulary/index.htmhttp://www.jiscdigitalmedia.ac.uk/guide/controlling-your-language-links-to-metadata-vocabularies

  • What is the XML Form builder

    ● A tool for creating/storing HTML forms that can create/manipulate XML Documents.

    ● A low level API for processing Form Definitions.

    ● A GUI build with Ext-JS that aids in creating Form Definitions.

    Link

    http://192.168.56.195/drupal7/%23overlay=admin/islandora/xmlform#overlay=admin/islandora/xmlformhttp://192.168.56.195/drupal7/%23overlay=admin/islandora/xmlform#overlay=admin/islandora/xmlform

  • What are the main features of the XML Form BuilderWorks with most standards, wanna share?

    ● Will work with custom standards.● Highly configurable.● Forms are portable.● Safe.● Built upon the existing Drupal Form API

    MODS PBCore FGDC MADS

    LIDO Darwin Core Dublin Core etc...

    https://github.com/Islandora/islandora_ingest_forms

  • How do I use the Form builder?

    Form definitions are essentially about XPath.

    ExamplesCheat Sheet

    A good tool to help you work with XML XSLT's and XPath is Oxygen!

    http://msdn.microsoft.com/en-us/library/ms256086.aspxhttp://msdn.microsoft.com/en-us/library/ms256086.aspxhttp://www.mulberrytech.com/quickref/XSLT_1quickref-v2.pdfhttp://www.mulberrytech.com/quickref/XSLT_1quickref-v2.pdfhttp://www.mulberrytech.com/quickref/XSLT_1quickref-v2.pdfhttp://www.oxygenxml.com/

  • ● Create○ Attribute

    ■ eg. ○ Element

    ■ eg. genre○ XML: Snippets and the use of %value% ○ eg. %

    value%

    CRUD (Create, Read, Update, Delete)

  • More CRUD

    Read: Populate the form fields, set the "self" context.Update:The element/attribute exists, use the value in the form field to updated it.Delete:Only executed if the form field is removed.

  • CRUD (Create, Read, Update, Delete)

  • Create a DC Collection Form

    Lets create a DC form for the Collection Content Model

    You can also download the formhttp://bit.ly/IfDcXM

    http://bit.ly/IfDcXMhttp://bit.ly/IfDcXM

  • Guidance Documents

    A well formed DC collection type object. http://www.loc.gov/standards/mods/dcsimple-mods.html

    Dublin Core Metadata Element Set, Version 1.1http://dublincore.org/documents/dces/

    http://www.loc.gov/standards/mods/dcsimple-mods.htmlhttp://www.loc.gov/standards/mods/dcsimple-mods.htmlhttp://www.loc.gov/standards/mods/dcsimple-mods.htmlhttp://dublincore.org/documents/dces/http://dublincore.org/documents/dces/

  • Add Form Properties

  • Form Properties

    root element = oai_dc:dcnamespace uri = http://www.openarchives.org/OAI/2.0/oai_dc/

    namespacesoai_dc | http://www.openarchives.org/OAI/2.0/oai_dc/xsi | http://www.w3.org/2001/XMLSchema-instancedc | http://purl.org/dc/elements/1.1/

    http://www.openarchives.org/OAI/2.0/oai_dc/http://www.openarchives.org/OAI/2.0/oai_dc/http://www.openarchives.org/OAI/2.0/oai_dc/

  • Root element …

  • Add dc:title element …

  • Add dc:title element …

  • That’s the pattern we’ll follow...

    1. copy the title element we just created2. Select the Root element3. Select Paste and then update the

    element information.

  • Save & Preview

  • Enter test data.

  • Now add a dc:type element. It is a controlled vocabulary so we’ll add that as a Select form element. Get the terms from http://dublincore.org/usage/terms/dcmitype/#H7 .

    http://dublincore.org/usage/terms/dcmitype/#H7http://dublincore.org/usage/terms/dcmitype/#H7

  • DC Types● Collection● Dataset● Event● Image● InteractiveResource● MovingImage● PhysicalObject● Service● Software● Sound● StillImage● Text

    Select Add, then create the Value and Label for each type. Select Update after adding each type. If you start with the last term first it saves on having to sort the terms.

  • Your record can have multiple types … you can use tab panels.

    Tabs ● Read

  • Tab Panels ● Create● Read● Delete

  • Text Field● Read● Update

  • Associate the form

  • Go edit a Collection Object

  • Using Markup with Forms

  • Renders this

  • Form building Best Practices!

    ● Prefer Parent context for both Create and Read.

    ● Prefer Self context for Update and Delete.

    ● Have the hierarchy of form fields match the XML document it creates.

  • Debugging Errors

    Watchdog log● http://192.168.56.195

    /#overlay=admin/reports/dblog

    Your apache log● /var/log/apache2/error.log

    http://192.168.56.195/#overlay=admin/reports/dbloghttp://192.168.56.195/#overlay=admin/reports/dbloghttp://192.168.56.195/#overlay=admin/reports/dblog

  • Drupal Form API (Form Controls)

    Drupal 7http://api.drupal.org/api/drupal/developer!topics!

    forms_api_reference.html/7

    http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7