Home >> CQL >> Context Set

The CQL Context Set

Indexes - Relations - Relation Modifiers - Relation Qualifiers - Boolean Modifiers

The CQL context set defines a set of indexes, relations and relation modifiers. The indexes supplied are 'utility' indexes which do not directly reference any data. These utility indexes are for instances when CQL is required to express a concept not directly related to the records.

Historical note: In CQL version 1.0, this was the 'srw' index set. Implementers may wish to accept the 'srw' as a reserved name for the identifier 'http://www.loc.gov/zing/cql/srw-indexes/v1.0/' with the same semantics as below. srw.resultSetName has been renamed to cql.resultSetId for consistency.

The reserved name for this context set is: cql
The identifier for this context set is:info:srw/cql-context-set/1/cql-v1.1


Indexes


Relations

Implicit Relations
These relations are defined as such in the grammar of CQL. The cql context set only defines their meaning, rather than their existence.

Default Relations
These relations are defined as being widely useful as part of a default context set.


Relation Modifiers

Term Functions
These relation modifiers request that the server perform some algorithm on each item within the term before processing. If named algorithms are required, then further context sets should define relation modifiers for these.


Relation Qualifiers

These modifiers qualify the relation to more precisely determine its semantics.

Masking examples:

  1. dc.title = c*t (matches cat and coast etc.)
    dc.title = "*fish food*" (matches unanchored 'fish food')

  2. dc.title = c?t (matches cat and cot, not coast or ct)
    " ?" (matches any single character)

  3. dc.title = "^cat in the hat" (matches 'cat in the hat' where it is at the beginning of the field)
    dc.title any "^cat ^dog eats rat" (matches 'cat eats rat', 'dog eats cat', 'cat loves bat', but not 'bat loves cat')

  4. dc.title = "\"Of Couse\" she said"
    dc.identifier exact "\\\"\^\*\?andSomeMoreCharacters"

Boolean Modifiers

The CQL context set defines four boolean modifiers, which are only used with the prox boolean operator.

Home >> CQL >> Context Set