Importing WformServices and GlemmServices
Change-Id: Ifa95576d69e0d3863f63d3fdedb48c2c21cf64bc
diff --git a/Project-Tests/query.in.pretty.json b/Project-Tests/query.in.pretty.json
new file mode 100644
index 0000000..f13227c
--- /dev/null
+++ b/Project-Tests/query.in.pretty.json
@@ -0,0 +1,162 @@
+{
+ "@context" : "http://korap.ids-mannheim.de/ns/KoralQuery/v0.3/context.jsonld",
+ "collection" : {
+ "@type" : "koral:docGroup",
+ "operands" : [ {
+ "@type" : "koral:doc",
+ "key" : "availability",
+ "match" : "match:eq",
+ "type" : "type:regex",
+ "value" : "CC-BY.*"
+ }, {
+ "@type" : "koral:docGroup",
+ "operands" : [ {
+ "@type" : "koral:doc",
+ "key" : "availability",
+ "match" : "match:eq",
+ "type" : "type:regex",
+ "value" : "CC-BY.*"
+ }, {
+ "@type" : "koral:docGroup",
+ "operands" : [ {
+ "@type" : "koral:doc",
+ "key" : "availability",
+ "match" : "match:eq",
+ "type" : "type:regex",
+ "value" : "ACA.*"
+ }, {
+ "@type" : "koral:docGroup",
+ "operands" : [ {
+ "@type" : "koral:doc",
+ "key" : "availability",
+ "match" : "match:eq",
+ "type" : "type:regex",
+ "value" : "QAO-NC"
+ }, {
+ "@type" : "koral:doc",
+ "key" : "availability",
+ "match" : "match:eq",
+ "type" : "type:regex",
+ "value" : "QAO.*"
+ } ],
+ "operation" : "operation:or"
+ } ],
+ "operation" : "operation:or"
+ } ],
+ "operation" : "operation:or"
+ } ],
+ "operation" : "operation:and",
+ "rewrites" : [ {
+ "@type" : "koral:rewrite",
+ "operation" : "operation:insertion",
+ "scope" : "availability(FREE)",
+ "src" : "Kustvakt"
+ } ]
+ },
+ "matches" : [ "..." ],
+ "meta" : {
+ "benchmark" : "5.08010068 s",
+ "context" : {
+ "left" : [ "token", 40 ],
+ "right" : [ "token", 40 ]
+ },
+ "count" : 25,
+ "cutOff" : true,
+ "fields" : [ "ID", "UID", "textSigle", "corpusID", "author", "title", "subTitle", "textClass", "pubPlace", "pubDate", "availability", "layerInfos", "docSigle", "corpusSigle" ],
+ "itemsPerPage" : 25,
+ "serialQuery" : "spanDistance({129: spanNext(spanNext(tokens:tt/l:rennen, tokens:tt/l:schlafen), tokens:tt/l:laufen)}, {129: tokens:tt/l:kaufen}, [(w[0:2], notOrdered, notExcluded)])",
+ "startIndex" : 0,
+ "timeout" : 10000,
+ "totalResults" : -1,
+ "version" : "0.59.1"
+ },
+ "query" : {
+ "@type" : "koral:group",
+ "distances" : [ {
+ "@type" : "cosmas:distance",
+ "boundary" : {
+ "@type" : "koral:boundary",
+ "max" : 2,
+ "min" : 0
+ },
+ "key" : "w"
+ } ],
+ "inOrder" : false,
+ "operands" : [ {
+ "@type" : "koral:group",
+ "classOut" : 129,
+ "operands" : [ {
+ "@type" : "koral:group",
+ "operands" : [ {
+ "@type" : "koral:token",
+ "wrap" : {
+ "@type" : "koral:term",
+ "foundry" : "tt",
+ "key" : "GF>2&rennen",
+ "layer" : "lemma",
+ "match" : "match:eq",
+ "rewrites" : [ {
+ "@type" : "koral:rewrite",
+ "operation" : "operation:injection",
+ "scope" : "foundry",
+ "src" : "Kustvakt"
+ } ]
+ }
+ }, {
+ "@type" : "koral:token",
+ "wrap" : {
+ "@type" : "koral:term",
+ "foundry" : "tt",
+ "key" : "schlafen",
+ "layer" : "lemma",
+ "match" : "match:eq",
+ "rewrites" : [ {
+ "@type" : "koral:rewrite",
+ "operation" : "operation:injection",
+ "scope" : "foundry",
+ "src" : "Kustvakt"
+ } ]
+ }
+ }, {
+ "@type" : "koral:token",
+ "wrap" : {
+ "@type" : "koral:term",
+ "foundry" : "tt",
+ "key" : "laufen",
+ "layer" : "lemma",
+ "match" : "match:eq",
+ "rewrites" : [ {
+ "@type" : "koral:rewrite",
+ "operation" : "operation:injection",
+ "scope" : "foundry",
+ "src" : "Kustvakt"
+ } ]
+ }
+ } ],
+ "operation" : "operation:sequence"
+ } ],
+ "operation" : "operation:class"
+ }, {
+ "@type" : "koral:group",
+ "classOut" : 129,
+ "operands" : [ {
+ "@type" : "koral:token",
+ "wrap" : {
+ "@type" : "koral:term",
+ "foundry" : "tt",
+ "key" : "kaufen",
+ "layer" : "lemma",
+ "match" : "match:eq",
+ "rewrites" : [ {
+ "@type" : "koral:rewrite",
+ "operation" : "operation:injection",
+ "scope" : "foundry",
+ "src" : "Kustvakt"
+ } ]
+ }
+ } ],
+ "operation" : "operation:class"
+ } ],
+ "operation" : "operation:sequence"
+ }
+}
\ No newline at end of file