Skip to content

Commit

Permalink
added test asssets
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jan 24, 2024
1 parent fea260b commit 4517e8a
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 0 deletions.
95 changes: 95 additions & 0 deletions 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"
}
]
}
]
}
95 changes: 95 additions & 0 deletions 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"
}
]
}
]
}

0 comments on commit 4517e8a

Please sign in to comment.