Contextual Query Language

Contextual Query Language (CQL), previously known as Common Query Language,[1] 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

Simple queries:

dinosaur
"complete dinosaur"
title = "complete dinosaur"
title exact "the complete dinosaur"

Queries using Boolean logic:

dinosaur or bird
Palomar assignment and "ice age"
dinosaur not reptile
dinosaur and bird or dinobird
(bird or dinosaur) and (feathers or scales)
"feathered dinosaur" and (yixian or jehol)

Queries accessing publication indexes:

publicationYear < 1980
lengthOfFemur > 2.4
bioMass >= 100

Queries based on the proximity of words to each other in a document:

ribs prox/distance<=5 chevrons
ribs prox/unit=sentence chevrons
ribs 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"

The latter example specifies using a specific algorithm for logistic regression.[2]

References

  1. ^ CQL: the Contextual Query Language: Specifications SRU: Search/Retrieval via URL, Standards, Library of Congress
  2. ^ Relevance Ranking Context Set version 1.1 Archived 2011-05-15 at the Wayback Machine.

External links

 This article incorporates public domain material from the United States Government document "https://www.loc.gov/standards/sru/cql/".


  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.

Contextual_Query_Language
 



 

Connect with defaultLogic
What We've Done
Led Digital Marketing Efforts of Top 500 e-Retailers.
Worked with Top Brands at Leading Agencies.
Successfully Managed Over $50 million in Digital Ad Spend.
Developed Strategies and Processes that Enabled Brands to Grow During an Economic Downturn.
Taught Advanced Internet Marketing Strategies at the graduate level.


Manage research, learning and skills at defaultLogic. Create an account using LinkedIn or facebook to manage and organize your Digital Marketing and Technology knowledge. defaultLogic works like a shopping cart for information -- helping you to save, discuss and share.

Visit defaultLogic's partner sites below:
PopFlock.com : Music Genres | Musicians | Musical Instruments | Music Industry
NCR Works : Retail Banking | Restaurant Industry | Retail Industry | Hospitality Industry

  Contact Us