翻译者:ginkgo

原文链接:https://iiif.io/api/cookbook/recipe/0234-provider/

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

用例

您有一个 IIIF 资源,您希望在其中包含有关为提供资源内容做出贡献的一个或多个组织或人员的信息。您希望为每个贡献者包含一组丰富的信息以便客户端可以以同样强大的方式呈现这些信息。provider属性允许您以一种可扩展的方式来声明贡献者的贡献,可以仅用一个label,也可以同时使用 labelhomepagelogoseeAlso等机器可读的描述来声明贡献者。

实现说明

为了让客户端可以显示资源的一个或多个内容贡献者,provider属性以代理资源的形式发送信息。该资源必须至少包含:

  • id,贡献者的权威且唯一的 URI;
  • type,始终是字符串“Agent”;
  • label,贡献者的人类可读名称。

此外,provider是结构化数据,可以包含多个代理(Agents),并且可以包含纯文本以外的资源,区别于requiredStatement.

为了使信息相互关联以及便于读者使用,强烈建议作为代理的provider同时拥有homepagelogo属性。这些将允许读者访问贡献者的网站并找到更多信息。请注意,代理(Agent)的id可以但不必与主页(homepage)的id相同。

限制

示例

在此示例中,我们重用了加州大学洛杉矶分校图书馆数字馆藏为 IIIF 专题手册提供的歌舞伎节目单的首页。他们作为代理的id是美国国会图书馆分配给加州大学洛杉矶分校图书馆的权威标识,homepage是他们的实际主页。logo也是作为一个整体的图书馆的logo,而seeAlso则是美国国会图书馆的MADS / XML。在使用此属性时,您可能希望并且能够以不同方式统一属性中的信息。

当前没有查看器能充分且正确地实现provider

JSON-LD

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0234-provider/manifest.json",
  4. "type": "Manifest",
  5. "label": {
  6. "en": [
  7. "Playbill Cover"
  8. ]
  9. },
  10. "summary": {
  11. "en": [
  12. "Cover of 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. "provider": [
  16. {
  17. "id": "https://id.loc.gov/authorities/n79055331",
  18. "type": "Agent",
  19. "label": {
  20. "en": [
  21. "UCLA Library"
  22. ]
  23. },
  24. "homepage": [
  25. {
  26. "id": "https://digital.library.ucla.edu/",
  27. "type": "Text",
  28. "label": {
  29. "en": [
  30. "UCLA Library Digital Collections"
  31. ]
  32. },
  33. "format": "text/html",
  34. "language": [
  35. "en"
  36. ]
  37. }
  38. ],
  39. "logo": [
  40. {
  41. "id": "https://iiif.library.ucla.edu/iiif/2/UCLA-Library-Logo-double-line-2/full/full/0/default.png",
  42. "type": "Image",
  43. "service": [
  44. {
  45. "id": "https://iiif.library.ucla.edu/iiif/2/UCLA-Library-Logo-double-line-2",
  46. "type": "ImageService3",
  47. "profile": "level2",
  48. "width": 1200,
  49. "height": 502,
  50. "sizes": [
  51. {
  52. "width": 300,
  53. "height": 126
  54. },
  55. {
  56. "width": 600,
  57. "height": 251
  58. },
  59. {
  60. "width": 1200,
  61. "height": 502
  62. }
  63. ]
  64. }
  65. ]
  66. }
  67. ],
  68. "seeAlso": [
  69. {
  70. "id": "https://id.loc.gov/authorities/names/n79055331.madsxml.xml",
  71. "type": "Dataset",
  72. "label": {
  73. "en": [
  74. "US Library of Congress data about the UCLA Library"
  75. ]
  76. },
  77. "format": "application/xml",
  78. "profile": "http://www.loc.gov/mads/v2"
  79. }
  80. ]
  81. }
  82. ],
  83. "items": [
  84. {
  85. "id": "https://iiif.io/api/cookbook/recipe/0234-provider/canvas/p0",
  86. "type": "Canvas",
  87. "label": {
  88. "en": [
  89. "front cover with color bar"
  90. ]
  91. },
  92. "width": 4520,
  93. "height": 5312,
  94. "items": [
  95. {
  96. "id": "https://iiif.io/api/cookbook/recipe/0234-provider/page/p0/1",
  97. "type": "AnnotationPage",
  98. "items": [
  99. {
  100. "id": "https://iiif.io/api/cookbook/recipe/0234-provider/annotation/p0000-image",
  101. "type": "Annotation",
  102. "motivation": "painting",
  103. "body": {
  104. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_001_full/full/max/0/default.jpg",
  105. "type": "Image",
  106. "format": "image/jpeg",
  107. "width": 4520,
  108. "height": 5312,
  109. "service": [
  110. {
  111. "id": "https://iiif.io/api/image/3.0/example/reference/4f92cceb12dd53b52433425ce44308c7-ucla_bib1987273_no001_rs_001_full",
  112. "type": "ImageService3",
  113. "profile": "level1"
  114. }
  115. ]
  116. },
  117. "target": "https://iiif.io/api/cookbook/recipe/0234-provider/canvas/p0"
  118. }
  119. ]
  120. }
  121. ]
  122. }
  123. ]
  124. }

相关专题

  • [主页][0047]描述了如何使用 homepage
  • [添加标识图][0217]描述了如何使用 logo
  • 链接到结构化元数据描述了如何使用seeAlso
  • 权利描述了如何使用requiredStatement