updated to new notation
diff --git a/examples/bsp1.json b/examples/bsp1.json
new file mode 100644
index 0000000..b878c8f
--- /dev/null
+++ b/examples/bsp1.json
@@ -0,0 +1 @@
+{"@context":{"korap":"http://korap.ids-mannheim.de/ns/KorAP/json-ld/v0.1/","boundary":"korap:boundary/","group":"korap:group/","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"}},"query":{"type":"group","operation":"sequence","operands":[{"type":"token","key":{"type":"term","key":"Der","layer":"orth","match":"eq"}},{"type":"token","key":{"type":"term","key":"Mann","layer":"orth","match":"eq"}}]}}
\ No newline at end of file
diff --git a/examples/bsp2.json b/examples/bsp2.json
new file mode 100644
index 0000000..0593de0
--- /dev/null
+++ b/examples/bsp2.json
@@ -0,0 +1,88 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "boundary":"korap:boundary/",
+ "group":"korap:group/",
+ "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"
+ }
+ },
+ "query":{
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":1,
+ "max":3
+ }
+ ],
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp3.json b/examples/bsp3.json
new file mode 100644
index 0000000..6912ac6
--- /dev/null
+++ b/examples/bsp3.json
@@ -0,0 +1,100 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "boundary":"korap:boundary/",
+ "group":"korap:group/",
+ "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"
+ }
+ },
+ "query":{
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"group",
+ "operation":"and",
+ "operands":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":"1",
+ "max":"3"
+ },
+ {
+ "type":"distance",
+ "measure":"s",
+ "min":"1",
+ "max":"1"
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp4.json b/examples/bsp4.json
new file mode 100644
index 0000000..b15ce11
--- /dev/null
+++ b/examples/bsp4.json
@@ -0,0 +1,124 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "boundary":"korap:boundary/",
+ "group":"korap:group/",
+ "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"
+ }
+ },
+ "query":{
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":0,
+ "max":5
+ }
+ ],
+ "operands":[
+ {
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"group",
+ "operation":"and",
+ "operands":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":"1",
+ "max":"3"
+ },
+ {
+ "type":"distance",
+ "measure":"s",
+ "min":"1",
+ "max":"1"
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"geht",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp5.json b/examples/bsp5.json
new file mode 100644
index 0000000..67ad0b4
--- /dev/null
+++ b/examples/bsp5.json
@@ -0,0 +1,124 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "boundary":"korap:boundary/",
+ "group":"korap:group/",
+ "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"
+ }
+ },
+ "query":{
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":0,
+ "max":5
+ }
+ ],
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"geht",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"group",
+ "operation":"and",
+ "operands":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":"1",
+ "max":"3"
+ },
+ {
+ "type":"distance",
+ "measure":"s",
+ "min":"1",
+ "max":"1"
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/bsp6.json b/examples/bsp6.json
new file mode 100644
index 0000000..d98d508
--- /dev/null
+++ b/examples/bsp6.json
@@ -0,0 +1,139 @@
+{
+ "@context":{
+ "korap":"http://korap.ids-mannheim.de/ns/KorAP/json-ld/v0.1/",
+ "boundary":"korap:boundary/",
+ "group":"korap:group/",
+ "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"
+ }
+ },
+ "query":{
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":0,
+ "max":5
+ }
+ ],
+ "operands":[
+ {
+ "type":"group",
+ "operation":"sequence",
+ "inOrder":"true",
+ "distances":[
+ {
+ "type":"group",
+ "operation":"and",
+ "operands":[
+ {
+ "type":"distance",
+ "measure":"w",
+ "min":"1",
+ "max":"3"
+ },
+ {
+ "type":"distance",
+ "measure":"s",
+ "min":"1",
+ "max":"1"
+ }
+ ]
+ }
+ ],
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Der",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"Mann",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ },
+ {
+ "type":"group",
+ "operation":"sequence",
+ "operands":[
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"geht",
+ "layer":"orth",
+ "match":"eq"
+ }
+ },
+ {
+ "type":"token",
+ "key":{
+ "type":"term",
+ "key":"weg",
+ "layer":"orth",
+ "match":"eq"
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/examples/examples.txt b/examples/examples.txt
new file mode 100644
index 0000000..aa5f23f
--- /dev/null
+++ b/examples/examples.txt
@@ -0,0 +1,6 @@
+bsp1.json: "Der Mann"
+bsp2.json: "Der /+w1:3 Mann"
+bsp3.json: "Der /+w1:3,s1 Mann"
+bsp4.json: "(Der /+w1:3,s1 Mann) /+w5 geht"
+bsp5.json: "(Der /+w1:3,s1 Mann) /-w5 geht"
+bsp6.json: "(Der /+w1:3,s1 Mann) /+w5 (geht weg)"
\ No newline at end of file