blob: 5c51e1efdd8cb0d4d4bcfc153aef68a81504bf54 [file] [log] [blame]
% layout 'main', title => 'KorAP: CQL';
%= page_title
<p>CQL stands for Contextual Query Language. The main purpose of CQL is to represent queries
to information retrieval systems. In fact, CQL is commonly used together with the Search
Retrieve URL (SRU) protocol to represent URL-friendly search queries.</p>
<p>In KorAP, we support basic CQL as defined in the <a
href="https://www.clarin.eu/content/federated-content-search-clarin-fcs">CLARIN
Federated Content Search (FCS)</a> specification for basic search. KorAP does not
support other operators and modifiers than AND and OR, such as REL and PROX. </p>
<section id="examples">
<h3>Examples</h3>
<p>Querying a simple term</p>
%= doc_query cql => 'Feuer'
<p>Querying a phrase</p>
%= doc_query cql => '"Öl ins Feuer"'
<p>Boolean queries</p>
%= doc_query cql => 'giessen OR gießen'
%= doc_query cql => 'Feuer and gießen'
</section>
<section id="References">
<h3>References: </h3>
<p><%= ext_link_to 'searchRetrieve: Part 5', "http://docs.oasis-open.org/search-ws/searchRetrieve/v1.0/os/part5-cql/searchRetrieve-v1.0-os-part5-cql.doc" %>.
<%= ext_link_to 'CQL: The Contextual Query Language version 1.0', "https://www.loc.gov/standards/sru/cql/" %>, OASIS, January 2013</p>
</section>