Presentation API
The IIIF Presentation API gives us a specification for “presenting” images. A common example to think about this is a book.
If you want to display a group of images that represent pages in a book, you first need to know a few things about that book. Likely you will want to know the title of the book. You need to know what pages are in the book and the order of those pages. Perhaps you also want to show the book two pages at a time, with the pages facing the correct directions. This and much more can be accomplished using the IIIF Presentation API.
Core concepts
The Presentation API consists of a JSON-LD server response that specifies how resources (images) should be presented. To accomplish this the API response consists of several different resources that inform the presentation. This are base concepts that are used throughout the IIIF documentation and community and are important to understand.
Manifest
A manifest represents the overall description of the “thing” (object) to presented. This could be a book, a photograph, or an image of a tree.
Example
Sequence
The next key concept, is a sequence. A sequence defines the order of view of the object. A manifest can have more than one valid sequence if for some reason it has been reordered.
Example
Canvas
Canvases are used as a container for adding content to it. For instance, a canvas could contain both an image of a book page and associated transcriptions for that page.
Example
Content
Content is used to describe viewable resources that can be placed on a canvas. These could be images that represent a book page, transcription text, or annotation notes.
There are some more resource types used in the IIIF Presentation API but lets just focus on these now.
Back to the example
Now that we have somewhat of an idea of what these types are, lets relate them back to our example of the book.
- Manifest - Basic information about the book, including whether or not the images should be viewed as pages
- Sequence - Order of the “pages” of the book
- Canvas - Virtual container of the “page” of each book
- Content - Image of each page, to be added to the canvas
A IIIF client consuming this response would now know how to display the book, associated metadata for the book, and what images represent the pages and their order.