Skip to content

Commit

Permalink
annotation-event.json
Browse files Browse the repository at this point in the history
  • Loading branch information
southeo committed Feb 5, 2024
1 parent 69fe215 commit 9893a7f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data-model/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM nginxinc/nginx-unprivileged:alpine3.18-slim
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf

COPY ./annotations/0.1.0/schema/annotations.json schema-root/schemas/annotations/0.1.0/annotation.json
COPY ./annotations/0.1.0/schema/annotations_for_mas.json schema-root/schemas/annotations/0.1.0/annotation_for_mas.json
COPY ./annotations/0.1.0/schema/annotations-for-mas.json schema-root/schemas/annotations/0.1.0/annotation-for-mas.json
COPY ./annotations/0.1.0/schema/annotation-event.json schema-root/schemas/annotations/0.1.0/annotation-event.json

COPY ./fdo-profiles/0.1.0/annotation/schema/ schema-root/schemas/fdo-profiles/0.1.0/
COPY ./fdo-profiles/0.1.0/digital-specimen/schema/ schema-root/schemas/fdo-profiles/0.1.0/
Expand Down
37 changes: 37 additions & 0 deletions data-model/annotations/0.1.0/schema/annotation-event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schemas.dissco.tech/schemas/annotations/0.1.0/annotation-event.json",
"description": "Object sent to annotation processing service",
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "https://schemas.dissco.tech/schemas/annotations/0.1.0/annotations-for-mas.json"
}
},
"jobId": {
"type": "string"
},
"batchMetadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"placeInBatch": {
"type": "number"
},
"inputField": {
"type": "string"
},
"inputValue": {
"type": "string"
}
}
}
},
"required": [
"annotations",
"jobId"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schemas.dissco.tech/schemas/annotations/0.1.0/annotations-for-mas.json",
"type": "object",
"description": "Schema specific to Machine Annotation Services providing information to DiSSCo.",
"properties": {
Expand Down

0 comments on commit 9893a7f

Please sign in to comment.