Skip to content

Instantly share code, notes, and snippets.

@regisrob
Created December 20, 2021 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save regisrob/fd68cbaca56dfe45873967c4c72e1dae to your computer and use it in GitHub Desktop.
Save regisrob/fd68cbaca56dfe45873967c4c72e1dae to your computer and use it in GitHub Desktop.
Demo capsule MemoRekall IIIF
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://example.org/api/iiif/1234/manifest.json",
"type": "Manifest",
"label": {
"en": [
"My video capsule"
]
},
"items": [
{
"id": "https://example.org/api/iiif/1234/canvas/1",
"type": "Canvas",
"height": 720,
"width": 1280,
"duration": 340.25,
"items": [
{
"id": "https://example.org/api/iiif/1234/anno-page/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/api/iiif/1234/annotation/1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 720,
"width": 1280,
"duration": 340.25,
"format": "video/mp4"
},
"target": "https://example.org/api/iiif/1234/canvas/1"
},
{
"id": "https://example.org/api/iiif/1234/annotation/2",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://example.org/api/iiif/1234/canvas/1-1",
"type": "Canvas",
"height": 900,
"width": 600,
"items": [
{
"id": "https://example.org/api/iiif/1234/anno-page/2",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/api/iiif/1234/annotation/3",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png",
"type": "Image",
"format": "image/png",
"height": 1800,
"width": 1200
},
"target": "https://example.org/api/iiif/1234/canvas/1-1"
}
]
}
],
"annotations": [
{
"id": "https://example.org/api/iiif/1234/anno-page/3",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/api/iiif/1234/annotation/4",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "fr",
"format": "text/plain",
"value": "I'm a comment annotation targeting a region of an image (an image which is itself annotating a region of a video)"
},
"target": "https://example.org/api/iiif/1234/canvas/1-1#xywh=500,250,200,200"
}
]
}
]
},
"target": "https://example.org/api/iiif/1234/canvas/1#xywh=200,200,600,900"
}
]
}
]
}
]
}
@regisrob
Copy link
Author

IIIF Image Canvas annotating a Video Canvas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment