diff --git a/conf/output/test-output-rppd-lobid-0.json b/conf/output/test-output-rppd-lobid-0.json index 92c911b2..7e927e8b 100644 --- a/conf/output/test-output-rppd-lobid-0.json +++ b/conf/output/test-output-rppd-lobid-0.json @@ -14,6 +14,25 @@ "label" : "Komponist", "id" : "https://d-nb.info/gnd/4032009-1" } ], + "placeOfActivity" : [ { + "label" : "Köln" + }, { + "label" : "München" + }, { + "label" : "Xanten" + }, { + "label" : "Bayreuth" + }, { + "label" : "https://rpb.lobid.org/spatial#n14000501", + "id" : "https://rpb.lobid.org/spatial#n14000501" + }, { + "label" : "Barcelona" + }, { + "label" : "Frankfurt am Main" + }, { + "label" : "Mainz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n31500000" + } ], "dateOfBirth" : [ "1854-09-01" ], "dateOfDeath" : [ "1921-09-27" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-1.json b/conf/output/test-output-rppd-lobid-1.json index 5a5eebde..34f98ccc 100644 --- a/conf/output/test-output-rppd-lobid-1.json +++ b/conf/output/test-output-rppd-lobid-1.json @@ -20,6 +20,10 @@ "label" : "Kunsterzieher", "id" : "https://d-nb.info/gnd/4302182-7" } ], + "placeOfActivity" : [ { + "label" : "Linz am Rhein, Stadt", + "id" : "https://rpb.lobid.org/spatial#n13804041" + } ], "dateOfBirth" : [ "1896-11-14" ], "dateOfDeath" : [ "1984" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-10.json b/conf/output/test-output-rppd-lobid-10.json index 3de8a54f..1aa59e88 100644 --- a/conf/output/test-output-rppd-lobid-10.json +++ b/conf/output/test-output-rppd-lobid-10.json @@ -16,6 +16,14 @@ "label" : "Politiker", "id" : "https://d-nb.info/gnd/4046517-2" } ], + "placeOfActivity" : [ { + "label" : "Diez,Stadt", + "id" : "https://rpb.lobid.org/spatial#n14103029" + }, { + "label" : "Wiesbaden" + }, { + "label" : "Berlin" + } ], "dateOfBirth" : [ "1825-06-09" ], "dateOfDeath" : [ "1880-01-01" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-11.json b/conf/output/test-output-rppd-lobid-11.json index 37118e0c..d0966671 100644 --- a/conf/output/test-output-rppd-lobid-11.json +++ b/conf/output/test-output-rppd-lobid-11.json @@ -14,6 +14,11 @@ "label" : "Flugzeugkonstrukteur", "id" : "https://rpb.lobid.org/sw/00Sn02x0286a" } ], + "placeOfActivity" : [ { + "label" : "Schweden" + }, { + "label" : "Berlin" + } ], "dateOfBirth" : [ "1895-02-11" ], "dateOfDeath" : [ "1976-03-03" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-12.json b/conf/output/test-output-rppd-lobid-12.json index 06ca9482..686d81b1 100644 --- a/conf/output/test-output-rppd-lobid-12.json +++ b/conf/output/test-output-rppd-lobid-12.json @@ -17,6 +17,14 @@ "label" : "Dirigent", "id" : "https://d-nb.info/gnd/4012434-4" } ], + "placeOfActivity" : [ { + "label" : "Koblenz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n11100000" + }, { + "label" : "London" + }, { + "label" : "New York, NY" + } ], "dateOfBirth" : [ "1818-01-10" ], "dateOfDeath" : [ "1870-12-30" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-13.json b/conf/output/test-output-rppd-lobid-13.json index 008e5fb3..869dbfbd 100644 --- a/conf/output/test-output-rppd-lobid-13.json +++ b/conf/output/test-output-rppd-lobid-13.json @@ -17,6 +17,10 @@ "label" : "Musikdirektor", "id" : "https://d-nb.info/gnd/7628980-1" } ], + "placeOfActivity" : [ { + "label" : "Koblenz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n11100000" + } ], "dateOfBirth" : [ "1772-03-19" ], "dateOfDeath" : [ "1855-12-26" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-14.json b/conf/output/test-output-rppd-lobid-14.json index cd68a0e0..63168493 100644 --- a/conf/output/test-output-rppd-lobid-14.json +++ b/conf/output/test-output-rppd-lobid-14.json @@ -13,6 +13,9 @@ "label" : "Komponist", "id" : "https://d-nb.info/gnd/4032009-1" } ], + "placeOfActivity" : [ { + "label" : "Brühl " + } ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" diff --git a/conf/output/test-output-rppd-lobid-15.json b/conf/output/test-output-rppd-lobid-15.json index fceb9bf6..656a70c8 100644 --- a/conf/output/test-output-rppd-lobid-15.json +++ b/conf/output/test-output-rppd-lobid-15.json @@ -13,6 +13,10 @@ "label" : "Tiefbauingenieur", "id" : "https://rpb.lobid.org/sw/00Sn02x8761a" } ], + "placeOfActivity" : [ { + "label" : "Kirn, Stadt", + "id" : "https://rpb.lobid.org/spatial#n13309052" + } ], "dateOfBirth" : [ "1894-01-02" ], "dateOfDeath" : [ "Oktober 1989" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-16.json b/conf/output/test-output-rppd-lobid-16.json index e6c1a2bc..0e13291f 100644 --- a/conf/output/test-output-rppd-lobid-16.json +++ b/conf/output/test-output-rppd-lobid-16.json @@ -14,6 +14,12 @@ "label" : "Maler", "id" : "https://d-nb.info/gnd/4037215-7" } ], + "placeOfActivity" : [ { + "label" : "Koblenz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n11100000" + }, { + "label" : "Köln" + } ], "dateOfBirth" : [ "1796-12-20" ], "dateOfDeath" : [ "1844-02-29" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-17.json b/conf/output/test-output-rppd-lobid-17.json index 1e71a143..86df9779 100644 --- a/conf/output/test-output-rppd-lobid-17.json +++ b/conf/output/test-output-rppd-lobid-17.json @@ -23,6 +23,14 @@ "label" : "Gymnasiallehrer", "id" : "https://d-nb.info/gnd/4158589-6" } ], + "placeOfActivity" : [ { + "label" : "Remscheid" + }, { + "label" : "Bünde" + }, { + "label" : "Oberlahnstein", + "id" : "https://rpb.lobid.org/spatial#n141000750200" + } ], "dateOfBirth" : [ "1857-12-01" ], "dateOfDeath" : [ "1923-12-02" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-18.json b/conf/output/test-output-rppd-lobid-18.json index b1afe0a0..cfc6f611 100644 --- a/conf/output/test-output-rppd-lobid-18.json +++ b/conf/output/test-output-rppd-lobid-18.json @@ -17,6 +17,19 @@ "label" : "Lehrer", "id" : "https://d-nb.info/gnd/4035088-5" } ], + "placeOfActivity" : [ { + "label" : "https://rpb.lobid.org/spatial#n14302229", + "id" : "https://rpb.lobid.org/spatial#n14302229" + }, { + "label" : "Bendorf, Stadt", + "id" : "https://rpb.lobid.org/spatial#n13700203" + }, { + "label" : "https://rpb.lobid.org/spatial#n14302287", + "id" : "https://rpb.lobid.org/spatial#n14302287" + }, { + "label" : "Altenkirchen (Westerwald), Stadt", + "id" : "https://rpb.lobid.org/spatial#n13210501" + } ], "dateOfBirth" : [ "1603" ], "dateOfDeath" : [ "1658-12-12" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-2.json b/conf/output/test-output-rppd-lobid-2.json index d6b58f80..7cbbf148 100644 --- a/conf/output/test-output-rppd-lobid-2.json +++ b/conf/output/test-output-rppd-lobid-2.json @@ -13,6 +13,10 @@ "label" : "Lehrer", "id" : "https://d-nb.info/gnd/4035088-5" } ], + "placeOfActivity" : [ { + "label" : "Bruchhausen", + "id" : "https://rpb.lobid.org/spatial#n13807008" + } ], "dateOfBirth" : [ "1895-04-04" ], "dateOfDeath" : [ "1972-04-23" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-25.json b/conf/output/test-output-rppd-lobid-25.json index a9205c30..98088b28 100644 --- a/conf/output/test-output-rppd-lobid-25.json +++ b/conf/output/test-output-rppd-lobid-25.json @@ -13,6 +13,15 @@ "label" : "Oberregierungsrat", "id" : "https://d-nb.info/gnd/4398834-9" } ], + "placeOfActivity" : [ { + "label" : "Würzburg" + }, { + "label" : "https://rpb.lobid.org/spatial#n21100000", + "id" : "https://rpb.lobid.org/spatial#n21100000" + }, { + "label" : "Bernkastel", + "id" : "https://rpb.lobid.org/spatial#n231010080200" + } ], "dateOfBirth" : [ "1893-04-21" ], "dateOfDeath" : [ "1952-10-16" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-26.json b/conf/output/test-output-rppd-lobid-26.json index 14cf6c14..463c5dfd 100644 --- a/conf/output/test-output-rppd-lobid-26.json +++ b/conf/output/test-output-rppd-lobid-26.json @@ -14,6 +14,13 @@ "label" : "Dekan / Kirche", "id" : "https://d-nb.info/gnd/4441540-0" } ], + "placeOfActivity" : [ { + "label" : "https://rpb.lobid.org/spatial#n23206296", + "id" : "https://rpb.lobid.org/spatial#n23206296" + }, { + "label" : "Wassenach", + "id" : "https://rpb.lobid.org/spatial#n13104209" + } ], "dateOfBirth" : [ "1872-09-17" ], "dateOfDeath" : [ "1942-10-03" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-3.json b/conf/output/test-output-rppd-lobid-3.json index 8b9fbcca..8dfb561c 100644 --- a/conf/output/test-output-rppd-lobid-3.json +++ b/conf/output/test-output-rppd-lobid-3.json @@ -20,6 +20,10 @@ "label" : "Verleger", "id" : "https://d-nb.info/gnd/4138343-6" } ], + "placeOfActivity" : [ { + "label" : "Bad Ems, Stadt", + "id" : "https://rpb.lobid.org/spatial#n14110006" + } ], "dateOfBirth" : [ "1914-11-05" ], "dateOfDeath" : [ "2003-07-01" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-36.json b/conf/output/test-output-rppd-lobid-36.json index 3e7a7591..add49b99 100644 --- a/conf/output/test-output-rppd-lobid-36.json +++ b/conf/output/test-output-rppd-lobid-36.json @@ -19,6 +19,15 @@ "label" : "Ehrenamtliche Tätigkeit", "id" : "https://d-nb.info/gnd/4013673-5" } ], + "placeOfActivity" : [ { + "label" : "https://rpb.lobid.org/spatial#n14304048", + "id" : "https://rpb.lobid.org/spatial#n14304048" + }, { + "label" : "Mainz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n31500000" + }, { + "label" : "Düsseldorf" + } ], "dateOfBirth" : [ "1936-11-28" ], "dateOfDeath" : [ "2023-05-30" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-37.json b/conf/output/test-output-rppd-lobid-37.json index e8b9b83d..b158301b 100644 --- a/conf/output/test-output-rppd-lobid-37.json +++ b/conf/output/test-output-rppd-lobid-37.json @@ -23,6 +23,13 @@ "label" : "Ortsvorsteher", "id" : "https://d-nb.info/gnd/4466532-5" } ], + "placeOfActivity" : [ { + "label" : "Limburg, Lahn" + }, { + "label" : "Neesbach" + }, { + "label" : "Hünfelden" + } ], "dateOfBirth" : [ "1935-05-25" ], "dateOfDeath" : [ "2023-04-14" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-38.json b/conf/output/test-output-rppd-lobid-38.json index 8180d331..a8cb702e 100644 --- a/conf/output/test-output-rppd-lobid-38.json +++ b/conf/output/test-output-rppd-lobid-38.json @@ -17,6 +17,11 @@ "label" : "Mäzen", "id" : "https://d-nb.info/gnd/7607862-0" } ], + "placeOfActivity" : [ { + "label" : "Jena" + }, { + "label" : "Köln" + } ], "dateOfBirth" : [ "1823-05-24" ], "dateOfDeath" : [ "1892-03-11" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-39.json b/conf/output/test-output-rppd-lobid-39.json index 43ddeeb3..446db523 100644 --- a/conf/output/test-output-rppd-lobid-39.json +++ b/conf/output/test-output-rppd-lobid-39.json @@ -20,6 +20,10 @@ "label" : "Gastwirt", "id" : "https://d-nb.info/gnd/4156075-9" } ], + "placeOfActivity" : [ { + "label" : "Leubsdorf", + "id" : "https://rpb.lobid.org/spatial#n13804037" + } ], "dateOfBirth" : [ "1899-11-12" ], "dateOfDeath" : [ "1973-06-24" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-4.json b/conf/output/test-output-rppd-lobid-4.json index 3aa44a0f..30e5187e 100644 --- a/conf/output/test-output-rppd-lobid-4.json +++ b/conf/output/test-output-rppd-lobid-4.json @@ -20,6 +20,10 @@ "label" : "Kolumnist", "id" : "https://d-nb.info/gnd/4335688-6" } ], + "placeOfActivity" : [ { + "label" : "Wahlrod", + "id" : "https://rpb.lobid.org/spatial#n14302301" + } ], "dateOfBirth" : [ "1932-10-10" ], "dateOfDeath" : [ "2016-09-28" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-40.json b/conf/output/test-output-rppd-lobid-40.json index 95310aed..65d433ed 100644 --- a/conf/output/test-output-rppd-lobid-40.json +++ b/conf/output/test-output-rppd-lobid-40.json @@ -16,6 +16,10 @@ "label" : "Juristin", "id" : "https://d-nb.info/gnd/4130076-2" } ], + "placeOfActivity" : [ { + "label" : "Mainz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n31500000" + } ], "dateOfBirth" : [ "1928-06-08" ], "dateOfDeath" : [ "2015-10-07" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-41.json b/conf/output/test-output-rppd-lobid-41.json index d68113e6..04f75d8d 100644 --- a/conf/output/test-output-rppd-lobid-41.json +++ b/conf/output/test-output-rppd-lobid-41.json @@ -16,6 +16,10 @@ "label" : "Kommunalpolitiker", "id" : "https://d-nb.info/gnd/4396366-3" } ], + "placeOfActivity" : [ { + "label" : "Herdorf, Stadt", + "id" : "https://rpb.lobid.org/spatial#n13203050" + } ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" diff --git a/conf/output/test-output-rppd-lobid-42.json b/conf/output/test-output-rppd-lobid-42.json index 729facf0..5c48482b 100644 --- a/conf/output/test-output-rppd-lobid-42.json +++ b/conf/output/test-output-rppd-lobid-42.json @@ -13,6 +13,10 @@ "label" : "Bildhauer", "id" : "https://d-nb.info/gnd/4139550-5" } ], + "placeOfActivity" : [ { + "label" : "Irmenach", + "id" : "https://rpb.lobid.org/spatial#n23109501" + } ], "dateOfBirth" : [ "1977" ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", diff --git a/conf/output/test-output-rppd-lobid-43.json b/conf/output/test-output-rppd-lobid-43.json index 9691395e..461ac729 100644 --- a/conf/output/test-output-rppd-lobid-43.json +++ b/conf/output/test-output-rppd-lobid-43.json @@ -9,6 +9,10 @@ "url" : "https://pictureservice.explore.gnd.network/api/v1/picture/235711-2", "thumbnail" : "https://pictureservice.explore.gnd.network/api/v1/picture/235711-2" } ], + "placeOfActivity" : [ { + "label" : "Schifferstadt, Stadt", + "id" : "https://rpb.lobid.org/spatial#n33800025" + } ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" diff --git a/conf/output/test-output-rppd-lobid-44.json b/conf/output/test-output-rppd-lobid-44.json index bbb9b508..4ea79cb8 100644 --- a/conf/output/test-output-rppd-lobid-44.json +++ b/conf/output/test-output-rppd-lobid-44.json @@ -19,6 +19,10 @@ "label" : "Drechsler", "id" : "https://d-nb.info/gnd/4301425-2" } ], + "placeOfActivity" : [ { + "label" : "Mainz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n31500000" + } ], "dateOfBirth" : [ "1787" ], "dateOfDeath" : [ "1864" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-5.json b/conf/output/test-output-rppd-lobid-5.json index 92ba88b5..390f81d9 100644 --- a/conf/output/test-output-rppd-lobid-5.json +++ b/conf/output/test-output-rppd-lobid-5.json @@ -16,6 +16,10 @@ "label" : "Schriftsteller", "id" : "https://d-nb.info/gnd/4053309-8" } ], + "placeOfActivity" : [ { + "label" : "Unkel, Stadt", + "id" : "https://rpb.lobid.org/spatial#n13807073" + } ], "dateOfBirth" : [ "1959" ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", diff --git a/conf/output/test-output-rppd-lobid-6.json b/conf/output/test-output-rppd-lobid-6.json index 112c06be..e6d2cd80 100644 --- a/conf/output/test-output-rppd-lobid-6.json +++ b/conf/output/test-output-rppd-lobid-6.json @@ -17,6 +17,10 @@ "label" : "Schriftsteller", "id" : "https://d-nb.info/gnd/4053309-8" } ], + "placeOfActivity" : [ { + "label" : "Koblenz, Kreisfreie Stadt", + "id" : "https://rpb.lobid.org/spatial#n11100000" + } ], "dateOfBirth" : [ "1890-07-28" ], "dateOfDeath" : [ "1966-08-13" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-7.json b/conf/output/test-output-rppd-lobid-7.json index e5d64dad..679de5ee 100644 --- a/conf/output/test-output-rppd-lobid-7.json +++ b/conf/output/test-output-rppd-lobid-7.json @@ -13,6 +13,10 @@ "label" : "Heimatschriftsteller", "id" : "https://d-nb.info/gnd/4772761-5" } ], + "placeOfActivity" : [ { + "label" : "Bad Ems, Stadt", + "id" : "https://rpb.lobid.org/spatial#n14110006" + } ], "dateOfBirth" : [ "1912" ], "dateOfDeath" : [ "1995" ], "gender" : [ { diff --git a/conf/output/test-output-rppd-lobid-9.json b/conf/output/test-output-rppd-lobid-9.json index 8b4c19ca..774b8312 100644 --- a/conf/output/test-output-rppd-lobid-9.json +++ b/conf/output/test-output-rppd-lobid-9.json @@ -14,6 +14,10 @@ "label" : "Schriftsteller", "id" : "https://d-nb.info/gnd/4053309-8" } ], + "placeOfActivity" : [ { + "label" : "Unkel, Stadt", + "id" : "https://rpb.lobid.org/spatial#n13807073" + } ], "dateOfBirth" : [ "1924-08-07" ], "dateOfDeath" : [ "2008-03-23" ], "gender" : [ { diff --git a/conf/rppd-to-lobid.fix b/conf/rppd-to-lobid.fix index 2a987bd3..70ed56fc 100644 --- a/conf/rppd-to-lobid.fix +++ b/conf/rppd-to-lobid.fix @@ -4,6 +4,9 @@ end do once("map_category") put_filemap("conf/RPB-Export_HBZ_SWN.tsv", "SWN_map", sep_char: "\t") end +do once("map_spatial") + put_rdfmap("https://raw.githubusercontent.com/hbz/lobid-vocabs/master/rpb/rpb-spatial.ttl", "spatial_map", target:"skos:prefLabel", select_language:"de") +end # ------ @@ -103,6 +106,25 @@ copy_field("f1wz", "periodOfActivity[].$append") # #1no (Wirkungsort (m, R))-> placeOfActivity # Kommentar Doku: Bei Orten aus RLP: ID-Nr. aus Register 2, sonst Klartext gem. GND; getrennt mit @, auch Wohnorte; Orte, von denen aus gewirkt wurde, nicht das Verwaltungsgebiet # Müssen anscheinend die RPB Spatial Ids konstruieren. +# Basis: "spatial_map" ; RPPB-IDs: Unterstriche und vorangestelltes "o" entfernen +# f1no[].*.f1no +# placeOfActivity[].*.id +# placeOfActivity[].*.label + +set_array("placeOfActivity[]") +do list(path:"f1no[]", "var": "$i") + if any_match("$i.f1no", "^_o.+") + replace_all("$i.f1no", "^_o|_$", "") + prepend("$i.f1no", "https://rpb.lobid.org/spatial#n") + copy_field("$i.f1no", "placeOfActivity[].$append.label") + copy_field("$i.f1no", "placeOfActivity[].$last.id") + do list(path:"placeOfActivity[]", "var": "$i") + lookup("$i.label", "spatial_map") + end + else + copy_field("$i.f1no", "placeOfActivity[].$append.label") + end +end # ------- @@ -210,6 +232,7 @@ retain( "type[]", "variantName[]", "periodOfActivity[]", + "placeOfActivity[]", "gndSubjectCategory[]" ) \ No newline at end of file