Skip to content

Commit

Permalink
data export request
Browse files Browse the repository at this point in the history
  • Loading branch information
southeo committed Oct 29, 2024
1 parent 5452d62 commit e08c343
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data-model/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ COPY developer-schema/annotation/0.3.0/schema schema-root/schemas/developer-sche
COPY developer-schema/data-mapping/0.3.0/schema schema-root/schemas/developer-schema/data-mapping/0.3.0
COPY developer-schema/machine-annotation-service/0.3.0/schema schema-root/schemas/developer-schema/machine-annotation-service/0.3.0
COPY developer-schema/source-system/0.3.0/schema schema-root/schemas/developer-schema/source-system/0.3.0
COPY developer-schema/data-export/0.3.0/schema schema-root/schemas/developer-schema/data-export/0.3.0

# Latest Developer schemas
COPY developer-schema/annotation/0.3.0/schema schema-root/schemas/developer-schema/annotation/latest
COPY developer-schema/data-mapping/0.3.0/schema schema-root/schemas/developer-schema/data-mapping/latest
COPY developer-schema/machine-annotation-service/0.3.0/schema schema-root/schemas/developer-schema/machine-annotation-service/latest
COPY developer-schema/source-system/0.3.0/schema schema-root/schemas/developer-schema/source-system/latest
COPY developer-schema/data-export/0.3.0/schema schema-root/schemas/developer-schema/data-export/latest

# Versioned internal schemas
COPY internal-schema/annotation/0.1.0/schema schema-root/schemas/internal-schema/annotation/0.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"data": {
"type": "export-job",
"attributes": {
"searchParams": [
{
"inputField": "$['ods:organisationID']",
"inputValue": "https://ror.org/0566bfb96"
}
],
"targetType": "https://doi.org/21.T11148/894b1e6cad57e921764e",
"exportType": "DOI_LIST"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$id": "https://schemas.dissco.tech/schemas/developer-schema/export-job/1.0.0/export-job-request.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$comment": "Annotation Version 0.3.0",
"title": "Export job request",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "export-job"
},
"attributes": {
"type": "object",
"properties": {
"searchParams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"inputField": {
"type": "string",
"description": "JsonPath (mixed notation) of field used to base annotation reasoning on. Indexes must be wildcards",
"examples": [
"digitalSpecimenWrapper.occurrences[*].location.dwc:country"
]
},
"inputValue": {
"type": "string",
"description": "Value of the field indicated above",
"examples": [
"United Kingdom"
]
}
},
"additionalProperties": false
}
},
"targetType": {
"description": "FDO type of the objects whose data is being exported",
"type": "string",
"enum": [
"https://doi.org/21.T11148/894b1e6cad57e921764e",
"https://doi.org/21.T11148/bbad8c4e101e8af01115"
]
},
"exportType": {
"type": "string",
"enum": [
"DOI_LIST"
],
"description": "Type of export job. Currently, only one kind of job is supported"
}
},
"additionalProperties": false,
"required": [
"searchParams",
"targetType",
"exportType"
]
}
},
"required": [
"type",
"attributes"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"additionalProperties": false
}

0 comments on commit e08c343

Please sign in to comment.