Status of this Document
This document is not subject to semantic versioning. Changes will be tracked within the document.
- Michael Appleby , Yale University
- Robert Sanderson , Stanford University
- Jon Stroop , Princeton University Library
- Simeon Warner , Cornell University
This document describes any extensions to the Open Annotation data model required within the IIIF context.
Please send feedback to firstname.lastname@example.org
Table of Contents
As with the detailed use of any general framework within another, there are some extensions necessary to make the best use of the Open Annotation model within the IIIF APIs. This document covers those extension points.
2. IIIF Image API Selector
Selectors in Open Annotation are used to describe how to retrieve a given part of a resource. In this case, the resource is the abstract image as identified by the IIIF Image API base URI plus identifier, and the retrieval process involves adding the correct parameters after that base URI. For example, the top left hand quadrant of an image has the region parameter of
pct:0,0,50,50 which must be put into the requested URI to obtain the appropriate representation.
In order to make this as easy as possible for the situations when a IIIF Image API endpoint exists, we introduce a new Selector class called
iiif:ImageApiSelector. It has properties that give the parameter values needed to fill out the URL structure in the request. If the property is not given, then a default should be used.
One use of this is within the IIIF Presentation API, when a Canvas is being painted by part of an image, or an image that requires rotation before display.
|@context||Required. Must be the value “http://iiif.io/api/openannotation/context.json”. This context is separate from other APIs in order to facilitate and promote reuse of the Selector in other contexts.|
|@type||Required. Must be the value “iiif:ImageApiSelector”.|
|region||“full”||The string to put in the region parameter of the URI.|
|size||“full”||The string to put in the size parameter of the URI.|
|rotation||“0”||The string to put in the rotation parameter of the URI. Note that this must be a string in order to allow mirroring, for example “!90”.|
|quality||“default”||The string to put in the quality parameter of the URI.|
|format||“jpg”||The string to put in the format parameter of the URI. Note that the ‘.’ character is not part of the format, just the URI syntax.|
For example, the following object describes the parameters needed to rotate the top left hand 10% of the image clockwise by 90 degrees.
It can be used in the Presentation API as demonstrated in the section on Rotation.
The production of this document was generously supported by a grant from the Andrew W. Mellon Foundation.
Thanks to the members of the IIIF for their continuous engagement, innovative ideas and feedback.
B. Change Log
|2014-07-01||Version 1.0 RFC|