翻译者:ginkgo

原文链接:https://iiif.io/api/cookbook/recipe/0046-rendering/

译文:
专题首页| 专题清单

用例

您有一个 IIIF 格式的资源,您希望为研究人员提供下载 PDF 版本的机会。您从之前的经验中了解到,使用您的馆藏的研究人员倾向于拥有可供离线阅读的图像和文本;或者您知道您的用户有带宽问题,他们需要尽量减少在线时间;当然还有其他原因,例如您可能想要提供对象文本的转录和翻译。通过使用rendering属性,您可以提醒符合要求的客户端注意此格式(或其他格式,例如 ePub)的存在,以便他们反过来为用户提供适当的 UX 工作流程。

实现说明

此属性用于将查看器指向它所附加到的资源的非 IIIF 表示。通常,另一种表示将需要一个客户端,它不同于用来查看IIIF资源的客户端。

其他三个属性可能看起来相似,因此需要强调差异:

  • homepage (IIIF展示API参考)
    rendering呈现相同资源的附加表示,homepage指向关于资源表示对象的网页。
  • accompanyingCanvas (IIIF展示API参考)
    一个accompanyingCanvas资源是与主要资源共同展示的IIIF资源;rendering的目标不是与IIIF兼容,而是使得在主要资源查看器外部的浏览成为可能。此外,accompanyingCanvas用于补充主要资源的内容,而rendering指向同一资源的附加表示。
  • seeAlso (IIIF展示API参考)
    不同于renderingseeAlso属性提供与当前资源相关的机器可读资源的 URI。在大多数情况下,都柏林核心集、MODS 或 RDF 等格式的结构化元数据是最有效的。seeAlso非常有助于发现,例如通过向聚合器提供其内容分面所需的内容。seeAlsotype取值通常为dataset,而rendering的type取值则多种多样,以便与各种可能的目标格式保持一致。

任何资源都可能具有rendering属性。它的每个实例可包含多个项目,只要每个都具有最低限度的idtypelabel属性。符合标准的客户端应该以某种方式在收藏(Collection)、清单(Manifest) 或 画布(Canvas) 上呈现此属性,但也可以在其他资源上呈现。请特别注意,客户端对属性的显示没有明确的形式要求。

限制

此属性不适用于展示同一视图的多个 IIIF 版本,例如一幅画的红外和自然光视图。在那种情况下,您应该使用 [选择(最简单)][0033] 或 [选择 - 多光谱风味示例,带有图像服务][0034]。

示例

在此示例中,整个程序都可以使用 PDF,因此rendering属性位于清单中。如果 PDF 可分别用于每个视图或页面,则每个 画布(Canvas) 将是相应 PDF 的逻辑位置。

要查看 Mirador 中的属性,请通过激活内容窗口左上角的三线(“汉堡包”)菜单来切换侧边栏。然后,您应该在“相关”(Related)区域中查看“替代格式”(Alternate formats)标题下的链接。

