Text annotations example6/21/2023 ![]() ![]() ![]() This example Manifest contains an embedded Annotation containing the text “Göttinger Marktplatz mit Gänseliesel Brunnen” with the motivation commenting targeting the whole Canvas. Using a selector that selects the full Canvas area is a more universal pattern and may be better supported by IIIF clients. ![]() The semantic of annotating the full Canvas as a whole can be specified by either using the Canvas URI without fragment or selector as in this example or by using a selector that selects the full area of the Canvas (see Simple Annotation - Tagging for a simple example of how to use a fragment selector). Be careful when using other motivations, IIIF viewers may only display Annotations with certain motivations. Commonly used values are commenting and tagging. The W3C Web Annotation specification has a full list of motivations. The Annotations should have a motivation property that can contain different values specifiying the purpose of the Annotation. The Annotations must have a target property that for a full Canvas Annotation contains only the URI of the Canvas and no additional fragments or selectors. text/plain) in a format property and the language (e.g. The body itself can be an object with a type of TextualBody that contains the text in a value property and specifies the format of the text string (e.g. The Annotations must have the type Annotation, and a body property that contains the text of the comment or tag. The Annotation Page object must have the type AnnotationPage, an id property containing a unique URI (that does not have to resolve), and an items property containing a list with one or more Annotations. The Annotation Page and the Annotations can either be embedded in the manifest (as in the example below) or referenced by providing just the URI of the external document containing the Annotation Page (see Embedded or Referenced Annotations). Implementation NotesĪnnotations for a Canvas are stored in the annotations property of the Canvas in the form of an Annotation Page object containing a list of Annotation objects conforming to the W3C Web Annotation format. In this recipe we are annotating the full Canvas but see Simple Annotation - Tagging or Annotation with a Non-Rectangular Polygon if you would like to target a specific part or region of the Canvas. You want to annotate a canvas with some text either as a comment or a tag. ![]()
0 Comments
Leave a Reply. |