Skip to content

Commit

Permalink
chore: 🔨 update db for datacite v4.5
Browse files Browse the repository at this point in the history
megasanjay committed Feb 27, 2024
1 parent c34e97c commit cf435e4
Showing 4 changed files with 27 additions and 121 deletions.
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
"bradlc.vscode-tailwindcss",
"austenc.tailwind-docs",
"kamikillerto.vscode-colorize",
"wix.vscode-import-cost",
"DavidAnson.vscode-markdownlint",
"csstools.postcss"
]
81 changes: 19 additions & 62 deletions mermaid/mmd/dataset-metadata-er.mmd
Original file line number Diff line number Diff line change
@@ -40,12 +40,6 @@ erDiagram
timestamp created_at
}

DATASET_RECORD_KEYS {
string dataset_id PK,FK "DATASET.id"
string keys_type "NULLABLE"
string keys_details
}

DATASET_DE_IDENT_LEVEL {
string dataset_id PK,FK "DATASET.id"
string type "NULLABLE"
@@ -119,68 +113,39 @@ erDiagram
timestamp created_at
}

DATASET_PUBLISHER {
string dataset_id PK,FK "DATASET.id"
string publisher
string identifier
string identifier_scheme
string scheme_uri
}

DATASET_OTHER {
string dataset_id PK,FK "DATASET.id"
string resource_type
string language "NULLABLE"
string managing_organization_name
string managing_organization_ror_id
string publisher
string standards_followed "Used for the README file"
string acknowledgement "Used for the README file"
string[] size
string[] format
}

DATASET_RELATED_ITEM {
DATASET_RELATED_IDENTIFIER {
string id PK "UUIDv4"
string dataset_id FK "DATASET.id"
string type "NULLABLE"
string relation_type "NULLABLE"
timestamp created_at
}

DATASET_RELATED_ITEM_IDENTIFIER {
string id PK "UUIDv4"
string related_item_id FK "DATASET_RELATED_ITEM.id"
string identifier
string type "NULLABLE"
string metadata_scheme
string scheme_uri
string scheme_type
timestamp created_at
}

DATASET_RELATED_ITEM_CONTRIBUTOR {
string id PK "UUIDv4"
string related_item_id FK "DATASET_RELATED_ITEM.id"
string name
string name_type "NULLABLE"
boolean creator "true if creator, false if contributor"
string contributor_type "NULLABLE | required if contributor"
timestamp created_at
}

DATASET_RELATED_ITEM_TITLE {
string id PK "UUIDv4"
string related_item_id FK "DATASET_RELATED_ITEM.id"
string title
string type "NULLABLE"
string identifier_type "NULLABLE"
string relation_type "NULLABLE"
string related_metadata_scheme
string scheme_uri
string scheme_type
string resource_type "NULLABLE"
timestamp created_at
}

DATASET_RELATED_ITEM_OTHER {
string related_item_id PK,FK "DATASET_RELATED_ITEM.id"
timestamp publication_year "NULLABLE"
string volume
string issue
string number_value
string number_type "NULLABLE"
string first_page
string last_page
string publisher
string edition
}

DATASET_HEALTHSHEET {
string id PK "UUIDv4"
string dataset_id FK "DATASET.id"
@@ -198,23 +163,15 @@ erDiagram
DATASET_DESCRIPTION }o--|| DATASET : "has description"
DATASET_CONTRIBUTOR }o--|| DATASET : "has contributor"
DATASET_DATE }o--|| DATASET : "has date"
DATASET_RECORD_KEYS ||--|| DATASET : "has record key"
DATASET_DE_IDENT_LEVEL ||--|| DATASET : "has deidentification level"
DATASET_CONSENT ||--|| DATASET : "has consent"

