Skip to content

Instantly share code, notes, and snippets.

@benwbrum
Last active September 7, 2023 20:55
Show Gist options
  • Save benwbrum/e82bb493e495dd16d06213440dfcd675 to your computer and use it in GitHub Desktop.
Save benwbrum/e82bb493e495dd16d06213440dfcd675 to your computer and use it in GitHub Desktop.
Mock-up of a v2 annotation list including OCR
{
"@context": [
"http://iiif.io/api/extension/text-granularity/context.json",
"http://iiif.io/api/presentation/2/context.json"
],
"@id": "https://iiif.archivelab.org/iiif/rbmsbk_ap2-v4_2001_V55N4$1/ocr",
"@type": "sc:AnnotationList",
"label": "OCR Text",
"resources": [
{
"@type": "oa:Annotation",
"motivation": "sc:painting",
"textGranularity": "page",
"on": "https://iiif.archivelab.org/iiif/books/rbmsbk_ap2-v4_2001_V55N4$1/canvas",
"resource": {
"@id": "https://api.archivelab.org/books/rbmsbk_ap2-v4_2001_V55N4/pages/1/plaintext",
"@type": "dctypes:Text",
"format": "text/plain"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment