概要

IIIFの多角形アノテーションをTEI/XMLで表現する一例について紹介します。

方法

TEI/XMLでは、zoneタグとpoints属性を使用して、多角形のアノテーションを表現することができます。

https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-teidata.point.html

動作確認のため、以下の記事で紹介したアノテーションツールに、TEI/XML形式でのエクスポート機能を追加しました。

具体的には、以下のようなダウンロード時のオプションを追加しました。

ダウンロード結果として得られるTEI/XMLの例は以下です。ulx, uly, lrx, lryで矩形を記述しつつ、pointsで多角形の情報を記述しています。

<<<<???T/xxxETmmmIElll<<<I--xt/t/f/>vmmmetetafeooliexecarddnH<it<xs<<cseesef/H>b/tis/s/sill=aifeob>mususio"dliadoirurumnhhhee<<<ldy<dlf<<<rf<<<ri=rrtrDt/p/s/ee>p/yeagzzfagzzfl"eet>eituposDr>p>crooacrooae1ffpstibuuoe>>seannceannc>.==:cl<tl<br<usSapeeepeee0""/>et/lip/lcp/rcomsh>sh>"hh/Sitec>pie>pc>meaiuuaiuuttwttiSa>cD>eeAmcllmcllettwmlTtttPaeIDsexxexxnppwteilmiutsnet=Au==Au==c::.>>tetobicfse"sr""sr""o/tl>>nlo>ocxh=l54=l29d/eeSinr>tt"=37"=19iwwitcSmth"18h"93nww-matahpth4"th7"gwwcttmtestt"tt"=...>itir:ptuptu"ttoo>oe/spulspulueernn./:sly:slytiigd/:y=/:y=f--/Ial/="//="-ccnnb.d/"3d/"38..sfonld10ld37"oo/oud.l97.l00?rr1rtln.8"n.41>gg.m.dn3dn4"/0atgld"lld"rr"tho.lr.llee>ie.g.lxg.lrllojogr=ogrxeensp.ox".ox=aaoj.=1j.="ssuapj"2pj"2eerp/p52/p28//cia/56a/74xxe/pa0"pa39mmiip9ip1"lli/i"l/i"//ii/ri/lttfiilyiilree/iir=iiryii3fiy"fiy=//4/f=3/f="cc33/"73/"4uu743234330ss634113459tt8738"7375oo6679673"mm/86"a86"//m68n68assa/6aa/6anccnc/n=c/nahhiaRa"aRa=eefn0=n0="mmev0"v0"aasa0Ca0//ts0s0rr./0/0eej1030lls"1"""3"aao>/>/xxnfppfp"nn"uoouogg>liilip//lnnlnott/tt/tieefssfsniiu==u=t__l""l"saal54l2=ll/37/2"ll018009../4,/99rrd,3d,3nne27e3,ggf03f04""a82a40u7u59ttl4l6yyt57t2pp.48.19eej1,j99==p23p83""g,0g,,aa"18"33pp957pps81s50lla42a12iim2mcce57e22aaA5,A78tts13s24ii=00=99oo",8",,nnh2h33//t01t57xxt82t70mmp72p52lls7s"":5,:22/43/78ss/17/34ccd23d29hhl,2l,,ee.2.34mmn14n00aad97d69ttl08l26yy.,.ppg53g29eeo37o29nn.13.03ssj42j9,==p,"p,4""/2//30hha0>a09ttp8p46tti7i5"pp//"::i5i/i3i/i1irpf4feu/,/lr323al404x.383no777gc6"6.l8/8oc6>6r.//gRRr00ng00s00d00ss00td00rl13u/""cs//tc>>uhreem/a1t.r0o"n?">?>

以下は、Oxygen XML Editorで表示した例です。

以下がIIIFのアノテーションの表示例ですが、同様の矩形を表現することができています。

まとめ

IIIFとTEIの連携にあたり、参考になりましたら幸いです。