Skip to content

Commit

Permalink
Include lookup table creation in transformRppd.sh (RPB-120, #61)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Dec 21, 2023
1 parent f77363b commit 1a29c6a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions conf/maps/gndId-to-rppdId.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -5871,7 +5871,7 @@ pk06406 https://d-nb.info/gnd/1145330444 Blaum, Josef
pk06407 https://d-nb.info/gnd/114532956X Stiehl, Wilhelm
pk06408 https://d-nb.info/gnd/1148572872 Theis, Heinrich
pk06409 https://d-nb.info/gnd/1147711046 Blankart, Kuno ¬von¬
pk06410 https://d-nb.info/gnd/133313646 Hoëcker, Bernhard
pk06410 https://d-nb.info/gnd/133313646 Hoeވcker, Bernhard
pk06411 https://d-nb.info/gnd/122700392 Bötsch, Wolfgang
pk06412 https://d-nb.info/gnd/1068872489 Henn, Armin
pk06413 https://d-nb.info/gnd/1148019863 Schommer, Bern
Expand Down Expand Up @@ -12957,7 +12957,7 @@ pta0922 https://d-nb.info/gnd/1051217199 Neyses, Matthias
pta0923 https://d-nb.info/gnd/1051211808 Niederprüm, Johann Adam
pta0925 https://d-nb.info/gnd/1051211816 Nießen, Franz Ludwig
pta0926 https://d-nb.info/gnd/11699620X Nikolaus, Paul
pta0927 https://d-nb.info/gnd/1051211832 Noël, André Joseph
pta0927 https://d-nb.info/gnd/1051211832 Noe▐êl, André Joseph
pta0928 https://d-nb.info/gnd/1051211840 Nonn, Mathias
pta0929 https://d-nb.info/gnd/1051211859 Nottar, Nikolaus Vincenz
pta0930 https://d-nb.info/gnd/1051211867 Nusbaum, Nikolaus
Expand Down
8 changes: 4 additions & 4 deletions conf/output/test-output-rppd-lobid-46.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"label" : "Alexander, Franz Ambros",
"id" : "https://d-nb.info/gnd/130566969"
}, {
"label" : "Alexander, Philipp / 1787-1864",
"label" : "Alexander, Philipp",
"id" : "https://rppd.lobid.org/pk06675"
}, {
"label" : "Alexander, Kaspar Anton",
"id" : "https://d-nb.info/gnd/130566993"
}, {
"label" : "Alexander, Franz Anton / 1838-1926",
"label" : "Alexander, Franz Anton",
"id" : "https://rppd.lobid.org/pk06682"
}, {
"label" : "Alexander, Georg Philipp",
Expand All @@ -42,7 +42,7 @@
"label" : "Alexander, Anton",
"id" : "https://d-nb.info/gnd/131993518"
}, {
"label" : "Alexander, Georg Philipp / 1879-1916",
"label" : "Alexander, Georg Philipp",
"id" : "https://rppd.lobid.org/pk06677"
}, {
"label" : "Alexander, Philipp",
Expand All @@ -54,7 +54,7 @@
"label" : "Alexander, Hans Peter",
"id" : "https://d-nb.info/gnd/133467317"
}, {
"label" : "Alexander, Georg Philipp / 1969-",
"label" : "Alexander, Georg Philipp",
"id" : "https://rppd.lobid.org/pk06681"
}, {
"label" : "Wagner, Richard / 1813-1883",
Expand Down
2 changes: 1 addition & 1 deletion conf/rppd-rppdId-with-label-map.flux
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FLUX_DIR + "output/output-rppd.json"
FLUX_DIR + "output/output-rppd-strapi.ndjson"
| open-file
| as-lines
| decode-json
Expand Down
2 changes: 1 addition & 1 deletion conf/rppd-to-gnd-mapping.flux
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FLUX_DIR + "output/output-rppd.json"
FLUX_DIR + "output/output-rppd-strapi.ndjson"
| open-file
| as-lines
| decode-json
Expand Down
2 changes: 2 additions & 0 deletions transformRppd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -eu
bash transformBeacons.sh
rm conf/output/bulk/rppd/*
sbt "runMain rpb.ETL conf/rppd-to-strapi.flux IN_FILE=RPB-Export_HBZ_Bio.txt OUT_FILE=output-rppd-strapi.ndjson"
sbt "runMain rpb.ETL conf/rppd-to-gnd-mapping.flux"
sbt "runMain rpb.ETL conf/rppd-rppdId-with-label-map.flux"
sbt "runMain rpb.ETL conf/rppd-to-lobid.flux"

# Indexing happens in rppd/transformAndIndexRppd.sh (lobid-gnd repo, branch 'rppd'), which calls this script

0 comments on commit 1a29c6a

Please sign in to comment.