regex, updated examples
diff --git a/examples/bsp2.json b/examples/bsp2.json
index 71d089a..78a60d8 100644
--- a/examples/bsp2.json
+++ b/examples/bsp2.json
@@ -1 +1,36 @@
-{"context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld","query":{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:distance","key":"w","min":1,"max":3}],"operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Der","layer":"orth","match":"match:eq"}},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Mann","layer":"orth","match":"match:eq"}}]}}
\ No newline at end of file
+{
+ "context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld",
+ "query":{
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":1,
+ "max":3
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp3.json b/examples/bsp3.json
index 7577689..760a75a 100644
--- a/examples/bsp3.json
+++ b/examples/bsp3.json
@@ -1 +1,48 @@
-{"context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld","query":{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:group","operation":"operation:and","operands":[{"@type":"korap:distance","key":"w","min":1,"max":3},{"@type":"korap:distance","key":"s","min":1,"max":1}]}],"operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Der","layer":"orth","match":"match:eq"}},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Mann","layer":"orth","match":"match:eq"}}]}}
\ No newline at end of file
+{
+ "context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld",
+ "query":{
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:group",
+ "operation":"operation:and",
+ "operands":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":1,
+ "max":3
+ },
+ {
+ "@type":"korap:distance",
+ "key":"s",
+ "min":1,
+ "max":1
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp4.json b/examples/bsp4.json
index 4d2c046..4eb25c8 100644
--- a/examples/bsp4.json
+++ b/examples/bsp4.json
@@ -1 +1,72 @@
-{"context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld","query":{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:distance","key":"w","min":0,"max":5}],"operands":[{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:group","operation":"operation:and","operands":[{"@type":"korap:distance","key":"w","min":1,"max":3},{"@type":"korap:distance","key":"s","min":1,"max":1}]}],"operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Der","layer":"orth","match":"match:eq"}},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Mann","layer":"orth","match":"match:eq"}}]},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"geht","layer":"orth","match":"match:eq"}}]}}
\ No newline at end of file
+{
+ "context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld",
+ "query":{
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":0,
+ "max":5
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:group",
+ "operation":"operation:and",
+ "operands":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":1,
+ "max":3
+ },
+ {
+ "@type":"korap:distance",
+ "key":"s",
+ "min":1,
+ "max":1
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"geht",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp5.json b/examples/bsp5.json
index b4aaadc..8e156cf 100644
--- a/examples/bsp5.json
+++ b/examples/bsp5.json
@@ -1 +1,72 @@
-{"context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld","query":{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:distance","key":"w","min":0,"max":5}],"operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"geht","layer":"orth","match":"match:eq"}},{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:group","operation":"operation:and","operands":[{"@type":"korap:distance","key":"w","min":1,"max":3},{"@type":"korap:distance","key":"s","min":1,"max":1}]}],"operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Der","layer":"orth","match":"match:eq"}},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Mann","layer":"orth","match":"match:eq"}}]}]}}
\ No newline at end of file
+{
+ "context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld",
+ "query":{
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":0,
+ "max":5
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"geht",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:group",
+ "operation":"operation:and",
+ "operands":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":1,
+ "max":3
+ },
+ {
+ "@type":"korap:distance",
+ "key":"s",
+ "min":1,
+ "max":1
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp6.json b/examples/bsp6.json
index 1b7050d..a1741e9 100644
--- a/examples/bsp6.json
+++ b/examples/bsp6.json
@@ -1 +1,87 @@
-{"context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld","query":{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:distance","key":"w","min":0,"max":5}],"operands":[{"@type":"korap:group","operation":"operation:sequence","inOrder":true,"distances":[{"@type":"korap:group","operation":"operation:and","operands":[{"@type":"korap:distance","key":"w","min":1,"max":3},{"@type":"korap:distance","key":"s","min":1,"max":1}]}],"operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Der","layer":"orth","match":"match:eq"}},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"Mann","layer":"orth","match":"match:eq"}}]},{"@type":"korap:group","operation":"operation:sequence","operands":[{"@type":"korap:token","wrap":{"@type":"korap:term","key":"geht","layer":"orth","match":"match:eq"}},{"@type":"korap:token","wrap":{"@type":"korap:term","key":"weg","layer":"orth","match":"match:eq"}}]}]}}
\ No newline at end of file
+{
+ "context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.1/context.jsonld",
+ "query":{
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":0,
+ "max":5
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "inOrder":true,
+ "distances":[
+ {
+ "@type":"korap:group",
+ "operation":"operation:and",
+ "operands":[
+ {
+ "@type":"korap:distance",
+ "key":"w",
+ "min":1,
+ "max":3
+ },
+ {
+ "@type":"korap:distance",
+ "key":"s",
+ "min":1,
+ "max":1
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ },
+ {
+ "@type":"korap:group",
+ "operation":"operation:sequence",
+ "operands":[
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"geht",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ },
+ {
+ "@type":"korap:token",
+ "wrap":{
+ "@type":"korap:term",
+ "key":"weg",
+ "layer":"orth",
+ "match":"match:eq"
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file