diff --git a/conf/output/test-output-rppd-lobid-0.json b/conf/output/test-output-rppd-lobid-0.json index 7e927e8b..83ee976d 100644 --- a/conf/output/test-output-rppd-lobid-0.json +++ b/conf/output/test-output-rppd-lobid-0.json @@ -15,20 +15,26 @@ "id" : "https://d-nb.info/gnd/4032009-1" } ], "placeOfActivity" : [ { - "label" : "Köln" + "label" : "Köln", + "id" : "https://rpb.lobid.org/dummi/Köln" }, { - "label" : "München" + "label" : "München", + "id" : "https://rpb.lobid.org/dummi/München" }, { - "label" : "Xanten" + "label" : "Xanten", + "id" : "https://rpb.lobid.org/dummi/Xanten" }, { - "label" : "Bayreuth" + "label" : "Bayreuth", + "id" : "https://rpb.lobid.org/dummi/Bayreuth" }, { - "label" : "https://rpb.lobid.org/spatial#n14000501", + "label" : "Boppard, Stadt", "id" : "https://rpb.lobid.org/spatial#n14000501" }, { - "label" : "Barcelona" + "label" : "Barcelona", + "id" : "https://rpb.lobid.org/dummi/Barcelona" }, { - "label" : "Frankfurt am Main" + "label" : "Frankfurt am Main", + "id" : "https://rpb.lobid.org/dummi/Frankfurt am Main" }, { "label" : "Mainz, Kreisfreie Stadt", "id" : "https://rpb.lobid.org/spatial#n31500000" diff --git a/conf/output/test-output-rppd-lobid-10.json b/conf/output/test-output-rppd-lobid-10.json index 1aa59e88..eed60684 100644 --- a/conf/output/test-output-rppd-lobid-10.json +++ b/conf/output/test-output-rppd-lobid-10.json @@ -20,9 +20,11 @@ "label" : "Diez,Stadt", "id" : "https://rpb.lobid.org/spatial#n14103029" }, { - "label" : "Wiesbaden" + "label" : "Wiesbaden", + "id" : "https://rpb.lobid.org/dummi/Wiesbaden" }, { - "label" : "Berlin" + "label" : "Berlin", + "id" : "https://rpb.lobid.org/dummi/Berlin" } ], "dateOfBirth" : [ "1825-06-09" ], "dateOfDeath" : [ "1880-01-01" ], diff --git a/conf/output/test-output-rppd-lobid-11.json b/conf/output/test-output-rppd-lobid-11.json index d0966671..bbe7d086 100644 --- a/conf/output/test-output-rppd-lobid-11.json +++ b/conf/output/test-output-rppd-lobid-11.json @@ -15,9 +15,11 @@ "id" : "https://rpb.lobid.org/sw/00Sn02x0286a" } ], "placeOfActivity" : [ { - "label" : "Schweden" + "label" : "Schweden", + "id" : "https://rpb.lobid.org/dummi/Schweden" }, { - "label" : "Berlin" + "label" : "Berlin", + "id" : "https://rpb.lobid.org/dummi/Berlin" } ], "dateOfBirth" : [ "1895-02-11" ], "dateOfDeath" : [ "1976-03-03" ], diff --git a/conf/output/test-output-rppd-lobid-12.json b/conf/output/test-output-rppd-lobid-12.json index 686d81b1..4daeb4d8 100644 --- a/conf/output/test-output-rppd-lobid-12.json +++ b/conf/output/test-output-rppd-lobid-12.json @@ -21,9 +21,11 @@ "label" : "Koblenz, Kreisfreie Stadt", "id" : "https://rpb.lobid.org/spatial#n11100000" }, { - "label" : "London" + "label" : "London", + "id" : "https://rpb.lobid.org/dummi/London" }, { - "label" : "New York, NY" + "label" : "New York, NY", + "id" : "https://rpb.lobid.org/dummi/New York, NY" } ], "dateOfBirth" : [ "1818-01-10" ], "dateOfDeath" : [ "1870-12-30" ], diff --git a/conf/output/test-output-rppd-lobid-14.json b/conf/output/test-output-rppd-lobid-14.json index 63168493..a01433fd 100644 --- a/conf/output/test-output-rppd-lobid-14.json +++ b/conf/output/test-output-rppd-lobid-14.json @@ -14,7 +14,8 @@ "id" : "https://d-nb.info/gnd/4032009-1" } ], "placeOfActivity" : [ { - "label" : "Brühl " + "label" : "Brühl ", + "id" : "https://rpb.lobid.org/dummi/Brühl " } ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", diff --git a/conf/output/test-output-rppd-lobid-16.json b/conf/output/test-output-rppd-lobid-16.json index 0e13291f..82bb9448 100644 --- a/conf/output/test-output-rppd-lobid-16.json +++ b/conf/output/test-output-rppd-lobid-16.json @@ -18,7 +18,8 @@ "label" : "Koblenz, Kreisfreie Stadt", "id" : "https://rpb.lobid.org/spatial#n11100000" }, { - "label" : "Köln" + "label" : "Köln", + "id" : "https://rpb.lobid.org/dummi/Köln" } ], "dateOfBirth" : [ "1796-12-20" ], "dateOfDeath" : [ "1844-02-29" ], diff --git a/conf/output/test-output-rppd-lobid-17.json b/conf/output/test-output-rppd-lobid-17.json index 86df9779..77fd3d93 100644 --- a/conf/output/test-output-rppd-lobid-17.json +++ b/conf/output/test-output-rppd-lobid-17.json @@ -24,9 +24,11 @@ "id" : "https://d-nb.info/gnd/4158589-6" } ], "placeOfActivity" : [ { - "label" : "Remscheid" + "label" : "Remscheid", + "id" : "https://rpb.lobid.org/dummi/Remscheid" }, { - "label" : "Bünde" + "label" : "Bünde", + "id" : "https://rpb.lobid.org/dummi/Bünde" }, { "label" : "Oberlahnstein", "id" : "https://rpb.lobid.org/spatial#n141000750200" diff --git a/conf/output/test-output-rppd-lobid-18.json b/conf/output/test-output-rppd-lobid-18.json index cfc6f611..9d6f961b 100644 --- a/conf/output/test-output-rppd-lobid-18.json +++ b/conf/output/test-output-rppd-lobid-18.json @@ -18,13 +18,13 @@ "id" : "https://d-nb.info/gnd/4035088-5" } ], "placeOfActivity" : [ { - "label" : "https://rpb.lobid.org/spatial#n14302229", + "label" : "Hachenburg, Stadt", "id" : "https://rpb.lobid.org/spatial#n14302229" }, { "label" : "Bendorf, Stadt", "id" : "https://rpb.lobid.org/spatial#n13700203" }, { - "label" : "https://rpb.lobid.org/spatial#n14302287", + "label" : "Roßbach", "id" : "https://rpb.lobid.org/spatial#n14302287" }, { "label" : "Altenkirchen (Westerwald), Stadt", diff --git a/conf/output/test-output-rppd-lobid-25.json b/conf/output/test-output-rppd-lobid-25.json index 98088b28..584df4dd 100644 --- a/conf/output/test-output-rppd-lobid-25.json +++ b/conf/output/test-output-rppd-lobid-25.json @@ -14,9 +14,10 @@ "id" : "https://d-nb.info/gnd/4398834-9" } ], "placeOfActivity" : [ { - "label" : "Würzburg" + "label" : "Würzburg", + "id" : "https://rpb.lobid.org/dummi/Würzburg" }, { - "label" : "https://rpb.lobid.org/spatial#n21100000", + "label" : "Trier, Kreisfreie Stadt", "id" : "https://rpb.lobid.org/spatial#n21100000" }, { "label" : "Bernkastel", diff --git a/conf/output/test-output-rppd-lobid-26.json b/conf/output/test-output-rppd-lobid-26.json index 463c5dfd..531a1855 100644 --- a/conf/output/test-output-rppd-lobid-26.json +++ b/conf/output/test-output-rppd-lobid-26.json @@ -15,7 +15,7 @@ "id" : "https://d-nb.info/gnd/4441540-0" } ], "placeOfActivity" : [ { - "label" : "https://rpb.lobid.org/spatial#n23206296", + "label" : "Prüm, Stadt", "id" : "https://rpb.lobid.org/spatial#n23206296" }, { "label" : "Wassenach", diff --git a/conf/output/test-output-rppd-lobid-36.json b/conf/output/test-output-rppd-lobid-36.json index add49b99..4c392328 100644 --- a/conf/output/test-output-rppd-lobid-36.json +++ b/conf/output/test-output-rppd-lobid-36.json @@ -20,13 +20,14 @@ "id" : "https://d-nb.info/gnd/4013673-5" } ], "placeOfActivity" : [ { - "label" : "https://rpb.lobid.org/spatial#n14304048", + "label" : "Montabaur, Stadt", "id" : "https://rpb.lobid.org/spatial#n14304048" }, { "label" : "Mainz, Kreisfreie Stadt", "id" : "https://rpb.lobid.org/spatial#n31500000" }, { - "label" : "Düsseldorf" + "label" : "Düsseldorf", + "id" : "https://rpb.lobid.org/dummi/Düsseldorf" } ], "dateOfBirth" : [ "1936-11-28" ], "dateOfDeath" : [ "2023-05-30" ], diff --git a/conf/output/test-output-rppd-lobid-37.json b/conf/output/test-output-rppd-lobid-37.json index b158301b..e089cab7 100644 --- a/conf/output/test-output-rppd-lobid-37.json +++ b/conf/output/test-output-rppd-lobid-37.json @@ -24,11 +24,14 @@ "id" : "https://d-nb.info/gnd/4466532-5" } ], "placeOfActivity" : [ { - "label" : "Limburg, Lahn" + "label" : "Limburg, Lahn", + "id" : "https://rpb.lobid.org/dummi/Limburg, Lahn" }, { - "label" : "Neesbach" + "label" : "Neesbach", + "id" : "https://rpb.lobid.org/dummi/Neesbach" }, { - "label" : "Hünfelden" + "label" : "Hünfelden", + "id" : "https://rpb.lobid.org/dummi/Hünfelden" } ], "dateOfBirth" : [ "1935-05-25" ], "dateOfDeath" : [ "2023-04-14" ], diff --git a/conf/output/test-output-rppd-lobid-38.json b/conf/output/test-output-rppd-lobid-38.json index a8cb702e..dd9f406f 100644 --- a/conf/output/test-output-rppd-lobid-38.json +++ b/conf/output/test-output-rppd-lobid-38.json @@ -18,9 +18,11 @@ "id" : "https://d-nb.info/gnd/7607862-0" } ], "placeOfActivity" : [ { - "label" : "Jena" + "label" : "Jena", + "id" : "https://rpb.lobid.org/dummi/Jena" }, { - "label" : "Köln" + "label" : "Köln", + "id" : "https://rpb.lobid.org/dummi/Köln" } ], "dateOfBirth" : [ "1823-05-24" ], "dateOfDeath" : [ "1892-03-11" ], diff --git a/conf/rppd-to-lobid.fix b/conf/rppd-to-lobid.fix index 70ed56fc..ac543127 100644 --- a/conf/rppd-to-lobid.fix +++ b/conf/rppd-to-lobid.fix @@ -118,11 +118,11 @@ do list(path:"f1no[]", "var": "$i") 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 + lookup("placeOfActivity[].$last.label", "spatial_map") else copy_field("$i.f1no", "placeOfActivity[].$append.label") + prepend("$i.f1no", "https://rpb.lobid.org/dummi/") + copy_field("$i.f1no", "placeOfActivity[].$last.id") end end