Unverified Commit 83aa088f authored by Karoly Erdos's avatar Karoly Erdos Committed by GitHub
Browse files

Merge pull request #26 from EMBL-EBI-SUBS/subs-1788_add_test_suite_for_ena_checklists

[SUBS-1788] Add tests for ENA sample checklists
parents a35a435f da5a563d
{
"name": "json-schema-validator",
"version": "1.5.5",
"version": "1.5.6",
"description": "A nodejs JSON schema validator.",
"main": "src/server.js",
"repository": "https://github.com/EMBL-EBI-SUBS/json-schema-validator.git",
......
{
"$schema" : "http://json-schema.org/draft-07/schema#",
"description" : "Minimum information required for the sample",
"type" : "object",
"title" : "ENA default sample checklist",
"$async" : true,
"author" : "ENA",
"properties" : {
"attributes" : {
"properties" : {
"serotype" : {
"description" : "serological variety of a species characterized by its antigenic properties",
"items" : {}
},
"tissue_type" : {
"description" : "tissue type from which the sample was obtained",
"items" : {}
},
"isolate" : {
"description" : "individual isolate from which the sample was obtained",
"items" : {}
},
"geographic location (country and/or sea)" : {
"description" : "The geographical origin of the sample as defined by the country or sea. Country or sea names should be chosen from the INSDC country list (http://insdc.org/country.html).",
"items" : {}
},
"sub_species" : {
"description" : "name of sub-species of organism from which sample was obtained",
"items" : {}
},
"isolation_source" : {
"items" : {},
"description" : "describes the physical, environmental and/or local geographical source of the biological sample from which the sample was derived"
},
"culture_collection" : {
"items" : {},
"description" : "institution code and identifier for the culture from which the sample was obtained, with optional collection code."
},
"collected_by" : {
"description" : "name of persons or institute who collected the specimen",
"items" : {}
},
"host scientific name" : {
"items" : {},
"description" : "Scientific name of the natural (as opposed to laboratory) host to the organism from which sample was obtained."
},
"strain" : {
"description" : "Name of the strain from which the sample was obtained.",
"items" : {}
},
"cell_line" : {
"items" : {},
"description" : "cell line from which the sample was obtained"
},
"lat_lon" : {
"description" : "geographical coordinates of the location where the specimen was collected",
"items" : {}
},
"variety" : {
"items" : {},
"description" : "variety (= varietas, a formal Linnaean rank) of organism from which sample was derived."
},
"geographic location (region and locality)" : {
"description" : "The geographical origin of the sample as defined by the specific region name followed by the locality name.",
"items" : {}
},
"specimen_voucher" : {
"items" : {},
"description" : "identifier for the specimen from which the sample was obtained"
},
"bio_material" : {
"description" : "identifier for the biological material from which the sample was obtained, with optional institution code and collection code for the place where it is currently stored.",
"items" : {}
},
"serovar" : {
"items" : {},
"description" : "serological variety of a species (usually a prokaryote) characterized by its antigenic properties"
},
"ecotype" : {
"items" : {},
"description" : "a population within a given species displaying genetically based, phenotypic traits that reflect adaptation to a local habitat."
},
"dev_stage" : {
"items" : {},
"description" : "if the sample was obtained from an organism in a specific developmental stage, it is specified with this qualifier"
},
"cell_type" : {
"description" : "cell type from which the sample was obtained",
"items" : {}
},
"collection_date" : {
"items" : {},
"description" : "date that the specimen was collected"
},
"tissue_lib" : {
"items" : {},
"description" : "tissue library from which sample was obtained"
},
"sub_strain" : {
"items" : {},
"description" : "name or identifier of a genetically or otherwise modified strain from which sample was obtained, derived from a parental strain (which should be annotated in the strain field; sub_strain from which sample was obtained"
},
"sex" : {
"items" : {},
"description" : "sex of the organism from which the sample was obtained"
},
"environmental_sample" : {
"description" : "identifies sequences derived by direct molecular isolation from a bulk environmental DNA sample (by PCR with or without subsequent cloning of the product, DGGE, or other anonymous methods) with no reliable identification of the source organism",
"items" : {}
},
"mating_type" : {
"description" : "mating type of the organism from which the sequence was obtained; mating type is used for prokaryotes, and for eukaryotes that undergo meiosis without sexually dimorphic gametes",
"items" : {}
},
"lab_host" : {
"items" : {},
"description" : "scientific name of the laboratory host used to propagate the source organism from which the sample was obtained"
},
"germline" : {
"description" : "the sample described presented in the entry has not undergone somatic genomic rearrangement as part of an adaptive immune response; it is the unrearranged molecule that was inherited from the parental germline",
"items" : {}
},
"identified_by" : {
"description" : "name of the expert who identified the specimen taxonomically",
"items" : {}
},
"cultivar" : {
"description" : "cultivar (cultivated variety) of plant from which sample was obtained",
"items" : {}
}
},
"required" : []
}
},
"$id" : "ERC000011",
"version" : "1.0.0",
"definitions" : {
"attribute" : {
"items" : {
"required" : [
"value"
],
"properties" : {
"value" : {
"type" : "string",
"minLength" : 1
},
"units" : {
"type" : "string",
"minLength" : 1
},
"terms" : {
"$ref" : "#/definitions/terms"
}
}
},
"minItems" : 1,
"type" : "array"
},
"terms" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"url" : {
"type" : "string",
"format" : "uri"
}
},
"required" : [
"url"
]
}
},
"properties" : {
"attributes" : {
"type" : "object",
"description" : "Attributes for describing a sample.",
"properties" : {},
"patternProperties" : {
"^.*$" : {
"$ref" : "#/definitions/attribute"
}
},
"required" : []
}
}
},
"required" : [
"attributes"
]
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment