2018年7月7日土曜日

AtoMのCSVによるupdate条件の実験


CSVを利用して、すでにある記述をupdateする際のマッチング条件

・第一条件:Legacy IDとsource_nameがマッチングすればupdate
・第二条件:第一条件を満足しなければ、tilte, repository, identifierがマッチングすればupdate


以下は実験による、kepmapテーブルの変化
kepmapテーブルでは、Legacy ID はsource_idと同一で、target_idはexport時に自動で付与されて出てくるLegacy IDと同一。

実験①
画面キャプチャーなし

実験②
画面キャプチャーなし

実験③
Legacy ID、source_nameが異なり、title、repository, identifierが同じ場合
データは問題なく更新され、keymapには新しいsource_idに元のtarget_idが付与された。

以下keymapテーブルのキャプチャー画面(phpMyAdminを利用)




※同じファイルを2回createした時
Source_idは同一で、target_idが新しく付与される。
タイトルだけを変えてデータを更新してみると、後で登録したフォンド(target_idが947,962)だけが更新された。

以上






最近の投稿

【108】Archives in the Digital Age: The use of AI and machine learning in the Swedish archival sectorを読む

 Gijs Aangenendt氏の修士論文、Archives in the Digital Age: The use of AI and machine learning in the Swedish archival sectorを半分読みました。 前半は、AIを扱ったアーカ...

人気の投稿