SRU (Search/Retrieval Using URL)

Record Metadata Context Set

Introduction

This context set was created to address the need for record metadata searches as opposed to searches within the records themselves.

The identifier for the Record Metadata context set is: http://srw.cheshire3.org/contextSets/rec/1.0/
The recommended prefix for the Record Metadata context set is: rec

Indexes

Index Name Description Z39.50 Attributes
size The length of the record in bytes -
id A unique local identifier for the record within the database [util 1=4]
lang The two letter code for the language the record is written in [util 1=3]
within The record is contained within a given structure (1) -
created Timestamp for when the record was created [util 1=1, util 12="creation"]
modified Timestamp for when the record was created or ever modified [util 1=1]
lastModified Timestamp for when the record was last modified [util 1=1, util 12="modification"]
createdBy The agent that created the record [util 1=2, util 12="creation"]
modifiedBy An agent that created or ever modified the record [util 1=2]
lastModifiedBy The agent that last modified the record [util 1=2, util 12="modification"]
modifiableBy Matches if given agent is able to modify the record -

Notes

  1. The 'within' index is database specific. A database in SQL might accept the name of a table for the record to be within. A file system based database might accept the name of a directory or file containing multiple records.

Examples

  1. If your client is only able to display records under 50 kilobytes, you might have a query like:
    dc.title any fish and rec.size < 51200
    to retrieve only files with a title that includes 'fish' and are less than the client's maximum size.
  2. If you wanted to find records that were have been recently updated by a user, you might send a query like:
    rec.lastModified > "2002-12-05T18:00:00" and rec.lastModifiedBy="azaroth"