From 9893a7f8b2d6789f294769b859a652d4e4906eee Mon Sep 17 00:00:00 2001 From: southeo Date: Mon, 5 Feb 2024 14:15:05 +0100 Subject: [PATCH] annotation-event.json --- data-model/Dockerfile | 3 +- .../0.1.0/schema/annotation-event.json | 37 +++++++++++++++++++ ..._for_mas.json => annotations-for-mas.json} | 1 + 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 data-model/annotations/0.1.0/schema/annotation-event.json rename data-model/annotations/0.1.0/schema/{annotations_for_mas.json => annotations-for-mas.json} (98%) diff --git a/data-model/Dockerfile b/data-model/Dockerfile index d95041e..a07f1da 100644 --- a/data-model/Dockerfile +++ b/data-model/Dockerfile @@ -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/ diff --git a/data-model/annotations/0.1.0/schema/annotation-event.json b/data-model/annotations/0.1.0/schema/annotation-event.json new file mode 100644 index 0000000..4ae0b11 --- /dev/null +++ b/data-model/annotations/0.1.0/schema/annotation-event.json @@ -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" + ] + } +} \ No newline at end of file diff --git a/data-model/annotations/0.1.0/schema/annotations_for_mas.json b/data-model/annotations/0.1.0/schema/annotations-for-mas.json similarity index 98% rename from data-model/annotations/0.1.0/schema/annotations_for_mas.json rename to data-model/annotations/0.1.0/schema/annotations-for-mas.json index aa069ef..f38a554 100644 --- a/data-model/annotations/0.1.0/schema/annotations_for_mas.json +++ b/data-model/annotations/0.1.0/schema/annotations-for-mas.json @@ -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": {