Some example queries in jsonld
diff --git a/src/test/resources/queries/bsp1.jsonld b/src/test/resources/queries/bsp1.jsonld
new file mode 100644
index 0000000..100d9fa
--- /dev/null
+++ b/src/test/resources/queries/bsp1.jsonld
@@ -0,0 +1,146 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation": "operation:or",
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key": "foo"
+ }
+ },
+ {
+ "@type": "korap:group",
+ "quantifier": "*",
+ "operation": "operation:repetition",
+ "operands": [
+ {
+ "@type": "korap:group",
+ "operation" : "operation:sequence",
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "key": "foo",
+ "layer" : "base"
+ }
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "bar"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/test/resources/queries/bsp10.jsonld b/src/test/resources/queries/bsp10.jsonld
new file mode 100644
index 0000000..19ad4a2
--- /dev/null
+++ b/src/test/resources/queries/bsp10.jsonld
@@ -0,0 +1,133 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation" : "operation:sequence",
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Katze"
+ }
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "und"
+ }
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "Hunde"
+ }
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp11.jsonld b/src/test/resources/queries/bsp11.jsonld
new file mode 100644
index 0000000..aa41cad
--- /dev/null
+++ b/src/test/resources/queries/bsp11.jsonld
@@ -0,0 +1,124 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:group",
+ "operation": "operation:or",
+ "operands": [
+ {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Katze",
+ "match": "match:ne"
+ },
+ {
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "Katzen",
+ "match" : "match:ne"
+ }
+ ]
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp12.jsonld b/src/test/resources/queries/bsp12.jsonld
new file mode 100644
index 0000000..b909da1
--- /dev/null
+++ b/src/test/resources/queries/bsp12.jsonld
@@ -0,0 +1,123 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation": "operation:position",
+ "frame": "frame:contains",
+ "operands": [
+ {
+ "@type": "korap:span",
+ "key": "np"
+ },
+ {
+ "@type": "korap:token",
+ "wrap" : {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Mann"
+ }
+ }
+ ]
+ }
+}
+
diff --git a/src/test/resources/queries/bsp13.jsonld b/src/test/resources/queries/bsp13.jsonld
new file mode 100644
index 0000000..f67adef
--- /dev/null
+++ b/src/test/resources/queries/bsp13.jsonld
@@ -0,0 +1,123 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "frame": "frame:startswith",
+ "operation": "operation:position",
+ "operands": [
+ {
+ "@type": "korap:span",
+ "key": "np"
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "pos",
+ "key" : "Det",
+ "match" : "match:ne"
+ }
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp13b.jsonld b/src/test/resources/queries/bsp13b.jsonld
new file mode 100644
index 0000000..f67adef
--- /dev/null
+++ b/src/test/resources/queries/bsp13b.jsonld
@@ -0,0 +1,123 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "frame": "frame:startswith",
+ "operation": "operation:position",
+ "operands": [
+ {
+ "@type": "korap:span",
+ "key": "np"
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "pos",
+ "key" : "Det",
+ "match" : "match:ne"
+ }
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp14.jsonld b/src/test/resources/queries/bsp14.jsonld
new file mode 100644
index 0000000..ad6e7e3
--- /dev/null
+++ b/src/test/resources/queries/bsp14.jsonld
@@ -0,0 +1,111 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap": {
+ "@type" : "korap:term",
+ "type": "type:regex",
+ "key": "vers{2,3}uch"
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp15.jsonld b/src/test/resources/queries/bsp15.jsonld
new file mode 100644
index 0000000..1218c7c
--- /dev/null
+++ b/src/test/resources/queries/bsp15.jsonld
@@ -0,0 +1,112 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap": {
+ "type": "type:regex",
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "vers.*ch"
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp16.jsonld b/src/test/resources/queries/bsp16.jsonld
new file mode 100644
index 0000000..778a01b
--- /dev/null
+++ b/src/test/resources/queries/bsp16.jsonld
@@ -0,0 +1,133 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:termGroup",
+ "relation": "relation:and",
+ "operands": [
+ {
+ "@type": "korap:termGroup",
+ "relation": "relation:or",
+ "operands": [
+ {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "bar"
+ },
+ {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "foo"
+ }
+ ]
+ },
+ {
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "foobar"
+ }
+ ]
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp17.jsonld b/src/test/resources/queries/bsp17.jsonld
new file mode 100644
index 0000000..5fe54e0
--- /dev/null
+++ b/src/test/resources/queries/bsp17.jsonld
@@ -0,0 +1,122 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation": "operation:position",
+ "frame": "frame:within",
+ "operands": [
+ {
+ "@type": "korap:span",
+ "key": "np"
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Mann"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/test/resources/queries/bsp2.jsonld b/src/test/resources/queries/bsp2.jsonld
new file mode 100644
index 0000000..aa8673e
--- /dev/null
+++ b/src/test/resources/queries/bsp2.jsonld
@@ -0,0 +1,139 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation" : "operation:sequence",
+ "operands": [
+ {
+ "@type": "korap:group",
+ "operation": "operation:or",
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "foo"
+ }
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "bar"
+ }
+ }
+ ]
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "foobar"
+ }
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp3.jsonld b/src/test/resources/queries/bsp3.jsonld
new file mode 100644
index 0000000..642d91f
--- /dev/null
+++ b/src/test/resources/queries/bsp3.jsonld
@@ -0,0 +1,125 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation": "operation:submatch",
+ "classRef": [0],
+ "operands": [
+ {
+ "@type": "korap:group",
+ "operation" : "operation:class",
+ "class": 0,
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Mann"
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
diff --git a/src/test/resources/queries/bsp4.jsonld b/src/test/resources/queries/bsp4.jsonld
new file mode 100644
index 0000000..b64ef29
--- /dev/null
+++ b/src/test/resources/queries/bsp4.jsonld
@@ -0,0 +1,138 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation": "operation:submatch",
+ "classRef": [0],
+ "operands": [
+ {
+ "@type": "korap:group",
+ "operation": "operation:sequence",
+ "operands": [
+ {
+ "@type": "korap:group",
+ "class": 0,
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "foo"
+ }
+ }
+ ]
+ },
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "bar"
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/test/resources/queries/bsp5.jsonld b/src/test/resources/queries/bsp5.jsonld
new file mode 100644
index 0000000..1a12d6d
--- /dev/null
+++ b/src/test/resources/queries/bsp5.jsonld
@@ -0,0 +1,137 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:group",
+ "operation": "operation:submatch",
+ "classRef": [1],
+ "operands": [
+ {
+ "@type": "korap:sequence",
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Der"
+ }
+ },
+ {
+ "@type": "korap:group",
+ "class": 1,
+ "operands": [
+ {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Mann"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/test/resources/queries/bsp6.jsonld b/src/test/resources/queries/bsp6.jsonld
new file mode 100644
index 0000000..fc9fe84
--- /dev/null
+++ b/src/test/resources/queries/bsp6.jsonld
@@ -0,0 +1,111 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Katze"
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp7.jsonld b/src/test/resources/queries/bsp7.jsonld
new file mode 100644
index 0000000..074d2d3
--- /dev/null
+++ b/src/test/resources/queries/bsp7.jsonld
@@ -0,0 +1,112 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap" : {
+ "@type": "korap:term",
+ "layer": "base",
+ "key": "Katze",
+ "match": "match:ne"
+ }
+ }
+}
diff --git a/src/test/resources/queries/bsp9.jsonld b/src/test/resources/queries/bsp9.jsonld
new file mode 100644
index 0000000..41e9cfb
--- /dev/null
+++ b/src/test/resources/queries/bsp9.jsonld
@@ -0,0 +1,122 @@
+{
+ "@context" : {
+ "korap" : "http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "query" : "korap:query",
+ "meta" : "korap:meta",
+ "collections" : {
+ "@id" : "korap:collections",
+ "@container" : "@list"
+ },
+ "token" : "korap:token/",
+ "distance" : "korap:distance/",
+ "boundary" : "korap:boundary/",
+ "group" : "korap:group/",
+ "span" : "korap:span/",
+ "term" : "korap:term/",
+ "termGroup" : "korap:termGroup/",
+ "wrap" : "token:wrap",
+ "operation" : {
+ "@id" : "group:operation/",
+ "@type" : "@id"
+ },
+ "class" : {
+ "@id" : "group:class",
+ "@type" : "xsd:integer"
+ },
+ "operands" : {
+ "@id" : "group:operands",
+ "@container" : "@list"
+ },
+ "frame" : {
+ "@id" : "group:frame/",
+ "@type" : "@id"
+ },
+ "classRef" : {
+ "@id" : "group:classRef",
+ "@type" : "xsd:integer"
+ },
+ "spanRef" : {
+ "@id" : "group:spanRef",
+ "@type" : "xsd:integer"
+ },
+ "classRefOp" : {
+ "@id" : "group:classRefOp",
+ "@type" : "@id"
+ },
+ "min" : {
+ "@id" : "boundary:min",
+ "@type" : "xsd:integer"
+ },
+ "max" : {
+ "@id" : "boundary:max",
+ "@type" : "xsd:integer"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "distances" : {
+ "@id" : "group:distances",
+ "@container" : "@list"
+ },
+ "inOrder" : {
+ "@id" : "group:inOrder",
+ "@type" : "xsd:boolean"
+ },
+ "exclude" : {
+ "@id" : "group:exclude",
+ "@type" : "xsd:boolean"
+ },
+ "key" : {
+ "@id" : "korap:key",
+ "@type" : "xsd:string"
+ },
+ "foundry" : {
+ "@id" : "korap:foundry",
+ "@type" : "xsd:string"
+ },
+ "layer" : {
+ "@id" : "korap:layer",
+ "@type" : "xsd:string"
+ },
+ "value" : {
+ "@id" : "korap:value",
+ "@type" : "xsd:string"
+ },
+ "caseInsensitive" : {
+ "@id" : "term:caseInsensitive",
+ "@type" : "xsd:boolean"
+ },
+ "type" : {
+ "@id" : "term:type/",
+ "@type" : "@id"
+ },
+ "match" : {
+ "@id" : "term:match/",
+ "@type" : "@id"
+ },
+ "relation" : {
+ "@id" : "korap:relation/",
+ "@type" : "@id"
+ }
+ },
+ "query": {
+ "@type": "korap:token",
+ "wrap": {
+ "@type": "korap:termGroup",
+ "relation": "relation:and",
+ "operands": [
+ {
+ "@type": "korap:term",
+ "layer": "base",
+ "key" : "Katze"
+ },
+ {
+ "@type": "korap:term",
+ "layer": "orth",
+ "key" : "Katzen"
+ }
+ ]
+ }
+ }
+}
\ No newline at end of file