blob: 98cbac0a1dd6e54045c083a72470c3e5f2dfc624 [file] [log] [blame]
Akron479994e2018-07-02 13:21:44 +02001<!DOCTYPE html>
2<html>
3 <head>
4 <title>Plugin demo</title>
5 <link type="text/css" rel="stylesheet" href="/css/kalamar.css" />
Akrona99315e2018-07-03 22:56:45 +02006 <!--
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';">
hebastae094dc62019-12-06 13:12:40 +01009 -->
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>
Akron479994e2018-07-02 13:21:44 +020016 </head>
Akron51ee6232019-12-17 21:00:05 +010017 <body>
Akron951a9952019-05-22 16:28:53 +020018 <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>
Akron51ee6232019-12-17 21:00:05 +010019
20 <header>
21 <form id="searchform" autocomplete="off" action="/kalamar"></form>
22 </header>
23
hebastae094dc62019-12-06 13:12:40 +010024 <main>
25 <script>
26 KorAP.koralQuery = {
27 "matches" : [ "..." ],
28 "corpus" : {
29 "@type" : "koral:docGroup",
30 "operation" : "operation:or",
31 "operands" : [ {
32 "@type" : "koral:docGroup",
33 "operation" : "operation:and",
34 "operands" : [ {
35 "@type" : "koral:doc",
36 "key" : "title",
37 "match" : "match:eq",
38 "value" : "Der Birnbaum",
39 "type" : "type:string"
40 }, {
41 "@type" : "koral:doc",
42 "key" : "pubPlace",
43 "match" : "match:eq",
44 "value" : "Mannheim",
45 "type" : "type:string"
46 }, {
47 "@type" : "koral:docGroup",
48 "operation" : "operation:or",
49 "operands" : [ {
50 "@type" : "koral:doc",
51 "key" : "subTitle",
52 "match" : "match:eq",
53 "value" : "Aufzucht und Pflege",
54 "type" : "type:string"
55 }, {
56 "@type" : "koral:doc",
57 "key" : "subTitle",
58 "match" : "match:eq",
59 "value" : "Gedichte",
60 "type" : "type:string"
61 } ]
62 } ]
63 }, {
64 "@type" : "koral:doc",
65 "key" : "pubDate",
66 "match" : "match:geq",
67 "value" : "2015-03-05",
68 "type" : "type:date",
69 "rewrites" : [ {
70 "@type" : "koral:rewrite",
71 "operation" : "operation:modification",
72 "src" : "querySerializer",
73 "scope" : "tree"
74 } ]
75 } ]
76 },
77 "query" : {
78 "wrap" : {
79 "layer" : "orth",
80 "match" : "match:eq",
81 "foundry" : "opennlp",
82 "key" : "Goethe",
83 "@type" : "koral:term"
84 },
85 "@type" : "koral:token"
86 },
87 "meta" : {
88 "serialQuery" : "tokens:s:Goethe",
89 "startIndex" : 0,
90 "version" : "unknown",
91 "itemsPerPage" : 25,
92 "context" : "p",
93 "benchmark" : "0.103553092 s",
94 "totalResults" : -1
95 }
96 };
97 </script>
98
99 <div id="resultinfo" class="found"></div>
Akron8d646d72018-07-08 13:45:53 +0200100 <div id="search">
101 <ol>
Akrone1c27f62018-07-20 11:42:59 +0200102 <li data-corpus-id="WPD"
103 data-doc-id="FFF"
104 data-text-id="01460"
105 data-match-id="p119-120"
106 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"
107 id="WPD-FFF.01460-p119-120"
108 tabindex="6">
109 <div class="meta">WPD/III/78432</div>
110 <div class="match-main">
111 <div class="match-wrap">
112 <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>
113 </div>
114 </div>
115 <p class="ref"><strong>Fehlbezogenes Adjektiv</strong> by Joni2,Peterlustig,BWBot; published on 2005-03-28 as FFF.01460 (WPD)</p>
116 </li>
Akron8d646d72018-07-08 13:45:53 +0200117 </ol>
118 </div>
Akron479994e2018-07-02 13:21:44 +0200119 </main>
120 </body>
121</html>