1 / 28

From DB to METS

This presentation discusses the goals, tools, web interface, and database schema of the From DB to METS project. The presentation also explores issues and future developments in metadata management.

albright
Download Presentation

From DB to METS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. From DB to METS Eric StedfeldNew York University METS Opening Day – October 27-28, 2003

  2. Goals • Simple database structure for the most common METS needs • Simple interface to take user input, generate METS and return results • XML processing to convert and display selected material in a web environment • Future extensions for more complicated media types and metadata METS Opening Day – October 27-28, 2003

  3. Tools • MySQL database to store structural, descriptive and image technical metadata • Perl to take user input, query database, build METS file and return Web “success” page • XT to transform METS XML to HTML using XSLT • Tomcat to call XT servlet and display HTML to user METS Opening Day – October 27-28, 2003

  4. Web Interface – Generate METS METS Opening Day – October 27-28, 2003

  5. Web Interface – Success METS Opening Day – October 27-28, 2003

  6. Web Interface – Return Results METS Opening Day – October 27-28, 2003

  7. Web Interface – Select Page METS Opening Day – October 27-28, 2003

  8. Web Interface – View Closeup METS Opening Day – October 27-28, 2003

  9. Database Schema – ZeroDB METS Opening Day – October 27-28, 2003

  10. Database Schema – Center METS Opening Day – October 27-28, 2003

  11. Database Schema – Center METS Opening Day – October 27-28, 2003

  12. Database Schema – Object Tree METS Opening Day – October 27-28, 2003

  13. Database Schema – Subject METS Opening Day – October 27-28, 2003

  14. Database Schema – Name METS Opening Day – October 27-28, 2003

  15. Database Schema – Phys. Object METS Opening Day – October 27-28, 2003

  16. Database Schema – Media METS Opening Day – October 27-28, 2003

  17. App Code – Main Routine use DBI;... # Set query, path and database variables &print_head; # Start "Success" HTML page $dbh = DBI->connect("DBI:mysql:$database", $dbuser, $dbpass);&do_one;$dbh->disconnect; &return_to_browser;&print_footer; # Finish "Success" HTML page METS Opening Day – October 27-28, 2003

  18. App Code – Do One sub &do_one { $objectTreeID = $fetchme; # Set up file and path variables using $objectTreeID &get_children; # create array of objectIDs open (OUTFILE, ">$path");&print_xml;close (OUTFILE); } METS Opening Day – October 27-28, 2003

  19. App Code – Get Children sub &get_children { $SQLstmt = "SELECT o.objectTreeID, o.parentIDFROM objectTree AS o WHERE o.parentID = $objectTreeIDORDER BY o.objectTreeID"; $sth = $dbh->prepare($SQLstmt);$sth->execute; while (@row = $sth->fetchrow_array){ $childID = $row[0]; @children = $childID;} $sth->finish;} METS Opening Day – October 27-28, 2003

  20. App Code – Print XML sub &print_xml {print OUTFILE<<EOF;# XML header hereEOF # SQL to fetch METS header info&print_METSHeader; &print_dmdSecDM;&print_amdSec;&print_fileSec;&print_structMap; print OUTFILE<<EOF;# METS close file stuff hereEOF} METS Opening Day – October 27-28, 2003

  21. XML – Descriptive Metadata METS Opening Day – October 27-28, 2003

  22. XML – Technical Metadata METS Opening Day – October 27-28, 2003

  23. XML – File Section METS Opening Day – October 27-28, 2003

  24. XML – Structural Map METS Opening Day – October 27-28, 2003

  25. Web Interface – Select Page METS Opening Day – October 27-28, 2003

  26. Issues • Database capability vs. METS flexibility • Normalized vs. efficient database schema • General vs. specialized approach for many METS types • Hard areas such as rights metadata • Data synchronization • Consistency across institution(s) METS Opening Day – October 27-28, 2003

  27. Future • “Meta-programming” – programs to create programs, database schemata and stylesheets • Consistent utilization and implementation of Profiles • Down-streaming more of the work – less specialized skill sets required, less “boutique-y” METS Opening Day – October 27-28, 2003

  28. From DB to METS Eric StedfeldNew York University METS Opening Day – October 27-28, 2003

More Related