Skip to content

Commit

Permalink
add study and dataset identifiers to folder schema
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Jan 11, 2022
1 parent 1abccca commit 308b958
Showing 1 changed file with 73 additions and 16 deletions.
89 changes: 73 additions & 16 deletions metadata_backend/helpers/schemas/folders.json
Original file line number Diff line number Diff line change
Expand Up @@ -928,21 +928,86 @@
"type": "object",
"title": "The extra DOI info schema",
"properties": {
"identifier": {
"studyIdentifier": {
"type": "object",
"title": "identifier object",
"required": [
"identifierType",
"doi"
"accessionId",
"identifier",
"url"
],
"properties": {
"identifierType": {
"identifier": {
"type": "object",
"title": "identifier object",
"required": [
"identifierType",
"doi"
],
"properties": {
"identifierType": {
"type": "string",
"title": "Type of identifier (= DOI)"
},
"doi": {
"type": "string",
"title": "A persistent identifier for a resource"
}
}
},
"accessionId": {
"type": "string",
"title": "Type of identifier (= DOI)"
"title": "Internal accessionId for the study"
},
"doi": {
"url": {
"type": "string",
"title": "A persistent identifier for a resource"
"title": "URL of the digital location of the object"
},
"types": {
"type": "object",
"title": "Type info of the resource. Multiple types can be listed: ResourceTypeGeneral, schemaOrg etc."
}
}
},
"datasetIdentifiers": {
"type": "array",
"items": {
"type": "object",
"required": [
"accessionId",
"identifier",
"url"
],
"properties": {
"identifier": {
"type": "object",
"title": "identifier object",
"required": [
"identifierType",
"doi"
],
"properties": {
"identifierType": {
"type": "string",
"title": "Type of identifier (= DOI)"
},
"doi": {
"type": "string",
"title": "A persistent identifier for a resource"
}
}
},
"accessionId": {
"type": "string",
"title": "Internal accessionid for the dataset"
},
"url": {
"type": "string",
"title": "URL of the digital location of the object"
},
"types": {
"type": "object",
"title": "Type info of the resource. Multiple types can be listed: ResourceTypeGeneral, schemaOrg etc."
}
}
}
},
Expand All @@ -954,14 +1019,6 @@
"type": "integer",
"title": "Publication Year"
},
"types": {
"type": "object",
"title": "Type info of the resource. Multiple types can be listed: ResourceTypeGeneral, schemaOrg etc."
},
"url": {
"type": "string",
"title": "URL of the digital location of the object"
},
"version": {
"type": "string",
"title": "Version number of the resource"
Expand Down

0 comments on commit 308b958

Please sign in to comment.