blob: 0f67fbd7c3bca25b86d88ffb161b5fe99d19a044 [file] [log] [blame]
Nils Diewald61e6ff52015-05-07 17:26:50 +00001% layout 'main', title => 'KorAP: CQL';
2
Akron1120a582017-10-17 12:29:16 +02003<h2 id="tutorial-top">CQL</h2>
Nils Diewald61e6ff52015-05-07 17:26:50 +00004
margarethacd375802019-07-17 12:43:38 +02005<p>CQL stands for Contextual Query Language. The main purpose of CQL is to represent queries
6 to information retrieval systems. In fact, CQL is commonly used together with the Search
7 Retrieve URL (SRU) protocol to represent URL-friendly search queries.</p>
8
9<p>In KorAP, we support basic CQL as defined in the <a
10href="https://www.clarin.eu/content/federated-content-search-clarin-fcs">CLARIN
11Federated Content Search (FCS)</a> specification for basic search. KorAP does not
12 support other operators and modifiers than AND and OR, such as REL and PROX. </p>
13
14<section id="examples">
15 <h3>Examples</h3>
16 <p>Querying a simple term</p>
17 %= doc_query cql => 'Feuer'
18
19
20 <p>Querying a phrase</p>
21 %= doc_query cql => '"Öl ins Feuer"'
22
23 <p>Boolean queries</p>
24 %= doc_query cql => 'giessen OR gießen'
25 %= doc_query cql => 'Feuer and gießen'
26</section>
27
28<section id="References">
29 <h3>References: </h3>
30 <p>searchRetrieve: Part 5. CQL: The Contextual Query Language version 1.0, OASIS,
31January 2013, <a
32 href="http://docs.oasis-open.org/search-ws/searchRetrieve/v1.0/os/part5-cql/searchRetrieve-v1.0-os-part5-cql.doc"
33 >http://docs.oasis- open.org/search-ws/searchRetrieve/v1.0/os/part5-cql/
34 searchRetrieve-v1.0-os-part5-cql.doc</a></p>
35 <p>CQL specification, <a href="https://www.loc.gov/standards/sru/cql/"
36 >https://www.loc.gov/standards/sru/cql/</a></p>
37</section>