Updated SpanSubspanQuery for empty length.
diff --git a/src/test/resources/queries/submatch.jsonld b/src/test/resources/queries/submatch.jsonld
index 36153eb..4baa073 100644
--- a/src/test/resources/queries/submatch.jsonld
+++ b/src/test/resources/queries/submatch.jsonld
@@ -11,15 +11,35 @@
],
"collection":null,
"query":{
- "@type":"korap:reference",
- "operation":"operation:focus",
- "operands":[
+ "@type" : "korap:reference",
+ "operands" : [
{
- "@type":"korap:span",
- "key":"s"
+ "@type" : "korap:group",
+ "frame" : "frame:contains",
+ "frames" : [
+ "frames:contains"
+ ],
+ "operands" : [
+ {
+ "@type" : "korap:span",
+ "key" : "s"
+ },
+ {
+ "@type" : "korap:token",
+ "wrap" : {
+ "@type" : "korap:term",
+ "foundry" : "tt",
+ "key" : "Haus",
+ "layer" : "lemma",
+ "match" : "match:eq"
+ }
+ }
+ ],
+ "operation" : "operation:position"
}
],
- "spanRef":[
+ "operation" : "operation:focus",
+ "spanRef" : [
1,
4
]
diff --git a/src/test/resources/queries/submatch2.jsonld b/src/test/resources/queries/submatch2.jsonld
new file mode 100644
index 0000000..45a3155
--- /dev/null
+++ b/src/test/resources/queries/submatch2.jsonld
@@ -0,0 +1,30 @@
+{
+ "@context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.2/context.jsonld",
+ "errors":[
+
+ ],
+ "warnings":[
+
+ ],
+ "messages":[
+
+ ],
+ "collection":null,
+ "query":{
+ "@type" : "korap:reference",
+ "operands" : [
+ {
+ "@type" : "korap:span",
+ "key" : "s"
+ }
+ ],
+ "operation" : "operation:focus",
+ "spanRef" : [
+ 1,
+ 4
+ ]
+ },
+ "meta":{
+
+ }
+}
diff --git a/src/test/resources/queries/submatch3.jsonld b/src/test/resources/queries/submatch3.jsonld
new file mode 100644
index 0000000..6363de6
--- /dev/null
+++ b/src/test/resources/queries/submatch3.jsonld
@@ -0,0 +1,29 @@
+{
+ "@context":"http://ids-mannheim.de/ns/KorAP/json-ld/v0.2/context.jsonld",
+ "errors":[
+
+ ],
+ "warnings":[
+
+ ],
+ "messages":[
+
+ ],
+ "collection":null,
+ "query":{
+ "@type" : "korap:reference",
+ "operands" : [
+ {
+ "@type" : "korap:span",
+ "key" : "s"
+ }
+ ],
+ "operation" : "operation:focus",
+ "spanRef" : [
+ 1
+ ]
+ },
+ "meta":{
+
+ }
+}