From 4551318390e97a2af4b4680903b5d452e77c0a7f Mon Sep 17 00:00:00 2001 From: southeo Date: Mon, 9 Sep 2024 15:23:02 +0200 Subject: [PATCH] align tombstone request with tombstone metadata --- .../tombstone/1.0.0/tombstone-request.json | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 data-model/fdo-profile/tombstone/1.0.0/tombstone-request.json diff --git a/data-model/fdo-profile/tombstone/1.0.0/tombstone-request.json b/data-model/fdo-profile/tombstone/1.0.0/tombstone-request.json new file mode 100644 index 0000000..7b56f45 --- /dev/null +++ b/data-model/fdo-profile/tombstone/1.0.0/tombstone-request.json @@ -0,0 +1,73 @@ +{ + "$id": "https://schemas.dissco.tech/schemas/fdo-profile/tombstone/1.0.0/tombstone-request.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Schema for requests to tombstone resources to DiSSCo PID API", + "$comment": "FDO Profile Version 1.0.0", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "identifier of the object to be tombstoned", + "example": "20.5000.1025/LLN-YPG-4PX" + }, + "attributes": { + "type": "object", + "properties": { + "tombstoneText": { + "type": "string", + "description": "Free text describing why the object was tombstoned", + "$comment": "idx = 30" + }, + "hasRelatedPid": { + "type": "array", + "description": "The PIDs of the object the tombstoned object is related to", + "items": { + "type": "object", + "items": { + "type": "object", + "properties": { + "pid": { + "type": "string", + "description": "The PID of the related object", + "examples": [ + "https://doi.org/10.1234/abcd" + ] + }, + "relationshipType": { + "type": "string", + "description": "The type of relationship between the tombstoned object and the related object", + "examples": [ + "ods:relatedTo", + "ods:isDuplicateOf" + ] + } + }, + "additionalProperties": false + }, + "additionalProperties": false, + "required": [ + "tombstoneText" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tombstoneText" + ] + } + }, + "additionalProperties": false, + "required": [ + "id", + "attributes" + ] + } + }, + "additionalProperties": false, + "required": [ + "data" + ] +} \ No newline at end of file