Last active
September 18, 2017 23:14
-
-
Save egardner/bfd959da8c2e80f50358ca1416b6ebb7 to your computer and use it in GitHub Desktop.
Quick and dirty IIIF Manifest generator (WIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'fastimage' | |
# Quick and dirty IIIF Manifest Generator | |
# Initial values | |
# ============================================================================== | |
work_title = 'Concert for Piano and Orchestra: Solo for Piano' | |
work_author = 'John Cage' | |
work_publisher = 'Stony Point, N.Y.: Herman Press, c1960' | |
work_description = 'Description of some sort goes here.' | |
work_attribution = 'Provided by the Getty Research Instittue.' | |
base_url = 'http://localhost:3000/image-service/' | |
image_id = 'gri_980039_b176_f01' | |
range = 1..67 | |
output_file_name = 'output.json' | |
# IIIF image API URLs look like this: | |
# | baseurl | api endpoint| image ID (w/sequence no.) | region | size | rotation | color.format | | |
# | |
# http://localhost:3000/image-service/gri_980039_b176_f01_001_mm/full/1100,/0/default.jpg | |
# ============================================================================== | |
# Generate Canvases | |
canvases = [] | |
range.each do |i| | |
sequence_no = i.to_s.rjust(3, '0') + '_mm' | |
image_url = base_url + image_id + '_' + sequence_no + '/full/full/0/default.jpg' | |
width, height = FastImage.size(image_url) | |
canvas = { | |
:@id => "http://example.org/iiif/book1/canvas/p#{i}", | |
:@type => 'sc:Canvas', | |
:label => "p. #{i}", | |
:height => height, | |
:width => width, | |
:images => [ | |
{ | |
:@type => 'oa:Annotation', | |
:motivation => 'sc:painting', | |
:resource => { | |
:@id => image_url, | |
:@type => 'dctypes:Image', | |
:format => 'image/jpeg', | |
:height => height, | |
:width => width | |
}, | |
:on => "http://example.org/iiif/book1/canvas/p#{i}" | |
} | |
] | |
} | |
canvases << canvas | |
end | |
# Generate Sequences | |
default_sequence = { | |
:@id => 'http://example.org/iiif/book1/sequence/normal', | |
:@type => 'sc:Sequence', | |
:label => 'Standard Page Order', | |
:viewingDirection => 'left-to-right', | |
:viewingHint => 'paged', | |
:canvases => canvases | |
} | |
# Generate Manifest | |
manifest = { | |
:@context => 'http://iiif.io/api/presentation/2/context.json', | |
:@type => 'sc:Manifest', | |
:@id => 'http://example.org/iiif/book1/manifest', | |
:label => work_title, | |
:metadata => [ | |
{ | |
label: 'Author', | |
value: work_author | |
}, | |
{ | |
label: 'Published', | |
value: { | |
:@value => work_publisher, | |
:@language => 'en' | |
} | |
} | |
], | |
:description => work_description, | |
:license => 'https://creativecommons.org/publicdomain/zero/1.0/', | |
:attributon => work_attribution, | |
:within => 'http://example.org/collections/books/', | |
:sequences => [default_sequence] | |
} | |
File.open(output_file_name, 'w') { |f| f.puts manifest.to_json } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"@type": "sc:Manifest", | |
"@id": "http://example.org/iiif/book1/manifest", | |
"label": "Concert for Piano and Orchestra: Solo for Piano", | |
"metadata": [{ | |
"label": "Author", | |
"value": "John Cage" | |
}, { | |
"label": "Published", | |
"value": { | |
"@value": "Stony Point, N.Y.: Herman Press, c1960", | |
"@language": "en" | |
} | |
}], | |
"description": "Description of some sort goes here.", | |
"license": "https://creativecommons.org/publicdomain/zero/1.0/", | |
"attributon": "Provided by the Getty Research Instittue.", | |
"within": "http://example.org/collections/books/", | |
"sequences": [{ | |
"@id": "http://example.org/iiif/book1/sequence/normal", | |
"@type": "sc:Sequence", | |
"label": "Standard Page Order", | |
"viewingDirection": "left-to-right", | |
"viewingHint": "paged", | |
"canvases": [{ | |
"@id": "http://example.org/iiif/book1/canvas/p1", | |
"@type": "sc:Canvas", | |
"label": "p. 1", | |
"height": 4802, | |
"width": 7168, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_001_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4802, | |
"width": 7168 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p1" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p2", | |
"@type": "sc:Canvas", | |
"label": "p. 2", | |
"height": 4792, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_002_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p2" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p3", | |
"@type": "sc:Canvas", | |
"label": "p. 3", | |
"height": 4806, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_003_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p3" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p4", | |
"@type": "sc:Canvas", | |
"label": "p. 4", | |
"height": 4834, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_004_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4834, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p4" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p5", | |
"@type": "sc:Canvas", | |
"label": "p. 5", | |
"height": 4834, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_005_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4834, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p5" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p6", | |
"@type": "sc:Canvas", | |
"label": "p. 6", | |
"height": 4806, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_006_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p6" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p7", | |
"@type": "sc:Canvas", | |
"label": "p. 7", | |
"height": 4778, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_007_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p7" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p8", | |
"@type": "sc:Canvas", | |
"label": "p. 8", | |
"height": 4806, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_008_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p8" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p9", | |
"@type": "sc:Canvas", | |
"label": "p. 9", | |
"height": 4792, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_009_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p9" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p10", | |
"@type": "sc:Canvas", | |
"label": "p. 10", | |
"height": 4820, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_010_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p10" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p11", | |
"@type": "sc:Canvas", | |
"label": "p. 11", | |
"height": 4820, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_011_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p11" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p12", | |
"@type": "sc:Canvas", | |
"label": "p. 12", | |
"height": 4778, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_012_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p12" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p13", | |
"@type": "sc:Canvas", | |
"label": "p. 13", | |
"height": 4806, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_013_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p13" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p14", | |
"@type": "sc:Canvas", | |
"label": "p. 14", | |
"height": 4820, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_014_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p14" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p15", | |
"@type": "sc:Canvas", | |
"label": "p. 15", | |
"height": 4778, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_015_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p15" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p16", | |
"@type": "sc:Canvas", | |
"label": "p. 16", | |
"height": 4778, | |
"width": 7116, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_016_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7116 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p16" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p17", | |
"@type": "sc:Canvas", | |
"label": "p. 17", | |
"height": 4806, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_017_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p17" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p18", | |
"@type": "sc:Canvas", | |
"label": "p. 18", | |
"height": 4820, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_018_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p18" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p19", | |
"@type": "sc:Canvas", | |
"label": "p. 19", | |
"height": 4806, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_019_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p19" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p20", | |
"@type": "sc:Canvas", | |
"label": "p. 20", | |
"height": 4834, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_020_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4834, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p20" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p21", | |
"@type": "sc:Canvas", | |
"label": "p. 21", | |
"height": 4834, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_021_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4834, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p21" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p22", | |
"@type": "sc:Canvas", | |
"label": "p. 22", | |
"height": 4806, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_022_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p22" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p23", | |
"@type": "sc:Canvas", | |
"label": "p. 23", | |
"height": 4806, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_023_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p23" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p24", | |
"@type": "sc:Canvas", | |
"label": "p. 24", | |
"height": 4834, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_024_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4834, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p24" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p25", | |
"@type": "sc:Canvas", | |
"label": "p. 25", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_025_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p25" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p26", | |
"@type": "sc:Canvas", | |
"label": "p. 26", | |
"height": 4820, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_026_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p26" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p27", | |
"@type": "sc:Canvas", | |
"label": "p. 27", | |
"height": 4820, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_027_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p27" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p28", | |
"@type": "sc:Canvas", | |
"label": "p. 28", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_028_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p28" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p29", | |
"@type": "sc:Canvas", | |
"label": "p. 29", | |
"height": 4792, | |
"width": 7116, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_029_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7116 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p29" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p30", | |
"@type": "sc:Canvas", | |
"label": "p. 30", | |
"height": 4806, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_030_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p30" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p31", | |
"@type": "sc:Canvas", | |
"label": "p. 31", | |
"height": 4792, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_031_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p31" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p32", | |
"@type": "sc:Canvas", | |
"label": "p. 32", | |
"height": 4806, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_032_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p32" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p33", | |
"@type": "sc:Canvas", | |
"label": "p. 33", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_033_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p33" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p34", | |
"@type": "sc:Canvas", | |
"label": "p. 34", | |
"height": 4778, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_034_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p34" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p35", | |
"@type": "sc:Canvas", | |
"label": "p. 35", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_035_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p35" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p36", | |
"@type": "sc:Canvas", | |
"label": "p. 36", | |
"height": 4820, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_036_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p36" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p37", | |
"@type": "sc:Canvas", | |
"label": "p. 37", | |
"height": 4792, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_037_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p37" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p38", | |
"@type": "sc:Canvas", | |
"label": "p. 38", | |
"height": 4820, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_038_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p38" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p39", | |
"@type": "sc:Canvas", | |
"label": "p. 39", | |
"height": 4820, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_039_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p39" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p40", | |
"@type": "sc:Canvas", | |
"label": "p. 40", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_040_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p40" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p41", | |
"@type": "sc:Canvas", | |
"label": "p. 41", | |
"height": 4820, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_041_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p41" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p42", | |
"@type": "sc:Canvas", | |
"label": "p. 42", | |
"height": 4806, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_042_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p42" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p43", | |
"@type": "sc:Canvas", | |
"label": "p. 43", | |
"height": 4806, | |
"width": 7116, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_043_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7116 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p43" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p44", | |
"@type": "sc:Canvas", | |
"label": "p. 44", | |
"height": 4820, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_044_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p44" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p45", | |
"@type": "sc:Canvas", | |
"label": "p. 45", | |
"height": 4792, | |
"width": 7116, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_045_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7116 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p45" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p46", | |
"@type": "sc:Canvas", | |
"label": "p. 46", | |
"height": 4778, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_046_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p46" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p47", | |
"@type": "sc:Canvas", | |
"label": "p. 47", | |
"height": 4778, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_047_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p47" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p48", | |
"@type": "sc:Canvas", | |
"label": "p. 48", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_048_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p48" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p49", | |
"@type": "sc:Canvas", | |
"label": "p. 49", | |
"height": 4792, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_049_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p49" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p50", | |
"@type": "sc:Canvas", | |
"label": "p. 50", | |
"height": 4792, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_050_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p50" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p51", | |
"@type": "sc:Canvas", | |
"label": "p. 51", | |
"height": 4792, | |
"width": 7130, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_051_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7130 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p51" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p52", | |
"@type": "sc:Canvas", | |
"label": "p. 52", | |
"height": 4792, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_052_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p52" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p53", | |
"@type": "sc:Canvas", | |
"label": "p. 53", | |
"height": 4792, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_053_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p53" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p54", | |
"@type": "sc:Canvas", | |
"label": "p. 54", | |
"height": 4820, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_054_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p54" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p55", | |
"@type": "sc:Canvas", | |
"label": "p. 55", | |
"height": 4820, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_055_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p55" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p56", | |
"@type": "sc:Canvas", | |
"label": "p. 56", | |
"height": 4820, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_056_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p56" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p57", | |
"@type": "sc:Canvas", | |
"label": "p. 57", | |
"height": 4820, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_057_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p57" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p58", | |
"@type": "sc:Canvas", | |
"label": "p. 58", | |
"height": 4820, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_058_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p58" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p59", | |
"@type": "sc:Canvas", | |
"label": "p. 59", | |
"height": 4820, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_059_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p59" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p60", | |
"@type": "sc:Canvas", | |
"label": "p. 60", | |
"height": 4820, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_060_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p60" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p61", | |
"@type": "sc:Canvas", | |
"label": "p. 61", | |
"height": 4834, | |
"width": 7200, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_061_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4834, | |
"width": 7200 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p61" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p62", | |
"@type": "sc:Canvas", | |
"label": "p. 62", | |
"height": 4820, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_062_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4820, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p62" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p63", | |
"@type": "sc:Canvas", | |
"label": "p. 63", | |
"height": 4778, | |
"width": 7144, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_063_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4778, | |
"width": 7144 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p63" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p64", | |
"@type": "sc:Canvas", | |
"label": "p. 64", | |
"height": 4806, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_064_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p64" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p65", | |
"@type": "sc:Canvas", | |
"label": "p. 65", | |
"height": 4806, | |
"width": 7186, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_065_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7186 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p65" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p66", | |
"@type": "sc:Canvas", | |
"label": "p. 66", | |
"height": 4806, | |
"width": 7158, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_066_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4806, | |
"width": 7158 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p66" | |
}] | |
}, { | |
"@id": "http://example.org/iiif/book1/canvas/p67", | |
"@type": "sc:Canvas", | |
"label": "p. 67", | |
"height": 4792, | |
"width": 7172, | |
"images": [{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "http://localhost:3000/image-service/gri_980039_b176_f01_067_mm/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 4792, | |
"width": 7172 | |
}, | |
"on": "http://example.org/iiif/book1/canvas/p67" | |
}] | |
}] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment