From 1787f8b470a39d3999431f8454de8b4d5707f14b Mon Sep 17 00:00:00 2001 From: Petra Maier Date: Tue, 31 Oct 2023 17:04:48 +0100 Subject: [PATCH] Add gndSubjectCategory and lookup-map (RPB-102) --- conf/RPB-Export_HBZ_SWN.tsv | 76 ++++++++++++++++++++++ conf/output/test-output-rppd-lobid-0.json | 4 ++ conf/output/test-output-rppd-lobid-1.json | 7 ++ conf/output/test-output-rppd-lobid-10.json | 7 ++ conf/output/test-output-rppd-lobid-11.json | 4 ++ conf/output/test-output-rppd-lobid-12.json | 4 ++ conf/output/test-output-rppd-lobid-13.json | 7 ++ conf/output/test-output-rppd-lobid-14.json | 4 ++ conf/output/test-output-rppd-lobid-15.json | 4 ++ conf/output/test-output-rppd-lobid-16.json | 4 ++ conf/output/test-output-rppd-lobid-17.json | 7 ++ conf/output/test-output-rppd-lobid-18.json | 7 ++ conf/output/test-output-rppd-lobid-19.json | 7 ++ conf/output/test-output-rppd-lobid-2.json | 4 ++ conf/output/test-output-rppd-lobid-21.json | 4 ++ conf/output/test-output-rppd-lobid-22.json | 4 ++ conf/output/test-output-rppd-lobid-23.json | 7 ++ conf/output/test-output-rppd-lobid-24.json | 4 ++ conf/output/test-output-rppd-lobid-25.json | 7 ++ conf/output/test-output-rppd-lobid-26.json | 4 ++ conf/output/test-output-rppd-lobid-27.json | 4 ++ conf/output/test-output-rppd-lobid-28.json | 7 ++ conf/output/test-output-rppd-lobid-29.json | 7 ++ conf/output/test-output-rppd-lobid-3.json | 4 ++ conf/output/test-output-rppd-lobid-30.json | 4 ++ conf/output/test-output-rppd-lobid-31.json | 4 ++ conf/output/test-output-rppd-lobid-32.json | 4 ++ conf/output/test-output-rppd-lobid-33.json | 7 ++ conf/output/test-output-rppd-lobid-34.json | 4 ++ conf/output/test-output-rppd-lobid-35.json | 4 ++ conf/output/test-output-rppd-lobid-36.json | 10 +++ conf/output/test-output-rppd-lobid-37.json | 10 +++ conf/output/test-output-rppd-lobid-38.json | 4 ++ conf/output/test-output-rppd-lobid-39.json | 10 +++ conf/output/test-output-rppd-lobid-4.json | 7 ++ conf/output/test-output-rppd-lobid-40.json | 7 ++ conf/output/test-output-rppd-lobid-41.json | 4 ++ conf/output/test-output-rppd-lobid-42.json | 4 ++ conf/output/test-output-rppd-lobid-44.json | 10 +++ conf/output/test-output-rppd-lobid-45.json | 7 ++ conf/output/test-output-rppd-lobid-5.json | 4 ++ conf/output/test-output-rppd-lobid-6.json | 4 ++ conf/output/test-output-rppd-lobid-7.json | 4 ++ conf/output/test-output-rppd-lobid-8.json | 4 ++ conf/output/test-output-rppd-lobid-9.json | 4 ++ conf/rppd-to-lobid.fix | 28 +++++++- 46 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 conf/RPB-Export_HBZ_SWN.tsv diff --git a/conf/RPB-Export_HBZ_SWN.tsv b/conf/RPB-Export_HBZ_SWN.tsv new file mode 100644 index 00000000..eebd22fb --- /dev/null +++ b/conf/RPB-Export_HBZ_SWN.tsv @@ -0,0 +1,76 @@ +10.10p Genossenschaft. Gemeinwirtschaft. Alternative Wirtschaft +10.11p Betriebswirtschaft +10.12p Industrie. Handwerk +10.13p Handel. Dienstleistung +10.14p Versicherung +10.15p Werbewirtschaft. Öffentlichkeitsarbeit +10.1p Wirtschaftsgeschichte bis 1900 +10.2dp Volkswirtschaft. Wirtschaftswissenschaften +10.2ep Außenwirtschaft +10.3p Öffentliche Aufgaben. Öffentliche Wirtschaft. Energie- und Rohstoffwirtschaft. Gesundheitswesen +10.4p Wirtschaftspolitik +10.5p Finanzwirtschaft +10.6p Nachrichtenwesen. Verkehrswesen. Fremdenverkehr, Hotel- und Gaststättengewerbe +10.7p Umweltschutz. Raumordnung. Stadtplanung. Landschaftsgestaltung +10.8p Bau +10.9p Geld, Bank, Börse +11.2p Sprachwissenschaft +11.3p Lexikologie. Namenkunde. Fachsprache +12.1p Literaturwissenschaft +12.2p Schreiben. Dichtung +13.1bp Kunst. Kunstgeschichte +13.2p Plastik +13.4p Malerei. Zeichnung. Graphik +13.5p Fotografie +13.6p Kunsthandwerk +13.7p Gegenwartskunst +14.4p Musik. Musikwissenschaft +15.1p Theater. Tanz +15.2p Kabarett. Zirkus. Varieté +15.3p Film +15.4p Rundfunk. Neue Medien +16.1p Geschichtswissenschaft +16.3p Vor- und Frühgeschichte. Archäologie +16.5p Politiker und historische Persönlichkeiten +17.4p Volkskunde. Brauchtum. Karneval +18p Naturwissenschaft allgemein +19.1dp Geographie, Heimat- und Länderkunde +19.2p Geodäsie. Kartographie +19.3p Hydrologie +19.4p Geologie +19.5p Meteorologie +20p Astronomie +21.5p Physik +22.5p Chemie +23.4p Biologie +24.3p Botanik +25.3p Zoologie +26p Anthropologie +27.20p Medizin. Tiermedizin +28p Mathematik +29p Stochastik +2.1p Schrift. Handschrift +2.2p Buch. Buchhandel +2.3p Presse +30p Informatik +31.16p Technik allgemein +31.3p Architektur. Bautechnik +32.10p Landwirtschaft +33.3p Hauswirtschaft. Mode +34.3p Sport +35p Spiel. Unterhaltung +36p Basteln. Handarbeiten +3.1p Religionswissenschaft und nichtchristliche Religionen +3.6p Kirche +4.7p Philosophie +5.5p Psychologie +5.7p Parapsychologie +6.1p Kultur +6.4p Bildung. Erziehung +6.7p Information und Dokumentation +6.8p Archiv. Museum +7.14p Recht +7.15p Öffentliche Verwaltung +8.1p Politikwissenschaft +8.4p Militär +9.5p Soziologie. Gesellschaft \ No newline at end of file diff --git a/conf/output/test-output-rppd-lobid-0.json b/conf/output/test-output-rppd-lobid-0.json index fe7c52b8..92c911b2 100644 --- a/conf/output/test-output-rppd-lobid-0.json +++ b/conf/output/test-output-rppd-lobid-0.json @@ -20,6 +20,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Musik. Musikwissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#14.4p" + } ], "describedBy" : { "dateModified" : "2005-11-16" } diff --git a/conf/output/test-output-rppd-lobid-1.json b/conf/output/test-output-rppd-lobid-1.json index 92d6d5fb..5a5eebde 100644 --- a/conf/output/test-output-rppd-lobid-1.json +++ b/conf/output/test-output-rppd-lobid-1.json @@ -26,6 +26,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Malerei. Zeichnung. Graphik", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#13.4p" + }, { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + } ], "describedBy" : { "dateModified" : "2011-02-18" } diff --git a/conf/output/test-output-rppd-lobid-10.json b/conf/output/test-output-rppd-lobid-10.json index 7682b105..3de8a54f 100644 --- a/conf/output/test-output-rppd-lobid-10.json +++ b/conf/output/test-output-rppd-lobid-10.json @@ -22,6 +22,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Presse", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#2.3p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2010-08-02" } diff --git a/conf/output/test-output-rppd-lobid-11.json b/conf/output/test-output-rppd-lobid-11.json index b74ad76a..37118e0c 100644 --- a/conf/output/test-output-rppd-lobid-11.json +++ b/conf/output/test-output-rppd-lobid-11.json @@ -20,6 +20,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Technik allgemein", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#31.16p" + } ], "describedBy" : { "dateModified" : "2010-10-28" } diff --git a/conf/output/test-output-rppd-lobid-12.json b/conf/output/test-output-rppd-lobid-12.json index 4e5f1462..06ca9482 100644 --- a/conf/output/test-output-rppd-lobid-12.json +++ b/conf/output/test-output-rppd-lobid-12.json @@ -23,6 +23,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Musik. Musikwissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#14.4p" + } ], "describedBy" : { "dateModified" : "2020-12-02" } diff --git a/conf/output/test-output-rppd-lobid-13.json b/conf/output/test-output-rppd-lobid-13.json index 7d9be254..008e5fb3 100644 --- a/conf/output/test-output-rppd-lobid-13.json +++ b/conf/output/test-output-rppd-lobid-13.json @@ -23,6 +23,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Recht", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.14p" + }, { + "label" : "Musik. Musikwissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#14.4p" + } ], "describedBy" : { "dateModified" : "2020-12-01" } diff --git a/conf/output/test-output-rppd-lobid-14.json b/conf/output/test-output-rppd-lobid-14.json index eda963dc..cd68a0e0 100644 --- a/conf/output/test-output-rppd-lobid-14.json +++ b/conf/output/test-output-rppd-lobid-14.json @@ -17,6 +17,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Musik. Musikwissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#14.4p" + } ], "describedBy" : { "dateModified" : "2005-11-30" } diff --git a/conf/output/test-output-rppd-lobid-15.json b/conf/output/test-output-rppd-lobid-15.json index e301e25a..fceb9bf6 100644 --- a/conf/output/test-output-rppd-lobid-15.json +++ b/conf/output/test-output-rppd-lobid-15.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Technik allgemein", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#31.16p" + } ], "describedBy" : { "dateModified" : "2005-11-16" } diff --git a/conf/output/test-output-rppd-lobid-16.json b/conf/output/test-output-rppd-lobid-16.json index e632042b..e6c1a2bc 100644 --- a/conf/output/test-output-rppd-lobid-16.json +++ b/conf/output/test-output-rppd-lobid-16.json @@ -20,6 +20,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Malerei. Zeichnung. Graphik", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#13.4p" + } ], "describedBy" : { "dateModified" : "2015-01-28" } diff --git a/conf/output/test-output-rppd-lobid-17.json b/conf/output/test-output-rppd-lobid-17.json index cb0970e3..1e71a143 100644 --- a/conf/output/test-output-rppd-lobid-17.json +++ b/conf/output/test-output-rppd-lobid-17.json @@ -29,6 +29,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Geschichtswissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.1p" + }, { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + } ], "describedBy" : { "dateModified" : "2006-05-15" } diff --git a/conf/output/test-output-rppd-lobid-18.json b/conf/output/test-output-rppd-lobid-18.json index b81b5e7b..b1afe0a0 100644 --- a/conf/output/test-output-rppd-lobid-18.json +++ b/conf/output/test-output-rppd-lobid-18.json @@ -23,6 +23,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + }, { + "label" : "Kirche", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#3.6p" + } ], "describedBy" : { "dateModified" : "2006-03-20" } diff --git a/conf/output/test-output-rppd-lobid-19.json b/conf/output/test-output-rppd-lobid-19.json index 5dcc5ca8..148651fb 100644 --- a/conf/output/test-output-rppd-lobid-19.json +++ b/conf/output/test-output-rppd-lobid-19.json @@ -23,6 +23,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-2.json b/conf/output/test-output-rppd-lobid-2.json index 12f9b632..d6b58f80 100644 --- a/conf/output/test-output-rppd-lobid-2.json +++ b/conf/output/test-output-rppd-lobid-2.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + } ], "describedBy" : { "dateModified" : "2004-12-20" } diff --git a/conf/output/test-output-rppd-lobid-21.json b/conf/output/test-output-rppd-lobid-21.json index 10cd4022..94d13096 100644 --- a/conf/output/test-output-rppd-lobid-21.json +++ b/conf/output/test-output-rppd-lobid-21.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Industrie. Handwerk", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#10.12p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-22.json b/conf/output/test-output-rppd-lobid-22.json index b118dd05..6a114801 100644 --- a/conf/output/test-output-rppd-lobid-22.json +++ b/conf/output/test-output-rppd-lobid-22.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Kirche", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#3.6p" + } ], "describedBy" : { "dateModified" : "2010-11-22" } diff --git a/conf/output/test-output-rppd-lobid-23.json b/conf/output/test-output-rppd-lobid-23.json index e25c630f..e6486802 100644 --- a/conf/output/test-output-rppd-lobid-23.json +++ b/conf/output/test-output-rppd-lobid-23.json @@ -22,6 +22,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Industrie. Handwerk", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#10.12p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-24.json b/conf/output/test-output-rppd-lobid-24.json index afb8a33c..b74ba028 100644 --- a/conf/output/test-output-rppd-lobid-24.json +++ b/conf/output/test-output-rppd-lobid-24.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Öffentliche Verwaltung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.15p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-25.json b/conf/output/test-output-rppd-lobid-25.json index 8161a6b5..a9205c30 100644 --- a/conf/output/test-output-rppd-lobid-25.json +++ b/conf/output/test-output-rppd-lobid-25.json @@ -19,6 +19,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Landwirtschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#32.10p" + }, { + "label" : "Öffentliche Verwaltung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.15p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-26.json b/conf/output/test-output-rppd-lobid-26.json index ab8fbdac..14cf6c14 100644 --- a/conf/output/test-output-rppd-lobid-26.json +++ b/conf/output/test-output-rppd-lobid-26.json @@ -20,6 +20,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Kirche", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#3.6p" + } ], "describedBy" : { "dateModified" : "2014-06-16" } diff --git a/conf/output/test-output-rppd-lobid-27.json b/conf/output/test-output-rppd-lobid-27.json index f19a84ff..03a9482b 100644 --- a/conf/output/test-output-rppd-lobid-27.json +++ b/conf/output/test-output-rppd-lobid-27.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-28.json b/conf/output/test-output-rppd-lobid-28.json index e4392ed6..e789bac5 100644 --- a/conf/output/test-output-rppd-lobid-28.json +++ b/conf/output/test-output-rppd-lobid-28.json @@ -23,6 +23,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Malerei. Zeichnung. Graphik", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#13.4p" + }, { + "label" : "Plastik", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#13.2p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-29.json b/conf/output/test-output-rppd-lobid-29.json index bec8a8c0..ce2faf86 100644 --- a/conf/output/test-output-rppd-lobid-29.json +++ b/conf/output/test-output-rppd-lobid-29.json @@ -22,6 +22,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Landwirtschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#32.10p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-3.json b/conf/output/test-output-rppd-lobid-3.json index aae69ba8..8b9fbcca 100644 --- a/conf/output/test-output-rppd-lobid-3.json +++ b/conf/output/test-output-rppd-lobid-3.json @@ -26,6 +26,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + } ], "describedBy" : { "dateModified" : "2004-08-02" } diff --git a/conf/output/test-output-rppd-lobid-30.json b/conf/output/test-output-rppd-lobid-30.json index 53455e2c..d7a2b991 100644 --- a/conf/output/test-output-rppd-lobid-30.json +++ b/conf/output/test-output-rppd-lobid-30.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Musik. Musikwissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#14.4p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-31.json b/conf/output/test-output-rppd-lobid-31.json index aedd3f60..0a14a407 100644 --- a/conf/output/test-output-rppd-lobid-31.json +++ b/conf/output/test-output-rppd-lobid-31.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Schreiben. Dichtung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#12.2p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-32.json b/conf/output/test-output-rppd-lobid-32.json index b47cd7ee..9ab65d23 100644 --- a/conf/output/test-output-rppd-lobid-32.json +++ b/conf/output/test-output-rppd-lobid-32.json @@ -23,6 +23,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Religionswissenschaft und nichtchristliche Religionen", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#3.1p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-33.json b/conf/output/test-output-rppd-lobid-33.json index 52c3e417..db3ed280 100644 --- a/conf/output/test-output-rppd-lobid-33.json +++ b/conf/output/test-output-rppd-lobid-33.json @@ -22,6 +22,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + }, { + "label" : "Geographie, Heimat- und Länderkunde", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#19.1dp" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-34.json b/conf/output/test-output-rppd-lobid-34.json index 8ad96f0e..28de8343 100644 --- a/conf/output/test-output-rppd-lobid-34.json +++ b/conf/output/test-output-rppd-lobid-34.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Öffentliche Verwaltung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.15p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-35.json b/conf/output/test-output-rppd-lobid-35.json index bf1139e4..a7de9493 100644 --- a/conf/output/test-output-rppd-lobid-35.json +++ b/conf/output/test-output-rppd-lobid-35.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Recht", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.14p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-36.json b/conf/output/test-output-rppd-lobid-36.json index e222e87b..3e7a7591 100644 --- a/conf/output/test-output-rppd-lobid-36.json +++ b/conf/output/test-output-rppd-lobid-36.json @@ -25,6 +25,16 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Recht", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.14p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + }, { + "label" : "Architektur. Bautechnik", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#31.3p" + } ], "describedBy" : { "dateModified" : "2023-06-01" } diff --git a/conf/output/test-output-rppd-lobid-37.json b/conf/output/test-output-rppd-lobid-37.json index 838ac8c1..e8b9b83d 100644 --- a/conf/output/test-output-rppd-lobid-37.json +++ b/conf/output/test-output-rppd-lobid-37.json @@ -29,6 +29,16 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Presse", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#2.3p" + }, { + "label" : "Soziologie. Gesellschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#9.5p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2023-06-01" } diff --git a/conf/output/test-output-rppd-lobid-38.json b/conf/output/test-output-rppd-lobid-38.json index 1f99d274..8180d331 100644 --- a/conf/output/test-output-rppd-lobid-38.json +++ b/conf/output/test-output-rppd-lobid-38.json @@ -23,6 +23,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Bildung. Erziehung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#6.4p" + } ], "describedBy" : { "dateModified" : "2023-06-01" } diff --git a/conf/output/test-output-rppd-lobid-39.json b/conf/output/test-output-rppd-lobid-39.json index 58b0f8f3..43ddeeb3 100644 --- a/conf/output/test-output-rppd-lobid-39.json +++ b/conf/output/test-output-rppd-lobid-39.json @@ -26,6 +26,16 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + }, { + "label" : "Landwirtschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#32.10p" + }, { + "label" : "Handel. Dienstleistung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#10.13p" + } ], "describedBy" : { "dateModified" : "2011-02-03" } diff --git a/conf/output/test-output-rppd-lobid-4.json b/conf/output/test-output-rppd-lobid-4.json index 790f7fe5..3aa44a0f 100644 --- a/conf/output/test-output-rppd-lobid-4.json +++ b/conf/output/test-output-rppd-lobid-4.json @@ -26,6 +26,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Finanzwirtschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#10.5p" + }, { + "label" : "Schreiben. Dichtung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#12.2p" + } ], "describedBy" : { "dateModified" : "2016-10-05" } diff --git a/conf/output/test-output-rppd-lobid-40.json b/conf/output/test-output-rppd-lobid-40.json index b13c2f1d..95310aed 100644 --- a/conf/output/test-output-rppd-lobid-40.json +++ b/conf/output/test-output-rppd-lobid-40.json @@ -22,6 +22,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#female", "label" : "Weiblich" } ], + "gndSubjectCategory" : [ { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + }, { + "label" : "Recht", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#7.14p" + } ], "describedBy" : { "dateModified" : "2015-12-01" } diff --git a/conf/output/test-output-rppd-lobid-41.json b/conf/output/test-output-rppd-lobid-41.json index dc8d3730..d68113e6 100644 --- a/conf/output/test-output-rppd-lobid-41.json +++ b/conf/output/test-output-rppd-lobid-41.json @@ -20,6 +20,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2008-02-22" } diff --git a/conf/output/test-output-rppd-lobid-42.json b/conf/output/test-output-rppd-lobid-42.json index e5253f46..729facf0 100644 --- a/conf/output/test-output-rppd-lobid-42.json +++ b/conf/output/test-output-rppd-lobid-42.json @@ -18,6 +18,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Plastik", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#13.2p" + } ], "describedBy" : { "dateModified" : "2009-09-23" } diff --git a/conf/output/test-output-rppd-lobid-44.json b/conf/output/test-output-rppd-lobid-44.json index 45f4d1c4..bbb9b508 100644 --- a/conf/output/test-output-rppd-lobid-44.json +++ b/conf/output/test-output-rppd-lobid-44.json @@ -25,6 +25,16 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Industrie. Handwerk", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#10.12p" + }, { + "label" : "Handel. Dienstleistung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#10.13p" + }, { + "label" : "Musik. Musikwissenschaft", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#14.4p" + } ], "describedBy" : { "dateModified" : "2019-07-02" } diff --git a/conf/output/test-output-rppd-lobid-45.json b/conf/output/test-output-rppd-lobid-45.json index fa69d513..2eee579f 100644 --- a/conf/output/test-output-rppd-lobid-45.json +++ b/conf/output/test-output-rppd-lobid-45.json @@ -21,6 +21,13 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Technik allgemein", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#31.16p" + }, { + "label" : "Politiker und historische Persönlichkeiten", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#16.5p" + } ], "describedBy" : { "dateModified" : "2006-07-11" } diff --git a/conf/output/test-output-rppd-lobid-5.json b/conf/output/test-output-rppd-lobid-5.json index c4139948..92ba88b5 100644 --- a/conf/output/test-output-rppd-lobid-5.json +++ b/conf/output/test-output-rppd-lobid-5.json @@ -21,6 +21,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Philosophie", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#4.7p" + } ], "describedBy" : { "dateModified" : "2004-08-04" } diff --git a/conf/output/test-output-rppd-lobid-6.json b/conf/output/test-output-rppd-lobid-6.json index d792f72d..112c06be 100644 --- a/conf/output/test-output-rppd-lobid-6.json +++ b/conf/output/test-output-rppd-lobid-6.json @@ -23,6 +23,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Schreiben. Dichtung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#12.2p" + } ], "describedBy" : { "dateModified" : "2007-03-06" } diff --git a/conf/output/test-output-rppd-lobid-7.json b/conf/output/test-output-rppd-lobid-7.json index e73f283c..e5d64dad 100644 --- a/conf/output/test-output-rppd-lobid-7.json +++ b/conf/output/test-output-rppd-lobid-7.json @@ -19,6 +19,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Schreiben. Dichtung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#12.2p" + } ], "describedBy" : { "dateModified" : "2005-12-08" } diff --git a/conf/output/test-output-rppd-lobid-8.json b/conf/output/test-output-rppd-lobid-8.json index e1268b10..b64b2b3c 100644 --- a/conf/output/test-output-rppd-lobid-8.json +++ b/conf/output/test-output-rppd-lobid-8.json @@ -21,6 +21,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Presse", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#2.3p" + } ], "describedBy" : { "dateModified" : "2004-08-02" } diff --git a/conf/output/test-output-rppd-lobid-9.json b/conf/output/test-output-rppd-lobid-9.json index 9a88a46d..8b4c19ca 100644 --- a/conf/output/test-output-rppd-lobid-9.json +++ b/conf/output/test-output-rppd-lobid-9.json @@ -20,6 +20,10 @@ "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" } ], + "gndSubjectCategory" : [ { + "label" : "Schreiben. Dichtung", + "id" : "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#12.2p" + } ], "describedBy" : { "dateModified" : "2008-03-31" } diff --git a/conf/rppd-to-lobid.fix b/conf/rppd-to-lobid.fix index 7f606c82..2a987bd3 100644 --- a/conf/rppd-to-lobid.fix +++ b/conf/rppd-to-lobid.fix @@ -1,6 +1,10 @@ do once("map") put_filemap("conf/RPB-Export_HBZ_SW.tsv", "SW_map", sep_char: "\t") end +do once("map_category") + put_filemap("conf/RPB-Export_HBZ_SWN.tsv", "SWN_map", sep_char: "\t") +end + # ------ #00 RPPD-ID @@ -154,6 +158,27 @@ end # ------- # #1nw (Fachgebiete (m)) -> gndSubjectCategory # Kommentar Doku: Normdaten aus SWN-Sätzen (Reg. 9 und Reg. 11), getrennt mit @: Bsp.: #1nw_swn12x2p_@_swn3x6p_; entspricht der GND-Systematik; paarig zu Berufen vergeben +# https://d-nb.info/standards/vocab/gnd/gnd-sc.html# +# gndSubjectCategory[].*.id +# gndSubjectCategory[].*.label + +set_array("gndSubjectCategory[]") +do list(path:"f1nw[]", "var": "$i") + replace_all("$i.f1nw", "_", "") + replace_all("$i.f1nw", "(\\d)x(\\d)", "$1.$2") + replace_all("$i.f1nw", "^swn", "") + copy_field("$i.f1nw", "gndSubjectCategory[].$append.label") + copy_field("$i.f1nw", "gndSubjectCategory[].$last.id") +end + +do list(path:"gndSubjectCategory[]", "var": "$i") + lookup("$i.label", "SWN_map", delete: "true") + if exists("$i.label") + prepend("$i.id", "https://d-nb.info/standards/vocab/gnd/gnd-sc.html#") + else + prepend("$i.id", "https://rpb.lobid.org/swn/") + end +end # ------- # #1nx (Quelle (m)) -> biographicalOrHistoricalInformation @@ -184,6 +209,7 @@ retain( "rppdId", "type[]", "variantName[]", - "periodOfActivity[]" + "periodOfActivity[]", + "gndSubjectCategory[]" ) \ No newline at end of file