Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 1 | % layout 'main', title => 'KorAP: CQL'; |
| 2 | |
Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 3 | %= page_title |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 4 | |
margaretha | cd37580 | 2019-07-17 12:43:38 +0200 | [diff] [blame] | 5 | <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 |
| 10 | href="https://www.clarin.eu/content/federated-content-search-clarin-fcs">CLARIN |
| 11 | Federated 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> |
Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 30 | <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" %>. |
| 31 | <%= ext_link_to 'CQL: The Contextual Query Language version 1.0', "https://www.loc.gov/standards/sru/cql/" %>, OASIS, January 2013</p> |
margaretha | cd37580 | 2019-07-17 12:43:38 +0200 | [diff] [blame] | 32 | </section> |