[XML4Lib] Getting MARCXML into a relational database
Gong, Dao Rong
gongd at mail.lib.msu.edu
Fri Jun 12 11:49:39 EDT 2009
Thanks Eric and all for the responses.
We will retire an old record keeping system (a home grown system called MicroMarc). The data format is somehow close enough to MARC. We want to export it into a database and analyze the data kept there. Since I dont know any quick way to get MARC into a database, I output them as XML. I started with MS-ACCESS but as Dave said, they often end up in a text column. Im now trying to write a XSLT to transform it into ACCESS friendlier format but wondered if there are better ways to handle this, or some tools if possible. I havent heard about the Postgre XML data type, maybe it is the way to go?
Dao
Libraries, Michigan State University
-----Original Message-----
From: xml4lib-bounces at webjunction.org on behalf of Eric Lease Morgan
Sent: Thu 6/11/2009 8:11 PM
To: xml4lib
Subject: Re: [XML4Lib] Getting MARCXML into a relational database
On Jun 11, 2009, at 4:56 PM, Gong, Dao Rong wrote:
> Has anyone had successful experience importing MARCXML file into a
> relational database?
The short answer to your question is, "Yes, many of us have experience
doing this sort of work."
The long answer is, "What is the problem you are trying to solve?"
Putting a single MARCXML file containing a single MARCXML record into
a single text field of a (relational or flat file) database is
straight-forward. If the single MARCXML file contains a collection of
many MARCXML records, then the text field might need to be rather
large -- megabytes and megabytes in size.
If you want to parse each MARCXML record into distinct fields (title,
author, subject, etc.), then you will probably want to apply some sort
of XSL processing against the file. If you wanted a challenge, then
you could convert the MARCXML into "real" MARC records and parse it
that way. Pulling the data out in a cursory way is easy. Pulling it
out in a more finely grained way is more difficult because there are
literally thousands of options. Then of course, to what degree do you
want to exploit relational database techniques to your problem? Join
tables are fun and productive, and the design of databases like these
are not difficult, but inserting data into them requires the creation
of keys and the use of SQL to do inserts. More programming.
Again, what is the real problem you are trying to solve?
--
Eric Lease Morgan
University of Notre Dame
_______________________________________________
XML4Lib mailing list
XML4Lib at webjunction.org
http://lists.webjunction.org/mailman/listinfo/xml4lib
More information about the XML4Lib
mailing list