[topicmapmail] Generating Bib-1/Z39.50 topics from instance metadata

Jason Cupp jcupp@esri.com
Mon, 14 Oct 2002 15:30:47 -0700


I'd like to unmarshall an instance document (any metadata document, really)
into topics. The metadata contains fields that can be semantically mapped to
Bib-1 and GILS Z39.50 profile Use attributes. Then marshall the topics back
to instance metadata, but (possibly) in a different metadata standard. 

Parsing the instance documents into topics would be done by an XSLT (which
was generated by another stylesheet from an XML Schema), then added
custom/importable templates to create topics from the bits of instance
metadata I was interested in...

In creating topics for instance metadata, would I have one topic, then add
occurances with an xpointer to where the instance data resided in the
original metadata document?? Here's an example:

# mydocument.xml #

<metadata>
  <dataIdInfo>
    <idCitation>
      <resTitle>This is a Title</resTitle>
      
# mydocument.xtm #

<topic id="bib1-4">
  <baseName>
    <baseNameString>Title</baseNameString>
  </baseName>

  <subjectIdentity>
      <subjectIndicatorRef
        xlink:href="http://lcweb.loc.gov/z3950/agency/defns/bib1.html#4"/>
  </subjectIdentity>

  <occurance>
    <resourceRef
xlink:href="mydocument.xml#xpointer(//metadata/dataIdInfo/idCitation/resTitl
e)"/>
  </occurance>

</topic>