<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Presentation-Api on デジタルアーカイブシステムの技術ブログ</title><link>https://tech.ldas.jp/ja/tags/presentation-api/</link><description>Recent content in Presentation-Api on デジタルアーカイブシステムの技術ブログ</description><generator>Hugo</generator><language>ja</language><lastBuildDate>Wed, 29 Apr 2026 23:30:00 +0900</lastBuildDate><atom:link href="https://tech.ldas.jp/ja/tags/presentation-api/index.xml" rel="self" type="application/rss+xml"/><item><title>Mirador (4.0.0) の Annotations タブに OCR が出ない — supplementing motivation の落とし穴</title><link>https://tech.ldas.jp/ja/posts/iiif-mirador-annotation-motivation-supplementing-commenting/</link><pubDate>Wed, 29 Apr 2026 23:30:00 +0900</pubDate><guid>https://tech.ldas.jp/ja/posts/iiif-mirador-annotation-motivation-supplementing-commenting/</guid><description>&lt;blockquote>
&lt;p>本記事は生成AIと共同で執筆しています。事実関係は可能な範囲で公式ドキュメント等と照合していますが、誤りが含まれている可能性があります。重要な判断を行う前にご自身でも一次情報をご確認ください。&lt;/p>&lt;/blockquote>
&lt;h1 id="tldr">TL;DR&lt;/h1>
&lt;ul>
&lt;li>IIIF Presentation 3 のアーカイブで OCR テキストをアノテーションとして配信したら、Annona など他の viewer では出るのに Mirador 4.0.0 (&lt;code>projectmirador.org/embed&lt;/code>) の Annotations タブだけ空、という現象に遭遇した&lt;/li>
&lt;li>原因は &lt;strong>Mirador 4.0.0 リリース版&lt;/strong> の &lt;code>config.annotations.filteredMotivations&lt;/code> のデフォルト値が &lt;code>['oa:commenting', 'oa:tagging', 'sc:painting', 'commenting', 'tagging']&lt;/code> で、&lt;strong>&lt;code>supplementing&lt;/code> を許可していない&lt;/strong>ため&lt;/li>
&lt;li>Mirador master ブランチでは &lt;code>filteredMotivations: []&lt;/code> (フィルタ無し) に変更されているが、本記事執筆時点でリリースされていない。リリース版では引き続き上記フィルタが効く&lt;/li>
&lt;li>&lt;code>motivation&lt;/code> を &lt;code>[&amp;quot;commenting&amp;quot;, &amp;quot;supplementing&amp;quot;]&lt;/code> 配列にすれば、&lt;code>commenting&lt;/code> で Mirador 4.0.0 のフィルタを通過しつつ、&lt;code>supplementing&lt;/code> も維持して spec 準拠 viewer や text-overlay プラグインから transcription として認識される&lt;/li>
&lt;li>IIIF Presentation 3 仕様 §3.5「Values for motivation」が定義するのは &lt;code>painting&lt;/code> と &lt;code>supplementing&lt;/code> のみ。他の値 (&lt;code>commenting&lt;/code> / &lt;code>tagging&lt;/code> 等) は Web Annotation Data Model 由来。配列形式の許容根拠は IIIF §4.3 (Properties with Multiple Values) と Web Annotation §3.3.5&lt;/li>
&lt;li>&lt;code>painting&lt;/code> を一緒に指定するのは避ける。各 canvas には既に画像の &lt;code>painting&lt;/code> annotation があり、同じ canvas に複数の painting annotation が並ぶと viewer の挙動が実装依存になる&lt;/li>
&lt;/ul>
&lt;h1 id="何が起きたか">何が起きたか&lt;/h1>
&lt;p>&lt;a href="https://hiraga.ldas.jp/">平賀譲デジタルアーカイブ&lt;/a> の API 拡張作業で、コマごとの OCR テキストを IIIF Annotation として配信するエンドポイントを足しました。マニフェストの canvas に annotations 参照を入れて、別 URL で AnnotationPage を返す Presentation 3 の標準構成です。&lt;/p></description></item></channel></rss>