翻译者:ginkgo

原文链接:https://iiif.io/api/cookbook/recipe/0230-navdate/

译文:
专题首页| 专题列表

用例

您有一个或多个具有日期属性的 IIIF 资源,并且希望将它们的日期发送到客户端以置于基于日期的界面。例如,您可能希望借助时间线或日历显示 IIIF 对象。对于一组分散的资源,统一使用navDate允许将收藏(collection)作为数据和按时序排列的计算寻址。

实现说明

navDate属性,正如其名称所暗示的那样,允许一个清单(manifest)识别与某一 IIIF 资源关联的日期,以帮助查看器为用户提供基于日期的导航。客户端不必(not required)使用navDate,具有基于日期的导航的客户端也不必(may not)默认使用该导航界面。

此属性仅供计算机代理使用。metadata属性条目中应该(should)包含更多描述性的日期范围,旨在直接向人类显示。

navDate属性的值必须(must)是带有时区的XSD dateTime 字面量。时区应该(should)采用 UTC +“Z”格式,也可以(may)采用与此不同的“+hh:mm”格式 。如果一个使用navDate属性的画布(Canvas)还包含一个duration属性,那么该画布的navDate属性应取值为资源内容开始的日期和时间。使用“01”表示未知或不准确的月份或日期,使用“00”表示任何未知或不准确的时间部分。

只允许收藏(Collections)、清单(Manifests)、范围(Ranges)和画布(Canvas)包含navDate属性,并且该属性在每个资源中只能出现一次。符合标准的客户端应忽略其他资源上的navDate属性。

限制

示例

本专题展示了一个虚构的收藏(Collection),其中包含来自美国国会图书馆保存的特定国家公园地图的 2 个实例。如果您想在本地扩展此示例,您可以在美国国会图书馆网站上找到本系列中的其他地图。

收藏

JSON-LD | 在Universal Viewer中查看 | 在Mirador中查看

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/navdate-collection.json",
  4. "type": "Collection",
  5. "label": {
  6. "en": [
  7. "Chesapeake and Ohio Canal map and guide pamphlets"
  8. ]
  9. },
  10. "thumbnail": [
  11. {
  12. "id": "https://iiif.io/api/image/3.0/example/reference/43153e2ec7531f14dd1c9b2fc401678a-88695674/full/max/0/default.jpg",
  13. "type": "Image",
  14. "format": "image/jpeg",
  15. "height": 300,
  16. "width": 221,
  17. "service": [
  18. {
  19. "id": "https://iiif.io/api/image/3.0/example/reference/43153e2ec7531f14dd1c9b2fc401678a-88695674",
  20. "profile": "level1",
  21. "type": "ImageService3"
  22. }
  23. ]
  24. }
  25. ],
  26. "items": [
  27. {
  28. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/navdate_map_2-manifest.json",
  29. "type": "Manifest",
  30. "label": {
  31. "en": [
  32. "1986 Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide"
  33. ]
  34. },
  35. "navDate": "1986-01-01T00:00:00+00:00"
  36. },
  37. {
  38. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/navdate_map_1-manifest.json",
  39. "type": "Manifest",
  40. "label": {
  41. "en": [
  42. "1987 Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide"
  43. ]
  44. },
  45. "navDate": "1987-01-01T00:00:00+00:00"
  46. }
  47. ]
  48. }

1986年地图

JSON-LD | 在Universal Viewer中查看 | 在Mirador中查看

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/navdate_map_2-manifest.json",
  4. "type": "Manifest",
  5. "label": {
  6. "en": [
  7. "1986 Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide"
  8. ]
  9. },
  10. "navDate": "1986-01-01T00:00:00+00:00",
  11. "items": [
  12. {
  13. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/canvas/p1",
  14. "type": "Canvas",
  15. "label": {
  16. "en": [
  17. "1986 Map, recto and verso, with a date of publication"
  18. ]
  19. },
  20. "height": 1765,
  21. "width": 1286,
  22. "items": [
  23. {
  24. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/page/p1/1",
  25. "type": "AnnotationPage",
  26. "items": [
  27. {
  28. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/annotation/p0001-image",
  29. "type": "Annotation",
  30. "motivation": "painting",
  31. "body": {
  32. "id": "https://iiif.io/api/image/3.0/example/reference/43153e2ec7531f14dd1c9b2fc401678a-87691274-1986/full/max/0/default.jpg",
  33. "type": "Image",
  34. "format": "image/jpeg",
  35. "height": 1765,
  36. "width": 1286,
  37. "service": [
  38. {
  39. "id": "https://iiif.io/api/image/3.0/example/reference/43153e2ec7531f14dd1c9b2fc401678a-87691274-1986/",
  40. "profile": "level1",
  41. "type": "ImageService3"
  42. }
  43. ]
  44. },
  45. "target": "https://iiif.io/api/cookbook/recipe/0230-navdate/canvas/p1"
  46. }
  47. ]
  48. }
  49. ]
  50. }
  51. ]
  52. }

1987年地图

JSON-LD | 在Universal Viewer中查看 | 在Mirador中查看

  1. {
  2. "@context": "http://iiif.io/api/presentation/3/context.json",
  3. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/navdate_map_1-manifest.json",
  4. "type": "Manifest",
  5. "label": {
  6. "en": [
  7. "1987 Chesapeake and Ohio Canal, Washington, D.C., Maryland, West Virginia, official map and guide"
  8. ]
  9. },
  10. "navDate": "1987-01-01T00:00:00+00:00",
  11. "items": [
  12. {
  13. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/canvas/p1",
  14. "type": "Canvas",
  15. "label": {
  16. "en": [
  17. "1987 Map, recto and verso, with a date of publication"
  18. ]
  19. },
  20. "height": 7072,
  21. "width": 5212,
  22. "items": [
  23. {
  24. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/page/p1/1",
  25. "type": "AnnotationPage",
  26. "items": [
  27. {
  28. "id": "https://iiif.io/api/cookbook/recipe/0230-navdate/annotation/p0001-image",
  29. "type": "Annotation",
  30. "motivation": "painting",
  31. "body": {
  32. "id": "https://iiif.io/api/image/3.0/example/reference/43153e2ec7531f14dd1c9b2fc401678a-88695674/full/max/0/default.jpg",
  33. "type": "Image",
  34. "format": "image/jpeg",
  35. "height": 7072,
  36. "width": 5212,
  37. "service": [
  38. {
  39. "id": "https://iiif.io/api/image/3.0/example/reference/43153e2ec7531f14dd1c9b2fc401678a-88695674/",
  40. "profile": "level1",
  41. "type": "ImageService3"
  42. }
  43. ]
  44. },
  45. "target": "https://iiif.io/api/cookbook/recipe/0230-navdate/canvas/p1"
  46. }
  47. ]
  48. }
  49. ]
  50. }
  51. ]
  52. }

相关专题

  • 书籍章节目录描述了如何排列含有范围(Range)的资源
  • [可替代序列 (通过 sequence 范围)][0027] 描述了如何为非默认资源排序
  • [具有多个排序的手稿][0070] 描述了一个现实问题以及多种排序可能如何解决这一问题
  • [视频导航的缩略图范围][0073] 描述了如何从视频资源中排列缩略图以进行导航
  • 基础报纸描述了与多个清单(Manifest)一起使用的navDate属性