Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "http://json-schema.org/schema#",
"$comment": "IIIF basic types",
"types": {
"id": {
"title":"id",
"description": "Id must be present and must be a URI",
"type": "string",
"format": "uri",
"pattern": "^http.*$"
@glenrobson
glenrobson / choice
Last active December 17, 2025 15:50
skelleton.json
{
"$schema": "http://json-schema.org/schema#",
"$comment": "IIIF basic types",
"types": {
"id": {
"title":"id",
"description": "Id must be present and must be a URI",
"type": "string",
"format": "uri",
"pattern": "^http.*$"
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"annotations": [
{
"id": "https://iiif.archive.org/iiif/3/annotations/vts-01-1_20201110/comments.json",
"type": "AnnotationPage"
}
],
"behavior": [
"auto-advance"
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"homepage": [
{
"format": "text/html",
"id": "https://archive.org/details/CSPAN3_20180217_164800_Poplar_Forest_Archaeology",
"label": {
"en": [
"Item Page on Internet Archive"
]
{
"type": "AnnotationPage",
"@context": [
"http://www.w3.org/ns/anno.jsonld"
],
"items": [
{
"id": "b36bf8acd682a429",
"type": "Annotation",
"@context": [
@glenrobson
glenrobson / collection.json
Created June 1, 2023 23:38
IA Collection v3 example
This file has been truncated, but you can view the full file.
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://localhost:8080/iiif/3/frankbford/collection.json",
"type": "Collection",
"label": {
"none": [
"Frank B. Ford: Collected Publications and Manuscripts"
]
},
"metadata": [
@glenrobson
glenrobson / collection.json
Created June 1, 2023 16:39
frankbford collection
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"homepage": [
{
"format": "text/html",
"id": "https://archive.org/details/frankbford",
"label": {
"en": [
"Item Page on Internet Archive"
]
@glenrobson
glenrobson / gist:b8d16a767bb6a8c60a5e81eb100499de
Created May 11, 2023 14:09
Example single image manifest
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://192.168.1.64:8080/iiif/img-8664_202009/manifest.json",
"items": [
{
"height": 3024,
"id": "https://iiif.archivelab.org/iiif/img-8664_202009/canvas",
"items": [
{
"id": "http://192.168.1.64:8080/iiif/img-8664_202009/annotationPage/1",
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://localhost:8080/iiif/rashodgson68/manifest.json",
"items": [
{
"height": 1699,
"id": "https://iiif.archivelab.org/iiif/rashodgson68$0/canvas",
"items": [
{
"id": "http://localhost:8080/iiif/rashodgson68/annotationPage/0",
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://preview.iiif.io/cookbook/0326-annotating-image-layer/recipe/0326-annotating-image-layer/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Choice Example with layer specific annotation"
]
},
"items": [