diff --git a/data-model/digitalobjects/0.1.0/digital-media-objects/schema/digital-entity.json b/data-model/digitalobjects/0.1.0/digital-media-objects/schema/digital-entity.json index 5e66dff..cfd1804 100644 --- a/data-model/digitalobjects/0.1.0/digital-media-objects/schema/digital-entity.json +++ b/data-model/digitalobjects/0.1.0/digital-media-objects/schema/digital-entity.json @@ -157,6 +157,12 @@ "items": { "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/entity-relationships.json" } + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } }, "required": [ diff --git a/data-model/digitalobjects/0.1.0/digital-specimens/schema/digital-specimen.json b/data-model/digitalobjects/0.1.0/digital-specimens/schema/digital-specimen.json index 3602d52..7ea6316 100644 --- a/data-model/digitalobjects/0.1.0/digital-specimens/schema/digital-specimen.json +++ b/data-model/digitalobjects/0.1.0/digital-specimens/schema/digital-specimen.json @@ -25,6 +25,7 @@ "description": "The timestamp that the object version was created in DiSSCo", "format": "date-time", "examples": [ + "2023-10-02T12:31:34.806Z" ] }, "ods:type": { @@ -234,7 +235,7 @@ ] }, "???:recordedByAgent": { - "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json", + "$ref": "agent.json", "$comment": "Is this an option for the agent instead of adding a list?" }, "dwc:recordedById": { @@ -312,6 +313,12 @@ "items": { "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/digital-specimens/chronometric-age.json" } + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } }, "required": [ diff --git a/data-model/digitalobjects/0.1.0/digital-specimens/schema/events.json b/data-model/digitalobjects/0.1.0/digital-specimens/schema/events.json index 897748d..8e4e733 100644 --- a/data-model/digitalobjects/0.1.0/digital-specimens/schema/events.json +++ b/data-model/digitalobjects/0.1.0/digital-specimens/schema/events.json @@ -1,7 +1,7 @@ { "$id": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/digital-specimens/events.json", "$schema": "https://json-schema.org/draft/2020-12/schema", - "$comment":"DigitalObject Version 0.1.0", + "$comment": "DigitalObject Version 0.1.0", "type": "object", "properties": { "???:eventName": { @@ -97,6 +97,12 @@ }, "location": { "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/digital-specimens/location.json" + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } } } \ No newline at end of file diff --git a/data-model/digitalobjects/0.1.0/digital-specimens/schema/identifications.json b/data-model/digitalobjects/0.1.0/digital-specimens/schema/identifications.json index 981d894..1a88e2c 100644 --- a/data-model/digitalobjects/0.1.0/digital-specimens/schema/identifications.json +++ b/data-model/digitalobjects/0.1.0/digital-specimens/schema/identifications.json @@ -1,7 +1,7 @@ { "$id": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/digital-specimens/identifications.json", "$schema": "https://json-schema.org/draft/2020-12/schema", - "$comment":"DigitalObject Version 0.1.0", + "$comment": "DigitalObject Version 0.1.0", "type": "object", "properties": { "dwc:identificationID": { @@ -99,6 +99,12 @@ "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/citations.json" } }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } + }, "taxonIdentifications": { "type": "array", "items": { diff --git a/data-model/digitalobjects/0.1.0/digital-specimens/schema/location.json b/data-model/digitalobjects/0.1.0/digital-specimens/schema/location.json index 4a32f0a..6198d09 100644 --- a/data-model/digitalobjects/0.1.0/digital-specimens/schema/location.json +++ b/data-model/digitalobjects/0.1.0/digital-specimens/schema/location.json @@ -254,6 +254,12 @@ "???:preferredSpatialRepresentation": { "type": "string", "$comment": "Not part of DWC" + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } } }, diff --git a/data-model/digitalobjects/0.1.0/digital-specimens/schema/material-entity.json b/data-model/digitalobjects/0.1.0/digital-specimens/schema/material-entity.json index 1c90c8f..3bb6775 100644 --- a/data-model/digitalobjects/0.1.0/digital-specimens/schema/material-entity.json +++ b/data-model/digitalobjects/0.1.0/digital-specimens/schema/material-entity.json @@ -116,6 +116,12 @@ "items": { "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/digital-specimens/events.json" } + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } } } \ No newline at end of file diff --git a/data-model/digitalobjects/0.1.0/shared-models/schema/agent.json b/data-model/digitalobjects/0.1.0/shared-models/schema/agent.json index 7c2a6fa..404b204 100644 --- a/data-model/digitalobjects/0.1.0/shared-models/schema/agent.json +++ b/data-model/digitalobjects/0.1.0/shared-models/schema/agent.json @@ -6,35 +6,59 @@ "properties": { "agentRole": { "type": "string", + "description": "Indicates the role of the agent", "examples": [ - "collector" + "collector", + "preparer", + "identifier", + "recorder" ] }, "agentType": { "type": "string", + "description": "Indicates the type of agent", "examples": [ "machine", "human", "organisation" ] }, + "agentId":{ + "type": "string", + "description": "Primary identifier of the agent, additional identifiers can go in the identifiers array", + "examples": [ + "https://orcid.org/0000-0002-1825-0097" + ] + }, "agentName": { "type": "string", + "description": "Full name of the agent", "examples": [ "John Smith" ] }, "agentRoleBegan": { "type": "string", - "format": "date-time" + "description": "Date the agent began the role", + "examples": [ + "2023-10-02T12:31:34.806Z" + ] }, "agentRoleEnded": { "type": "string", - "format": "date-time" + "description": "Date the agent ended the role", + "examples": [ + "2023-09-02T12:31:34.806Z" + ] }, "agentRoleOrder": { "type": "integer", - "minimum": 0 + "description": "Order of the agent in the role. Can be used to indicate the order of importance", + "minimum": 1, + "examples": [ + 1, + 2 + ] }, "identifiers": { "type": "array", @@ -44,6 +68,7 @@ } }, "required": [ + "agentRole", "agentType", "agentName" ] diff --git a/data-model/digitalobjects/0.1.0/shared-models/schema/assertions.json b/data-model/digitalobjects/0.1.0/shared-models/schema/assertions.json index 3ead94f..bfd0169 100644 --- a/data-model/digitalobjects/0.1.0/shared-models/schema/assertions.json +++ b/data-model/digitalobjects/0.1.0/shared-models/schema/assertions.json @@ -36,6 +36,12 @@ }, "???:assertionRemarks": { "type": "string" + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } }, "required": [ diff --git a/data-model/digitalobjects/0.1.0/shared-models/schema/citations.json b/data-model/digitalobjects/0.1.0/shared-models/schema/citations.json index 770857d..25e99b7 100644 --- a/data-model/digitalobjects/0.1.0/shared-models/schema/citations.json +++ b/data-model/digitalobjects/0.1.0/shared-models/schema/citations.json @@ -56,6 +56,12 @@ "type": "boolean", "description": "Unclear yet", "$comment": "Unknown what this field should be" + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } } } \ No newline at end of file diff --git a/data-model/digitalobjects/0.1.0/shared-models/schema/entity-relationships.json b/data-model/digitalobjects/0.1.0/shared-models/schema/entity-relationships.json index c890b19..c6c5f7f 100644 --- a/data-model/digitalobjects/0.1.0/shared-models/schema/entity-relationships.json +++ b/data-model/digitalobjects/0.1.0/shared-models/schema/entity-relationships.json @@ -29,6 +29,12 @@ "type": "string", "description": "The PID of the creator, this could be a Orcid(user), PID(machine) or ROR(organisation)", "$comment": "Not available in GBIF UM" + }, + "agents": { + "type": "array", + "items": { + "$ref": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/shared-models/agent.json" + } } }, "required": [