Overview

This article explains how to batch register data to the Omeka Classic IIIF Toolkit. For setting up the Omeka Classic IIIF Toolkit, please refer to the following.

This is also an enhancement of the following article, making it easier to use by taking Excel data as input.

Preparing the Excel File

Prepare an Excel file like the following.

https://github.com/nakamura196/000_tools/blob/main/data/sample.xlsx

Prepare three sheets: “collection,” “item,” and “annotation.”

collection

manifest_uri

https://d1fasenpql7fi9.cloudfront.net/v1/manifest/3437686.json

item

titlecanvas_uriwidthheightimage_urlmanifest_uri
校異源氏物語. 巻一 [4]https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/468904706https://www.dl.ndl.go.jp/api/iiif/3437686/R0000004/full/full/0/default.jpghttps://d1fasenpql7fi9.cloudfront.net/v1/manifest/3437686.json
校異源氏物語. 巻一 [4]https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/568904706https://www.dl.ndl.go.jp/api/iiif/3437686/R0000005/full/full/0/default.jpghttps://d1fasenpql7fi9.cloudfront.net/v1/manifest/3437686.json

annotation

charsxywhcanvas_uritag
31254898400824179https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/4
2910868147140https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/4
913.36 たH2228226586156https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/4
或は撮影して、897351783434https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/4
81035283017https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/4
601810556565https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
602535354939https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
殆んどあらゆる現存貴重資料に及び、5889707861090https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
一字をも忽にしない細緻な〓究は、58891837861012https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
フイルム等5501361476323https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
大島雅太郞氏·916349189436https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
80710486561https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5
81535176157https://www.dl.ndl.go.jp/api/iiif/3437686/canvas/5

Python

Install the following library.

pipinstallomekac_iiif_tools==0.0.1

Set the information for the target Omeka and upload the Excel contents.

foaupeArmpsaxpoeiescimk_rseCaknwllo_eao_imuymrpeeredankl=tta==h.c="m_5""=ai"3xyiih6xy"nitaxys(ft1""ao_p0mmts4##peo:blko/7eal/c._sedxu.xelrca6slom1x,rp5"el6aef#pi.0imo._pr.kog.er"yto,m#eukAesaPxe"Icren#lame,password,excel_path)

Results

Annotations will be registered as shown below. By editing the registered annotations, you can correct OCR results and more.

Summary

I hope this is helpful for batch data registration to the Omeka Classic IIIF Toolkit.