From 4517e8a7b189378c8f05f44e98969fa5b6a855a0 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 24 Jan 2024 13:37:24 +0100 Subject: [PATCH] added test asssets --- tests/test2.annotationstore.stam.json | 95 +++++++++++++++++++++++++++ tests/test4.annotationstore.stam.json | 95 +++++++++++++++++++++++++++ 2 files changed, 190 insertions(+) create mode 100644 tests/test2.annotationstore.stam.json create mode 100644 tests/test4.annotationstore.stam.json diff --git a/tests/test2.annotationstore.stam.json b/tests/test2.annotationstore.stam.json new file mode 100644 index 0000000..168afe8 --- /dev/null +++ b/tests/test2.annotationstore.stam.json @@ -0,0 +1,95 @@ +{ + "@type": "AnnotationStore", + "resources": [ + { + "@type": "TextResource", + "@include": "hello.txt" + } + ], + "annotationsets": [ + { + "@type": "AnnotationDataSet", + "@id": "default", + "keys": [ + { + "@type": "DataKey", + "@id": "pos" + } + ], + "data": [ + { + "@type": "AnnotationData", + "@id": "!D0", + "key": "pos", + "value": { + "@type": "String", + "value": "interjection" + } + }, + { + "@type": "AnnotationData", + "@id": "!D1", + "key": "pos", + "value": { + "@type": "String", + "value": "noun" + } + } + ] + } + ], + "annotations": [ + { + "@type": "Annotation", + "@id": "!A0", + "target": { + "@type": "TextSelector", + "resource": "hello.txt", + "offset": { + "@type": "Offset", + "begin": { + "@type": "BeginAlignedCursor", + "value": 0 + }, + "end": { + "@type": "BeginAlignedCursor", + "value": 5 + } + } + }, + "data": [ + { + "@type": "AnnotationData", + "@id": "!D0", + "set": "default" + } + ] + }, + { + "@type": "Annotation", + "@id": "!A1", + "target": { + "@type": "TextSelector", + "resource": "hello.txt", + "offset": { + "@type": "Offset", + "begin": { + "@type": "BeginAlignedCursor", + "value": 6 + }, + "end": { + "@type": "BeginAlignedCursor", + "value": 11 + } + } + }, + "data": [ + { + "@type": "AnnotationData", + "@id": "!D1", + "set": "default" + } + ] + } + ] +} \ No newline at end of file diff --git a/tests/test4.annotationstore.stam.json b/tests/test4.annotationstore.stam.json new file mode 100644 index 0000000..dc719e7 --- /dev/null +++ b/tests/test4.annotationstore.stam.json @@ -0,0 +1,95 @@ +{ + "@type": "AnnotationStore", + "resources": [ + { + "@type": "TextResource", + "@include": "hello2.txt" + } + ], + "annotationsets": [ + { + "@type": "AnnotationDataSet", + "@id": "default", + "keys": [ + { + "@type": "DataKey", + "@id": "pos" + } + ], + "data": [ + { + "@type": "AnnotationData", + "@id": "!D0", + "key": "pos", + "value": { + "@type": "String", + "value": "interjection" + } + }, + { + "@type": "AnnotationData", + "@id": "!D1", + "key": "pos", + "value": { + "@type": "String", + "value": "noun" + } + } + ] + } + ], + "annotations": [ + { + "@type": "Annotation", + "@id": "!A0", + "target": { + "@type": "TextSelector", + "resource": "hello2.txt", + "offset": { + "@type": "Offset", + "begin": { + "@type": "BeginAlignedCursor", + "value": 0 + }, + "end": { + "@type": "BeginAlignedCursor", + "value": 5 + } + } + }, + "data": [ + { + "@type": "AnnotationData", + "@id": "!D0", + "set": "default" + } + ] + }, + { + "@type": "Annotation", + "@id": "!A1", + "target": { + "@type": "TextSelector", + "resource": "hello2.txt", + "offset": { + "@type": "Offset", + "begin": { + "@type": "BeginAlignedCursor", + "value": 6 + }, + "end": { + "@type": "BeginAlignedCursor", + "value": 11 + } + } + }, + "data": [ + { + "@type": "AnnotationData", + "@id": "!D1", + "set": "default" + } + ] + } + ] +} \ No newline at end of file