lcnetdev / marc2bibframe2

Convert MARC records to BIBFRAME2 RDF
http://www.loc.gov/bibframe/
Creative Commons Zero v1.0 Universal
89 stars 36 forks source link

Incorrect ID assigned to Agent within Hub #249

Open timathom opened 1 month ago

timathom commented 1 month ago

Agents are being incorrectly assigned an RWO version (which doesn't actually exist) of a name/title authority, as below:

Incorrect Output:

<bf:Relation>
  <bf:relationship rdf:resource="http://id.loc.gov/vocabulary/relationship/part"/>
  <bf:associatedResource>
    <bf:Hub rdf:about="http://id.loc.gov/authorities/names/n81100991">
      <bf:contribution>
        <bf:Contribution>
          <bf:agent>
            <bf:Agent rdf:about="http://id.loc.gov/rwo/agents/n81100991">
              <rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Person"/>
              <rdfs:label>Schubert, Franz, 1797-1828</rdfs:label>
              <bflc:marcKey>70012$aSchubert, Franz,$d1797-1828.$tSchwanengesang (Song cycle).$pStändchen.$0http://id.loc.gov/authorities/names/n81100991</bflc:marcKey>
            </bf:Agent>
          </bf:agent>
          <bf:role>
            <bf:Role rdf:about="http://id.loc.gov/vocabulary/relators/ctb"/>
          </bf:role>
        </bf:Contribution>
      </bf:contribution>
      <bf:title>
        <bf:Title>
          <bf:mainTitle>Schwanengesang (Song cycle). Ständchen.</bf:mainTitle>
          <bf:partName>Ständchen</bf:partName>
        </bf:Title>
      </bf:title>
      <bflc:marcKey>70012$aSchubert, Franz,$d1797-1828.$tSchwanengesang (Song cycle).$pStändchen.$0http://id.loc.gov/authorities/names/n81100991</bflc:marcKey>
    </bf:Hub>
  </bf:associatedResource>
</bf:Relation>

Input:

<record xmlns="http://www.loc.gov/MARC21/slim">
  <leader>04415cjm a2200541Ia 4500</leader>
  <controlfield tag="001">11312107</controlfield>
  <controlfield tag="005">20181212173339.0</controlfield>
  <controlfield tag="007">sd fmngnnmmnee</controlfield>
  <controlfield tag="008">130322s1995 au sgn f d</controlfield>
  <datafield tag="028" ind1="0" ind2="1">
    <subfield code="a">90285</subfield>
    <subfield code="b">Preiser Records</subfield>
  </datafield>
  <datafield tag="035" ind1=" " ind2=" ">
    <subfield code="a">11312107</subfield>
  </datafield>
  <datafield tag="040" ind1=" " ind2=" ">
    <subfield code="a">CtY</subfield>
    <subfield code="b">eng</subfield>
    <subfield code="c">CtY</subfield>
    <subfield code="d">CtY-Mus</subfield>
  </datafield>
  <datafield tag="079" ind1=" " ind2=" ">
    <subfield code="a">(OCoLC)1078677869</subfield>
  </datafield>
  <datafield tag="100" ind1="1" ind2=" ">
    <subfield code="a">Slezak, Leo,</subfield>
    <subfield code="d">1873-1946.</subfield>
    <subfield code="4">prf</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n82133573</subfield>
  </datafield>
  <datafield tag="245" ind1="1" ind2="0">
    <subfield code="a">Unvergessner Leo Slezak</subfield>
    <subfield code="h">[sound recording].</subfield>
  </datafield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="a">[Vienna] :</subfield>
    <subfield code="b">Preiser Records,</subfield>
    <subfield code="c">1995.</subfield>
  </datafield>
  <datafield tag="300" ind1=" " ind2=" ">
    <subfield code="a">1 sound disc :</subfield>
    <subfield code="b">digital, mono ;</subfield>
    <subfield code="c">4 3/4 in.</subfield>
  </datafield>
  <datafield tag="344" ind1=" " ind2=" ">
    <subfield code="a">digital</subfield>
    <subfield code="c">1.4 m/s</subfield>
    <subfield code="g">mono</subfield>
    <subfield code="2">rda</subfield>
  </datafield>
  <datafield tag="511" ind1="0" ind2=" ">
    <subfield code="a">Leo Slezak, tenor ; Heinrich Schacker, piano (tr. 1-7) ;
      Orchester der Staatsoper Berlin, Manfred Gurlitt, conductor (tr. 8) ;
      orchestra conducted by Ernst Hauke (tr. 9-10), Otto Dobrindt (tr. 11) ,
      Walter Schütze (tr. 12-17).</subfield>
  </datafield>
  <datafield tag="518" ind1=" " ind2=" ">
    <subfield code="a">Recorded (electrically) in 1928 (tr. 1-7), 1931 (tr.
      9-10), 1932 (tr. 11) &amp; 1937 (12-17).</subfield>
  </datafield>
  <datafield tag="500" ind1=" " ind2=" ">
    <subfield code="a">Compact disc.</subfield>
  </datafield>
  <datafield tag="500" ind1=" " ind2=" ">
    <subfield code="a">Originally issued on Grammophon (tr. 1-8 &amp; 12-17) or
      Parlophone (tr. 9-11) 78 rpm discs.</subfield>
  </datafield>
  <datafield tag="500" ind1=" " ind2=" ">
    <subfield code="a">Program notes about the singer by Anton Odelga in German
      &amp; English inserted in container.</subfield>
  </datafield>
  <datafield tag="505" ind1="0" ind2=" ">
    <subfield code="a">[Lieder] : Ständchen [D 957] (Rellstab) ; Der Musensohn
      [D 764] (Goethe) ; Ungeduld [D 795] (Müller) ; Die Post (Müller) /
      Schubert -- Mondnacht (Eichendorff) ; Der Nussbaum (Mosen) / Schumann --
      Tom der Reimer (Rückert) / Loewe -- Der Lenz (Dahn) / Hildach
      --</subfield>
  </datafield>
  <datafield tag="505" ind1="0" ind2=" ">
    <subfield code="a">[Extracts from operettas &amp; motion pictures] : Welch
      ein liebliches Frauenbild [= V'là z'encor' de drol's de jeunesses ?] : aus
      "Blaubart" / Offenbach -- Das waren Zeiten : Einlage zu "Gasparone" /
      Millöcker -- Wenn ich vergnügt bin : aus der Film "Der Frauendiplomat" /
      May -- Auf der Heide blüh'n die letzten Rosen : aus "Herbstmanöver" /
      Stolz -- Damals war noch ein Wein im Flascherl : Wienerlied / Stolz --
      Genoveva, ich könnte weinen : aus dem Film "Der Herr ohne Wohnung" / Stolz
      -- Ein Mäderl, ein kleines : aus der Film "Geschichten aus dem Wienerwald"
      / Schmidt -- Man nehme zwei Herzen : aus der Film "Liebe bei Hof" /
      Niederberger -- Da streiten sich die Leut' herum : Hobellied aus "Der
      Verschwender" / Kreutzer.</subfield>
  </datafield>
  <datafield tag="505" ind1="0" ind2=" ">
    <subfield code="a">[Appendix]</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Songs (High voice) with piano.</subfield>
    <subfield code="0"
      >http://id.loc.gov/authorities/subjects/sh85125149</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Songs (High voice) with orchestra.</subfield>
    <subfield code="0"
      >http://id.loc.gov/authorities/subjects/sh85125146</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Songs, German.</subfield>
    <subfield code="0"
      >http://id.loc.gov/authorities/subjects/sh85125071</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Motion picture music.</subfield>
    <subfield code="0"
      >http://id.loc.gov/authorities/subjects/sh85088056</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Musicals</subfield>
    <subfield code="z">Austria</subfield>
    <subfield code="z">Vienna.</subfield>
  </datafield>
  <datafield tag="650" ind1=" " ind2="0">
    <subfield code="a">Music</subfield>
    <subfield code="z">Austria</subfield>
    <subfield code="z">Vienna.</subfield>
    <subfield code="0"
      >http://id.loc.gov/authorities/subjects/sh2008108091</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Schacker, Heinrich.</subfield>
    <subfield code="4">prf</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n82136598</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Gurlitt, Manfred.</subfield>
    <subfield code="4">prf</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n84011399</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Hauke, Ernst.</subfield>
    <subfield code="4">cnd</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n97073248</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Dobrindt, Otto.</subfield>
    <subfield code="4">cnd</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/no93003006</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2=" ">
    <subfield code="a">Schütze, Walter</subfield>
    <subfield code="c">(Conductor)</subfield>
    <subfield code="4">cnd</subfield>
    <subfield code="0"
      >http://id.loc.gov/authorities/names/no2008155931</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Schubert, Franz,</subfield>
    <subfield code="d">1797-1828.</subfield>
    <subfield code="t">Schwanengesang (Song cycle).</subfield>
    <subfield code="p">Ständchen.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n81100991</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Schubert, Franz,</subfield>
    <subfield code="d">1797-1828.</subfield>
    <subfield code="t">Musensohn.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/no97074454</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Schubert, Franz,</subfield>
    <subfield code="d">1797-1828.</subfield>
    <subfield code="t">Schöne Müllerin.</subfield>
    <subfield code="p">Ungeduld.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n79003847</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Schubert, Franz,</subfield>
    <subfield code="d">1797-1828.</subfield>
    <subfield code="t">Winterreise.</subfield>
    <subfield code="p">Post.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/no97004468</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Schumann, Robert,</subfield>
    <subfield code="d">1810-1856.</subfield>
    <subfield code="t">Liederkreis,</subfield>
    <subfield code="n">op. 39.</subfield>
    <subfield code="p">Mondnacht.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n84040875</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Schumann, Robert,</subfield>
    <subfield code="d">1810-1856.</subfield>
    <subfield code="t">Myrthen.</subfield>
    <subfield code="p">Nussbaum.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n84041984</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Loewe, Carl,</subfield>
    <subfield code="d">1796-1869.</subfield>
    <subfield code="t">Tom der Reimer.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n98019887</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Hildach, Eugen,</subfield>
    <subfield code="d">1849-1924.</subfield>
    <subfield code="t">Lieder,</subfield>
    <subfield code="n">op. 19.</subfield>
    <subfield code="p">Lenz;</subfield>
    <subfield code="o">arranged.</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Offenbach, Jacques,</subfield>
    <subfield code="d">1819-1880.</subfield>
    <subfield code="t">Barbe-bleue.</subfield>
    <subfield code="p">V'là z'encor' de drol's de jeunesses.</subfield>
    <subfield code="l">German.</subfield>
  </datafield>
  <datafield tag="700" ind1="1" ind2="2">
    <subfield code="a">Stolz, Robert,</subfield>
    <subfield code="d">1880-1975.</subfield>
    <subfield code="t">Operas.</subfield>
    <subfield code="k">Selections.</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n87824102</subfield>
  </datafield>
  <datafield tag="710" ind1="2" ind2=" ">
    <subfield code="a">Staatskapelle Berlin.</subfield>
    <subfield code="4">prf</subfield>
    <subfield code="0">http://id.loc.gov/authorities/names/n81109044</subfield>
  </datafield>
</record>