2 minute read.

OpenSearch Formats for Review

Tony Hammond

Tony Hammond – 2009 July 23

In Search

In an earlier post I talked about using the PAM (PRISM Aggregator Message) schema for an SRU result set. I have also noted in another post that a Search Web Service could support both SRU and OpenSearch interfaces. This does then beg the question of what a corresponding OpenSearch result set might look like for such a record.

Based on the OpenSearch spec and also on a new Atom extension for SRU, I have contrived to show how a PAM record might be returned in a coomon OpenSearch format. Below I offer some mocked-up examples for each of the following formats for review purposes:

  • RSS 1.0
    • ATOM
      • JSON

      Just click the relevant figure for a text rendering of each result format for the following phrase search:

      cql.keywords adj “solar eclipse”

      In this example we imagine that two records have been requested. (The example formats also include navigational links as per the OpenSearch spec examples.)

      Note that the JSON example closely follows the ATOM schema with a couple of main deviations:

      • Repeated elements are gathered together in an array (e.g. “entry”, “dc:creator”)
        • Attributes are broken out alongside their parent elements (e.g. “rel”, “href”)

        It would be interesting to hear what readers think of these examples - especially the JSON format.

          <a href=""><img alt="solar2-atom.jpg" border="0" width="159" height="309" src="/wp/blog/images/solar2-atom.jpg" /></a>
          <a href=""><img alt="solar2-json.jpg" border="0" width="159" height="309" src="/wp/blog/images/solar2-json.jpg" /></a>
        RSS 1.0

        (Click image to get text format.)

Related pages and blog posts

Page owner: Tony Hammond   |   Last updated 2009-July-23