arraysize: 0
From SMW to IIIF
This is a proof of concept: importing annotations from CODECS, those at least that point to a target URI (canvas), into the Mirador viewer. This is achieved through two custom APIs, one for transforming 'semantic annotations' (Semantic MediaWiki) to either Open or Web Annotations in JSON-LD, depending on the version of the IIIF Presentation API being used; and another for merging references to the first API into the manifest and returning the modified manifest. This resulting manifest can then be imported into Mirador, as shown above.
To view the annotations, click the hamburger icon (triple bar ≡) on the left to open a panel and open the annotations tab at the bottom. If there are any annotations for the particular canvas you're viewing, the tab should be marked with a dot. For the manuscript and the table of contents from which this selection of annotations is derived, see Dublin, Royal Irish Academy, MS D ii 1.
Note about 'stand-off' annotations
Broadly speaking, IIIF allows for two ways of integrating annotations in JSON-LD: embedded, meaning that annotations are directly nested in the IIIF Manifest, and referenced, meaning that annotations are stored separately and referenced from within the Manifest (see https://iiif.io/api/cookbook/recipe/0269-embedded-or-referenced-annotations). This extension has opted for the latter model and automatically transforms the original Manifest by merging in references to relevant annotations.
Redirect
If necessary, a redirect to the API can be used in the following format:
Special:IIIFServ/manifest/smwconfig/{smwconfig}/{obj}/{manifest URL} e.g. Special:IIIFServ/manifest/smwconfig/69168/1347/https://www.isos.dias.ie/static/manifests/RIA_MS_D_ii_1.json