JSON-LD | 在Mirador中查看

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/manifest.json",
  4. "type": "Manifest",
  5. "label": {
  6. "en": [
  7. "Alternative Representations Through Rendering"
  8. ]
  9. },
  10. "summary": {
  11. "en": [
  12. "Playbill for \"Akiba gongen kaisen-banashi,\" \"Futatsu chōchō kuruwa nikki\" and \"Godairiki koi no fūjime\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest."
  13. ]
  14. },
  15. "viewingDirection": "right-to-left",
  16. "rendering": [
  17. {
  18. "id": "https://fixtures.iiif.io/other/UCLA/kabuki_ezukushi_rtl.pdf",
  19. "type": "Text",
  20. "label": {
  21. "en": [
  22. "PDF version"
  23. ]
  24. },
  25. "format": "application/pdf"
  26. }
  27. ],
  28. "items": [
  29. {
  30. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p1",
  31. "type": "Canvas",
  32. "label": {
  33. "en": [
  34. "front cover"
  35. ]
  36. },
  37. "width": 3497,
  38. "height": 4823,
  39. "items": [
  40. {
  41. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/page/p1/1",
  42. "type": "AnnotationPage",
  43. "items": [
  44. {
  45. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/annotation/p0001-image",
  46. "type": "Annotation",
  47. "motivation": "painting",
  48. "body": {
  49. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_001/full/max/0/default.jpg",
  50. "type": "Image",
  51. "format": "image/jpeg",
  52. "width": 3497,
  53. "height": 4823,
  54. "service": [
  55. {
  56. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_001",
  57. "type": "ImageService3",
  58. "profile": "level1"
  59. }
  60. ]
  61. },
  62. "target": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p1"
  63. }
  64. ]
  65. }
  66. ]
  67. },
  68. {
  69. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p2",
  70. "type": "Canvas",
  71. "label": {
  72. "en": [
  73. "pages 1–2"
  74. ]
  75. },
  76. "width": 6062,
  77. "height": 4804,
  78. "items": [
  79. {
  80. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/page/p2/1",
  81. "type": "AnnotationPage",
  82. "items": [
  83. {
  84. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/annotation/p0002-image",
  85. "type": "Annotation",
  86. "motivation": "painting",
  87. "body": {
  88. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_002/full/max/0/default.jpg",
  89. "type": "Image",
  90. "format": "image/jpeg",
  91. "width": 6062,
  92. "height": 4804,
  93. "service": [
  94. {
  95. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_002",
  96. "type": "ImageService3",
  97. "profile": "level1"
  98. }
  99. ]
  100. },
  101. "target": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p2"
  102. }
  103. ]
  104. }
  105. ]
  106. },
  107. {
  108. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p3",
  109. "type": "Canvas",
  110. "label": {
  111. "en": [
  112. "pages 3–4"
  113. ]
  114. },
  115. "width": 6127,
  116. "height": 4776,
  117. "items": [
  118. {
  119. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/page/p3/1",
  120. "type": "AnnotationPage",
  121. "items": [
  122. {
  123. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/annotation/p0003-image",
  124. "type": "Annotation",
  125. "motivation": "painting",
  126. "body": {
  127. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_003/full/max/0/default.jpg",
  128. "type": "Image",
  129. "format": "image/jpeg",
  130. "width": 6127,
  131. "height": 4776,
  132. "service": [
  133. {
  134. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_003",
  135. "type": "ImageService3",
  136. "profile": "level1"
  137. }
  138. ]
  139. },
  140. "target": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p3"
  141. }
  142. ]
  143. }
  144. ]
  145. },
  146. {
  147. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p4",
  148. "type": "Canvas",
  149. "label": {
  150. "en": [
  151. "pages 5–6"
  152. ]
  153. },
  154. "width": 6124,
  155. "height": 4751,
  156. "items": [
  157. {
  158. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/page/p4/1",
  159. "type": "AnnotationPage",
  160. "items": [
  161. {
  162. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/annotation/p0004-image",
  163. "type": "Annotation",
  164. "motivation": "painting",
  165. "body": {
  166. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_004/full/max/0/default.jpg",
  167. "type": "Image",
  168. "format": "image/jpeg",
  169. "width": 6124,
  170. "height": 4751,
  171. "service": [
  172. {
  173. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_004",
  174. "type": "ImageService3",
  175. "profile": "level1"
  176. }
  177. ]
  178. },
  179. "target": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p4"
  180. }
  181. ]
  182. }
  183. ]
  184. },
  185. {
  186. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p5",
  187. "type": "Canvas",
  188. "label": {
  189. "en": [
  190. "back cover"
  191. ]
  192. },
  193. "width": 3510,
  194. "height": 4808,
  195. "items": [
  196. {
  197. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/page/p5/1",
  198. "type": "AnnotationPage",
  199. "items": [
  200. {
  201. "id": "https://iiif.io/api/cookbook/recipe/0046-rendering/annotation/p0005-image",
  202. "type": "Annotation",
  203. "motivation": "painting",
  204. "body": {
  205. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_005/full/max/0/default.jpg",
  206. "type": "Image",
  207. "format": "image/jpeg",
  208. "width": 3510,
  209. "height": 4808,
  210. "service": [
  211. {
  212. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_005",
  213. "type": "ImageService3",
  214. "profile": "level1"
  215. }
  216. ]
  217. },
  218. "target": "https://iiif.io/api/cookbook/recipe/0046-rendering/canvas/p5"
  219. }
  220. ]
  221. }
  222. ]
  223. }
  224. ]
  225. }

相关专题

  • 带有伴随图像的音频展示描述了如何使用accompanyingCanvas以便同时呈现两个 IIIF 资源
  • [选择(最简单)] [0033] 描述了同一视图的多种表示
  • [选择 - 多光谱风味示例,带有图像服务][0034] 描述了使用图像服务的同一视图的多种表示
  • [主页][0047] 描述了如何将当前资源所代表的对象指向特定网页
  • 链接到结构化元数据描述了同一对象的数据表示
  • [一个博物馆对象][0059] 描述了如何使用rendering提供3D模型