Skip to content

Commit

Permalink
add datacite schema to list of schemas
Browse files Browse the repository at this point in the history
remove null from doi schema
  • Loading branch information
blankdots committed Oct 6, 2021
1 parent c8dccf4 commit 05a381d
Show file tree
Hide file tree
Showing 5 changed files with 693 additions and 42 deletions.
2 changes: 1 addition & 1 deletion metadata_backend/conf/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def create_db_client() -> AsyncIOMotorClient:

# 2) Load schema types and descriptions from json
# Default schemas will be ENA schemas
path_to_schema_file = Path(__file__).parent / "ena_schemas.json"
path_to_schema_file = Path(__file__).parent / "schemas.json"
with open(path_to_schema_file) as schema_file:
schema_types = ujson.load(schema_file)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,81 +1,101 @@
{"submission":
{ "priority": 1,
{
"submission": {
"priority": 1,
"description": {
"title": "Submission",
"detail": "A submission contains submission actions to be performed by the archive. A submission can add more objects to the archive, update already submitted objects or make objects publicly available.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/SRA.submission.xsd"
}
},
"provider": "ENA"
},
"study":
{ "priority": 2,
"study": {
"priority": 2,
"description": {
"title": "Study",
"detail": "A study groups together data submitted to the archive. A study accession is typically used when citing data submitted to ENA. Note that all associated data and other objects are made public when the study is released.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/SRA.study.xsd"
}
},
"provider": "ENA"
},
"project":
{ "priority": 3,
"project": {
"priority": 3,
"description": {
"title": "Project",
"detail": "A project groups together data submitted to the archive. A project accession is typically used when citing data submitted to ENA. Note that all associated data and other objects are made public when the project is released.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/ENA.project.xsd"
}
},
"provider": "ENA"
},
"sample":
{ "priority": 4,
"sample": {
"priority": 4,
"description": {
"title": "Sample",
"detail": "A sample contains information about the sequenced source material. Samples are typically associated with checklists, which define the fields used to annotate the samples.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/SRA.sample.xsd"
}
},
"provider": "ENA"
},
"experiment":
{ "priority": 5,
"experiment": {
"priority": 5,
"description": {
"title": "Experiment",
"detail": "An experiment contain information about a sequencing experiment including library and instrument details.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/SRA.experiment.xsd"
}
},
"provider": "ENA"
},
"run":
{ "priority": 6,
"run": {
"priority": 6,
"description": {
"title": "Run",
"detail": "A run is part of an experiment and refers to data files containing sequence reads.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/SRA.run.xsd"
}
},
"provider": "ENA"
},
"analysis":
{ "priority": 7,
"analysis": {
"priority": 7,
"description": {
"title": "Analysis",
"detail": "An analysis contains secondary analysis results derived from sequence reads (e.g. a genome assembly),",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/SRA.analysis.xsd"
}
},
"provider": "ENA"
},
"dac":
{ "priority": 8,
"dac": {
"priority": 8,
"description": {
"title": "DAC",
"detail": "An European Genome-phenome Archive (EGA) data access committee (DAC) is required for authorized access submissions.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/EGA.dac.xsd"
}
},
"provider": "ENA"
},
"policy":
{ "priority": 9,
"policy": {
"priority": 9,
"description": {
"title": "Policy",
"detail": "An European Genome-phenome Archive (EGA) data access policy is required for authorized access submissions.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/EGA.policy.xsd"
}
},
"provider": "ENA"
},
"dataset":
{ "priority": 10,
"dataset": {
"priority": 10,
"description": {
"title": "Dataset",
"detail": "An European Genome-phenome Archive (EGA) data set is required for authorized access submissions.",
"url": "https://github.com/enasequence/schema/blob/master/src/main/resources/uk/ac/ebi/ena/sra/schema/EGA.dataset.xsd"
}
},
"provider": "ENA"
},
"datacite": {
"priority": 11,
"description": {
"title": "Datacite DOI schema",
"detail": "Derived from the DataCite Metadata Schema whihc is a list of core metadata properties chosen for an accurate and consistent identification of a resource for citation and retrieval purposes, along with recommended use instructions. We only work with a subset of them for this schema.",
"url": "http://schema.datacite.org/"
},
"provider": "Datacite"
}
}
Loading

0 comments on commit 05a381d

Please sign in to comment.