IIIF Content Search API

258 views
Skip to first unread message

Alexandre Bisetti

unread,
May 16, 2021, 9:58:58 AM5/16/21
to IIIF Discuss

Hello all,

I would like to know if it is possible to perform an annotation search in a collection and not in a manifest. It is well specified in the documentation that "The scope of the specification is searching annotation content within a single IIIF resource, such as a Manifest, Range or Collection", but I cannot find any information as to the expected response format after such research.

Thank you for your answers.

Alexandre Bisetti.

Tom Crane

unread,
May 17, 2021, 3:41:10 AM5/17/21
to IIIF Discuss
Hello Alexandre,

The important difference when offering a search over a Collection, rather than a Manifest, is that the canvases targeted in the results are not part of the Collection resource the search service was provided for.

If a client such as Universal Viewer or Mirador loads a manifest with a search service, it already has all the canvases that the results point to.

A client interacting with a search over a Collection needs an extra piece of information to generate a useful experience for the user - the URL of the manifest that each search result's canvas lives in. This can be provided via the within property.

Example of a normal search result, returned by a content search service that belongs to a manifest:

  "@type": "oa:Annotation", 
  "motivation": "sc:painting", 
  "resource": { 
         "@type": "cnt:ContentAsText", 
          "chars": "A bird in the hand is worth two in the bush" 
  }, 
  }

http://example.org/identifier/canvas1 is part of the manifest the client has already loaded.

Example of a search result that also provides the manifest:

  "@type": "oa:Annotation", 
  "motivation": "sc:painting", 
  "resource": { 
         "@type": "cnt:ContentAsText", 
          "chars": "A bird in the hand is worth two in the bush" 
  }, 
  "on": {
      "@type": "sc:Canvas",
      "within": {
         "@type": "sc:Manifest",
         "label": "A label would be useful, too"
      }
  }

This allows results from different manifests to be returned in the same set of results; the client can follow the manifest links if it wants to, and find the canvases referred to.


This extra information would be essential in a discovery environment, searching across a collection. Thumbnails would be useful, too.

Tom

Alexandre Bisetti

unread,
May 17, 2021, 7:33:16 AM5/17/21
to IIIF Discuss
Hello,

Thank you for your answer, I will take a more detailed look to this part of the documentation.

Alexandre Bisetti.
Reply all
Reply to author
Forward
0 new messages