Contextual Query Language
|This article needs additional citations for verification. (March 2017) (Learn how and when to remove this template message)|
Contextual Query Language (CQL), previously known as Common Query Language, is a formal language for representing queries to information retrieval systems such as search engines, bibliographic catalogs and museum collection information. Based on the semantics of Z39.50, its design objective is that queries be human readable and writable, and that the language be intuitive while maintaining the expressiveness of more complex query languages. It is being developed and maintained by the Z39.50 Maintenance Agency, part of the Library of Congress.
Examples of query syntax
"complete dinosaur"title exact "the complete dinosaur"
title = "complete dinosaur"
Queries using Boolean logic:
dinosaur or bird
Palomar assignment and "ice age""feathered dinosaur" and (yixian or jehol)
dinosaur not reptile
dinosaur and bird or dinobird
(bird or dinosaur) and (feathers or scales)
Queries accessing publication indexes:
publicationYear < 1980
lengthOfFemur > 2.4bioMass >= 100
Queries based on the proximity of words to each other in a document:
ribs prox/distance<=5 chevrons
ribs prox/unit=sentence chevronsribs prox/distance>0/unit=paragraph chevrons
Queries across multiple dimensions:
date within "2002 2005"
dateRange encloses 2003
Queries based on relevance:
subject any/relevant "fish frog"
subject any/rel.lr "fish frog"
- CQL: the Contextual Query Language: Specifications SRU: Search/Retrieval via URL, Standards, Library of Congress
- Relevance Ranking Context Set version 1.1
|This Library of Congress article is a stub. You can help Wikipedia by expanding it.|