blob: ca8f1ea17c438ea9c7faeb0e333a58cd42a09c25 [file] [log] [blame]
Nils Diewald4e9fbcb2014-07-15 11:45:09 +00001% content main => begin
2
3%# Store the id of an active section in the session, so the system is able to directly scroll to the relevant section
4%# This should be stored when clicking on a specific query
5%# but the remembered section contains the id - not the query
6
7<h2>KorAP-Tutorial</h2>
8
9<p><%= korap_tut_link_to 'Poliqarp+-Tutorial', '/tutorial/poliqarp-plus' %> <%= korap_tut_link_to 'Foundry Overview', '/tutorial/foundries' %> <%= korap_tut_link_to 'Regular Expressions', '/tutorial/regular-expressions' %></p>
10
11<!--
12<p>Links to Blog, FAQ, About, Contact ...</p>
13<ul>
14 <li>Introduction to KorAP</li>
15 <li>How to use Poliqarp+ QL?</li>
16 <li>How to use Cosmas-II QL?</li>
17 <li>How to use CQL?</li>
18 <li>API</li>
19 <li>Search</li>
20</ul>
21-->
22
23<section id="tut-intro">
24
25<h3>Example Queries</h3>
26%# <p>This is a Tutorial to KorAP. It may be maintained separately (as a Wiki?) and has some nice features - like embedded example queries - just click on the queries below:</p>
27
28<p><strong>Poliqarp</strong>: Find all occurrences of the lemma &quot;baum&quot; as annotated by the default foundry.</p>
29%= korap_tut_query poliqarp => '[base=baum]'
30
31<p><strong>Cosmas-II</strong>: Find all occurrences of the words &quot;der&quot; and &quot;Baum&quot;, in case they are in a maximum distance of 5 tokens. The order is not relevant.</p>
32%= korap_tut_query cosmas2 => 'der /w5 Baum'
33
34<p><strong>Poliqarp+</strong>: Find all nominal phrases as annotated using Connexor, that contain an adverb as annotated by OpenNLP.</p>
35%= korap_tut_query poliqarp => 'contains(<cnx/c=np>,[opennlp/p=ADV])'
36
37<p><strong>Poliqarp+</strong>: Find all sentences as annotated by the base foundry that start with a sequence of one token in present tense as annotated by Connexor and the lemma &quot;der&quot; annotated by the default foundry. Highlight both terms of the sequence.</p>
38%= korap_tut_query poliqarp => 'startswith(<s>, {1:[cnx/m=PRES]}{2:[base=der]})'
39
40</section>
41
42% end