DATASET ||--o{ DATASET_SUBJECT : "has subject"
DATASET ||--|| DATASET_ACCESS : "has access"
DATASET ||--o{ DATASET_RIGHTS : "has rights"
DATASET ||--o{ DATASET_FUNDER : "has funder"
DATASET ||--o{ DATASET_RELATED_IDENTIFIER : "has related identifiers"
DATASET ||--|| DATASET_PUBLISHER : "has publisher"
DATASET ||--|| DATASET_OTHER : "has other details"
DATASET ||--o{ DATASET_RELATED_ITEM : "has related item"

DATASET_HEALTHSHEET ||--|| DATASET : "has healthsheet"

DATASET_RELATED_ITEM ||--o{ DATASET_RELATED_ITEM_IDENTIFIER : "has identifier"
DATASET_RELATED_ITEM ||--o{ DATASET_RELATED_ITEM_CONTRIBUTOR : "has contributor"
DATASET_RELATED_ITEM ||--o{ DATASET_RELATED_ITEM_TITLE : "has title"
DATASET_RELATED_ITEM ||--|| DATASET_RELATED_ITEM_OTHER : "has other details"



DATASET_HEALTHSHEET ||--|| DATASET : "has healthsheet"
2 changes: 1 addition & 1 deletion mermaid/svg/dataset-metadata-er.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 7 additions & 57 deletions src/assets/data/form.json
Original file line number Diff line number Diff line change
@@ -145,16 +145,6 @@
"value": "Methods",
"disabled": false
},
{
"label": "Series Information",
"value": "SeriesInformation",
"disabled": false
},
{
"label": "Table of Contents",
"value": "TableOfContents",
"disabled": false
},
{
"label": "Technical Info",
"value": "TechnicalInfo",
@@ -455,34 +445,7 @@
"description": "From PubMed, an 'investigator' is an individual (e.g., collaborator or investigator) who is not an author of a paper but is listed as a member of a collective/corporate group that is an author of the paper."
}
],
"datasetRecordKeysTypeOptions": [
{
"label": "Not Known",
"value": "NotKnown",
"description": "No clear information available about the record keys in use."
},
{
"label": "Anonymised",
"value": "Anonymised",
"description": "Data controller or manager describes dataset as `anonymised`, in their interpretation of the term."
},
{
"label": "Pseudonymised",
"value": "Pseudonymised",
"description": "Data controller or manager describes dataset as `pseudonymised`, in their interpretation of the term."
},
{
"label": "Identifiable",
"value": "Identifiable",
"description": "Data controller or manager describes dataset as `identifiable`, in their interpretation of the term."
}
],
"datasetDeIdentTypeOptions": [
{
"label": "Not Known",
"value": "NotKnown",
"description": "No clear information available about the de-identification, if any, applied to the data."
},
{
"label": "No De-identification",
"value": "NoDeIdentification",
@@ -500,11 +463,6 @@
}
],
"datasetConsentTypeOptions": [
{
"label": "Not Known",
"value": "NotKnown",
"description": "No clear information available about consent for secondary use, or if any exists."
},
{
"label": "No Explicit Consent",
"value": "NoExplicitConsent",
@@ -747,7 +705,7 @@
"description": "If selected, supply a value for ResourceType."
}
],
"datasetRelatedItemRelationTypeOptions": [
"datasetRelatedIdentifierRelationTypeOptions": [
{
"label": "IsCitedBy",
"value": "IsCitedBy",
@@ -917,24 +875,16 @@
"label": "IsObsoletedBy",
"value": "IsObsoletedBy",
"description": "Indicates A is replaced by B"
}
],
"datasetRelatedItemNumberTypeOptions": [
{
"label": "Article",
"value": "Article"
},
{
"label": "Chapter",
"value": "Chapter"
},
{
"label": "Report",
"value": "Report"
"const": "IsCollectedBy",
"value": "IsCollectedBy",
"description": "Indicates A is collected by B"
},
{
"label": "Other",
"value": "Other"
"const": "Collects",
"value": "Collects",
"description": "Indicates A collects B"
}
],
"studyMetadataIdentificationPrimaryIdentifierTypeOptions": [

0 comments on commit cf435e4

Please sign in to comment.