Skip to content

Commit

Permalink
Merge #2092 from branch '2082-LookupGnd2Formangabe' of github.com:hbz…
Browse files Browse the repository at this point in the history
…/lobid-resources
  • Loading branch information
dr0i committed Nov 7, 2024
2 parents 3fa34f8 + 194e721 commit c32cadd
Show file tree
Hide file tree
Showing 7 changed files with 1,841 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/alma/fix/maps.fix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ put_rdfmap("$[nwbib-spatial.ttl]", "nwbib-spatial", target: "skos:prefLabel", se
put_rdfmap("$[nwbib.ttl]", "nwbib", target: "skos:prefLabel", select_language: "de") # Sachsystematik der Nordrhein-Westfälischen Bibliographie

# Formschlagwort/Formangaben-Mapping -> GND (based on: https://wiki.dnb.de/download/attachments/106042227/AH-007.pdf)
put_filemap("$[formangabe.tsv]","formschlagwort2Gnd", sep_char:"\t",key_column:"0",value_column:"1",expected_columns:"-1")
put_filemap("$[formangabe.tsv]","formschlagwort2Gnd", sep_char:"\t",key_column:"0",value_column:"2",expected_columns:"-1")
put_filemap("$[formangabe.tsv]","Gnd2formschlagwort", sep_char:"\t",key_column:"2",value_column:"0",expected_columns:"-1")

# almaMmsId -> rpbId
put_filemap("$[almaMmsId2rpbId]","almaMmsId2rpbId", sep_char:"\t",key_column:"0",value_column:"1",expected_columns:"-1")
Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/alma/fix/subjects.fix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ set_array("natureOfContent[]")
# Ind: 2. 7= Source specified in subfield $2.

do list(path:"655 7", "var":"$i")
unless in("$i.a","natureOfContent[].*.label")
unless exists("$i.a")
copy_field("$i.0", "natureOfContent[].$append.label")
do list(path: "natureOfContent[]", "var":"$i")
replace_all("$i.label", "^\\(DE-588\\)(.*)$", "$1")
lookup("$i.label", "Gnd2formschlagwort", delete:"true")
end
end
unless in("$i.a","natureOfContent[].*.label")
unless any_equal("$i.2","gnd-carrier")
unless any_match("$i.a",".*(Audiovisuelles Material|Bildplatte|CD|CD-ROM|Dia|Diskette|DVD-Audio|DVD-ROM|DVD-Video|Elektronische Publikation|Film|Medienkombination|Mikroform|Musikdruck|Online-Publikation|Schallplatte|Text|Tonbildreihe|Tonkassette|Tonträger|Videokassette).*")
copy_field("$i.a","natureOfContent[].$append.label")
Expand Down
120 changes: 120 additions & 0 deletions src/test/resources/alma-fix/991030115479706476.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"id" : "http://lobid.org/resources/991030115479706476#!",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "De perfectione vitae spiritualis",
"almaMmsId" : "991030115479706476",
"alternativeTitle" : [ "Tractatus de perfectione status spiritualis", "Tractatus sancti Thome de perfectione status spiritualis" ],
"publication" : [ {
"startDate" : "1472",
"type" : [ "PublicationEvent" ],
"location" : [ "Köln" ],
"publishedBy" : [ "[Arnold ter Hoernen]" ]
} ],
"titleKeyword" : [ "Thomae" ],
"describedBy" : {
"id" : "http://lobid.org/resources/991030115479706476",
"label" : "Webseite der hbz-Ressource 991030115479706476",
"type" : [ "BibliographicDescription" ],
"inDataset" : {
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
"label" : "Software lobid-resources"
},
"object" : {
"id" : "https://lobid.org/marcxml/991030115479706476",
"dateCreated" : "2023-08-22",
"dateModified" : "2024-05-31",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 991030115479706476 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
"id" : "http://creativecommons.org/publicdomain/zero/1.0",
"label" : "Creative Commons-Lizenz CC0 1.0 Universal"
} ]
},
"exampleOfWork" : {
"label" : "De perfectione status spiritualis",
"type" : [ "Work" ]
},
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/lat",
"label" : "Latein"
} ],
"extent" : "[58] Bl. ; 4°",
"note" : [ "Ansetzung nach GW: Tractatus de perfectione status spiritualis. - ISTC: De perfectione vitae spiritualis. - Textbeginn: Tractat[us] sancti Thome de p[er]f[e]c[ti]o[n]e stat[us] sp[irit]ualis" ],
"natureOfContent" : [ {
"label" : "Inkunabel",
"id" : "https://d-nb.info/gnd/4027041-5"
} ],
"hasItem" : [ {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "GBIV6246",
"serialNumber" : "GBIV6246",
"currentLibrary" : "38-HLS",
"currentLocation" : "38-HLS-MAG",
"heldBy" : {
"isil" : "DE-38",
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
},
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=991030115479706476&fdb=uni" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
} ],
"id" : "http://lobid.org/items/991030115479706476:DE-38:23254080940006476#!"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"responsibilityStatement" : [ "Thomas <de Aquino>" ],
"contribution" : [ {
"agent" : {
"gndIdentifier" : "118622110",
"id" : "https://d-nb.info/gnd/118622110",
"label" : "Thomas, von Aquin, Heiliger",
"type" : [ "Person" ],
"dateOfBirth" : "1225",
"dateOfDeath" : "1274",
"altLabel" : [ "Thomas, von Aquin", "Thomas, de Aquino, Heiliger", "Thomas, de Aquino", "Thomas, ab Aquino, Heiliger", "Thomas, ab Aquino", "Doctor Angelicus", "Dottore angelico", "Thomas, Akinatos, Heiliger", "Thomas, Akuinatos, Heiliger", "Thomas, Aquinatus, Heiliger", "Thomas, Aquinas, Heiliger", "Thomas, Aquinus, Heiliger", "Thomas, Aquinatus, Sanctus", "Thōmas, Akinatos, Heiliger", "Tommaso, d'Aquino, Heiliger", "Thomas, von Aquino, Heiliger", "Thomas, von Aquino", "Thomas, Aquinatis, Heiliger", "Thomas, d'Aquin, Heiliger", "Thomas, d'Aquin, Saint", "Thomas, de Aquinas, Heiliger", "Thomas, Camisensis, Heiliger", "Tomás, de Aquino, Heiliger", "Tomasz, z Akwinu, Heiliger", "Thomas, ho Akinatas, Heiliger", "Thomas, Daqui, Heiliger", "Tommaso, d'Aquino, San", "Tommaso, d'Aquino", "Thomas, Aquinas, Saint", "Tomás, de Aquino, Santo", "Tūmā al-Akwīnī, Heiliger", "Thomas, Beatus", "Aquinas, Heiliger", "Foma, Akvinskij, Heiliger", "Pseudo-Thomas, von Aquin", "Pseudo-Thomas, Aquinas", "Pseudo-Thomas, de Aquino", "Aquinas", "Foma, Akvinskiĭ, Saint", "Thomas, av Aquino, Saint", "Thomas, von Aquin, Saint", "T'oma, Ak'vineli, Saint", "Toma, Akvinski, Saint", "Toma, Akvinskii, Saint", "Toma, Akvins'kyi, Saint", "Toma, ot Akvino, Saint", "Tomas, Akvinietis, Saint", "Tomas, de Aquino, Saint", "Tomasu, Akuinasu, Saint", "Tomasu, Akwinasu, Saint", "Tomasz, Akwinu, Saint", "Tommaso, d'Aquino, Saint", "T'ovma, Ak'uinats'i Saint", "Thomas, 'o Akinatos, Saint", "Thomas, 'o Akinates, Saint", "Thomas, 'o Akuinatos, Saint", "Thomas, 'o Akuinates, Saint", "Tomás, de Aquino, Saint", "Тома, Аквінський, Saint", "Pתומאס אקווינאס", "Pתומס אקווינס", "اكويني ، توما", "Aquinatus, Thomas, Heiliger", "Aquin, Thomas, von, Heiliger", "Aquino, Thomas, von, Heiliger", "Aquinas, Thomas, de, Heiliger", "Aquino, Tommaso, d', Heiliger", "Aquino, Thomas, de, Heiliger", "Aquino, Tomás, de, Heiliger", "Aquinas, Thomas, Heiliger", "Aquinas, Thomas, Saint", "Aquino, Tommaso Niccolò, d', Heiliger", "Aquino, Tommaso N., d', Heiliger", "Akvinskij, Foma, Heiliger", "Akwīnī, Tūmā, al-, Heiliger", "Daqui, Thomas, Seut", "Ak'vineli, T'oma, Saint", "Akvinietis, Tomas, Saint", "Akvinskii, Foma, Saint", "Aquin, Thomas von", "Aquino, Thomas von", "阿奎那, 聖托馬斯" ]
},
"role" : {
"id" : "http://id.loc.gov/vocabulary/relators/aut",
"label" : "Autor/in"
},
"type" : [ "Contribution" ]
}, {
"agent" : {
"gndIdentifier" : "137661495",
"id" : "https://d-nb.info/gnd/137661495",
"label" : "Arnold, ter Hoernen",
"type" : [ "Person" ],
"dateOfDeath" : "1483",
"altLabel" : [ "Arnoldus, ther Hornen", "Hoernen, Arnold ter", "Hoernen, Arnold ther", "Therhoernen, Arnold", "Terhoernen, Arnold", "Terhornen, Arnold", "Ther Hoernen, Arnold", "Ther Hoernen, Arnoldus", "Ter Hoernen, Arnold", "Ther Hornen, Arnold", "Hurnen, Arnold ter", "Hornen, Arnold ter", "Hornen, Arnoldus ther", "Horn, Arnold" ]
},
"role" : {
"id" : "http://id.loc.gov/vocabulary/relators/prt",
"label" : "Druck"
},
"type" : [ "Contribution" ]
} ]
}
Loading

0 comments on commit c32cadd

Please sign in to comment.