Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Plugin demo</title> |
| 5 | <link type="text/css" rel="stylesheet" href="/css/kalamar.css" /> |
Akron | a99315e | 2018-07-03 22:56:45 +0200 | [diff] [blame] | 6 | <!-- |
| 7 | see https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP |
| 8 | <meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';"> |
hebasta | e094dc6 | 2019-12-06 13:12:40 +0100 | [diff] [blame] | 9 | --> |
| 10 | <script>//<![CDATA[ |
| 11 | |
| 12 | window.KorAP = window.KorAP || {}; |
| 13 | |
| 14 | //]]></script> |
| 15 | <script data-main="plugin-serverdemo.js" src="../js/lib/require.js" async="async"></script> |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 16 | </head> |
Akron | 51ee623 | 2019-12-17 21:00:05 +0100 | [diff] [blame] | 17 | <body> |
Akron | 951a995 | 2019-05-22 16:28:53 +0200 | [diff] [blame] | 18 | <p>Start the demo server with <code>morbo -l 'http://*:3003' t/server/plugin.pl</code> and open <a href="http://localhost:3003/demo/plugin-server.html"><code>this website</code></a>.</p> |
Akron | 51ee623 | 2019-12-17 21:00:05 +0100 | [diff] [blame] | 19 | |
| 20 | <header> |
Akron | 7d18d8e | 2024-11-08 11:08:48 +0100 | [diff] [blame^] | 21 | <form autocomplete="off" action="/kalamar" id="searchform"> |
| 22 | <div id="searchbar"> |
| 23 | <input type="search" |
| 24 | placeholder="Find ..." |
| 25 | name="q" |
| 26 | id="q-field" |
| 27 | value="abcdefghijklmnopqrstuvwxyz" |
| 28 | autofocus="autofocus" /> |
| 29 | <button id="qsubmit" type="submit"><span>Go</span></button> |
| 30 | <!-- <i class="fa fa-arrow-circle-down show-hint" onclick="hint.popUp()"></i> --> |
| 31 | </div> |
| 32 | |
| 33 | <!-- Search in the following virtual corpus --> |
| 34 | <div id="vc-view"></div> |
| 35 | in |
| 36 | <input id="show" name="show" type="hidden" /> |
| 37 | <!--<input id="collection-name" name="collection-name" type="hidden"> --> |
| 38 | <input id="cq" name="cq" type="text" value=""> |
| 39 | with <span class="menu select"> |
| 40 | <select name="ql" id="ql-field"> |
| 41 | <option value="poliqarp">Poliqarp</option> |
| 42 | <option value="cosmas2">Cosmas II</option> |
| 43 | <option value="annis">Annis</option> |
| 44 | <option value="cql">CQL v1.2</option> |
| 45 | </select> |
| 46 | </span> |
| 47 | <div class="button right"> |
| 48 | <input type="checkbox" |
| 49 | value="1" |
| 50 | name="cutoff" |
| 51 | class="checkbox" |
| 52 | id="q-cutoff-field" /> |
| 53 | <label for="q-cutoff-field"><span id="glimpse"></span>Glimpse</label> |
| 54 | |
| 55 | <!-- Todo: open tutorial - like openTutorial() --> |
| 56 | <a href="doc/faq" tabindex="-1" class="question"><span>Question</span></a> |
| 57 | <a href="tutorial.html" title="Tutorial" class="tutorial" id="view-tutorial"><span>Tutorial</span></a> |
| 58 | </div> |
| 59 | </form> |
Akron | 51ee623 | 2019-12-17 21:00:05 +0100 | [diff] [blame] | 60 | </header> |
| 61 | |
hebasta | e094dc6 | 2019-12-06 13:12:40 +0100 | [diff] [blame] | 62 | <main> |
| 63 | <script> |
| 64 | KorAP.koralQuery = { |
| 65 | "matches" : [ "..." ], |
| 66 | "corpus" : { |
| 67 | "@type" : "koral:docGroup", |
| 68 | "operation" : "operation:or", |
| 69 | "operands" : [ { |
| 70 | "@type" : "koral:docGroup", |
| 71 | "operation" : "operation:and", |
| 72 | "operands" : [ { |
| 73 | "@type" : "koral:doc", |
| 74 | "key" : "title", |
| 75 | "match" : "match:eq", |
| 76 | "value" : "Der Birnbaum", |
| 77 | "type" : "type:string" |
| 78 | }, { |
| 79 | "@type" : "koral:doc", |
| 80 | "key" : "pubPlace", |
| 81 | "match" : "match:eq", |
| 82 | "value" : "Mannheim", |
| 83 | "type" : "type:string" |
| 84 | }, { |
| 85 | "@type" : "koral:docGroup", |
| 86 | "operation" : "operation:or", |
| 87 | "operands" : [ { |
| 88 | "@type" : "koral:doc", |
| 89 | "key" : "subTitle", |
| 90 | "match" : "match:eq", |
| 91 | "value" : "Aufzucht und Pflege", |
| 92 | "type" : "type:string" |
| 93 | }, { |
| 94 | "@type" : "koral:doc", |
| 95 | "key" : "subTitle", |
| 96 | "match" : "match:eq", |
| 97 | "value" : "Gedichte", |
| 98 | "type" : "type:string" |
| 99 | } ] |
| 100 | } ] |
| 101 | }, { |
| 102 | "@type" : "koral:doc", |
| 103 | "key" : "pubDate", |
| 104 | "match" : "match:geq", |
| 105 | "value" : "2015-03-05", |
| 106 | "type" : "type:date", |
| 107 | "rewrites" : [ { |
| 108 | "@type" : "koral:rewrite", |
| 109 | "operation" : "operation:modification", |
| 110 | "src" : "querySerializer", |
| 111 | "scope" : "tree" |
| 112 | } ] |
| 113 | } ] |
| 114 | }, |
| 115 | "query" : { |
| 116 | "wrap" : { |
| 117 | "layer" : "orth", |
| 118 | "match" : "match:eq", |
| 119 | "foundry" : "opennlp", |
| 120 | "key" : "Goethe", |
| 121 | "@type" : "koral:term" |
| 122 | }, |
| 123 | "@type" : "koral:token" |
| 124 | }, |
| 125 | "meta" : { |
| 126 | "serialQuery" : "tokens:s:Goethe", |
| 127 | "startIndex" : 0, |
| 128 | "version" : "unknown", |
| 129 | "itemsPerPage" : 25, |
| 130 | "context" : "p", |
| 131 | "benchmark" : "0.103553092 s", |
| 132 | "totalResults" : -1 |
| 133 | } |
| 134 | }; |
| 135 | </script> |
| 136 | |
| 137 | <div id="resultinfo" class="found"></div> |
Akron | 8d646d7 | 2018-07-08 13:45:53 +0200 | [diff] [blame] | 138 | <div id="search"> |
| 139 | <ol> |
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 140 | <li data-corpus-id="WPD" |
| 141 | data-doc-id="FFF" |
| 142 | data-text-id="01460" |
| 143 | data-match-id="p119-120" |
| 144 | data-available-info="base/s=spans corenlp/c=spans corenlp/ne=tokens corenlp/p=tokens corenlp/s=spans glemm/l=tokens mate/l=tokens mate/m=tokens mate/p=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans xip/c=spans malt/d=rels" |
| 145 | id="WPD-FFF.01460-p119-120" |
| 146 | tabindex="6"> |
| 147 | <div class="meta">WPD/III/78432</div> |
| 148 | <div class="match-main"> |
| 149 | <div class="match-wrap"> |
| 150 | <div class="snippet startMore endMore"><span class="context-left">Der Fehler unterläuft häufig bei der direkten Übersetzung aus dem Englischen, wenn im originalen Ausdruck die beiden Wortteile verschiedene Wörter sind und sich das Adjektiv wahlweise auf das erste oder zweite Wort bezieht. Ein Beispiel ist multiples Testproblem für multiple </span><span class="match">test</span><span class="context-right"> problem.</span></div> |
| 151 | </div> |
| 152 | </div> |
| 153 | <p class="ref"><strong>Fehlbezogenes Adjektiv</strong> by Joni2,Peterlustig,BWBot; published on 2005-03-28 as FFF.01460 (WPD)</p> |
| 154 | </li> |
Akron | 8d646d7 | 2018-07-08 13:45:53 +0200 | [diff] [blame] | 155 | </ol> |
| 156 | </div> |
Akron | 479994e | 2018-07-02 13:21:44 +0200 | [diff] [blame] | 157 | </main> |
| 158 | </body> |
| 159 | </html> |