Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
metadata-tools
Commits
96b2c898
Commit
96b2c898
authored
Nov 11, 2019
by
Pinar Alper
Browse files
core and partner schema added
parent
b0744c88
Changes
2
Hide whitespace changes
Inline
Side-by-side
metadata_tools/resources/elu-core.json
0 → 100644
View file @
96b2c898
{
"description"
:
"ELIXIR Luxembourg Core json schema"
,
"schema"
:
{
"title"
:
"Schema containing core attributes for any json serialisable ELIXIR Luxembourg record."
,
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"required"
:
[
"source"
,
"id_at_source"
,
"name"
],
"properties"
:
{
"source"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"id_at_source"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
},
"elu_accession"
:
{
"type"
:
"string"
},
"acronym"
:
{
"type"
:
"string"
}
}
}
}
metadata_tools/resources/elu-partners.json
0 → 100644
View file @
96b2c898
{
"description"
:
"ELIXIR Luxembourg Partners"
,
"schema"
:
{
"title"
:
"A JSON Schema for describing partners institutes."
,
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/elu:partner"
},
"definitions"
:
{
"elu:partner"
:
{
"type"
:
"object"
,
"allOf"
:
[
{
"$ref"
:
"https://git-r3lab.uni.lu/pinar.alper/metadata-tools/raw/master/metadata_tools/resources/elu-core.json"
}
],
"properties"
:
{
"is_clinical"
:
{
"type"
:
"boolean"
},
"geo_category"
:
{
"type"
:
"string"
,
"enum"
:
[
"National"
,
"EU"
,
"Non-EU"
,
"International"
]
},
"sectory_category"
:
{
"type"
:
"string"
,
"enum"
:
[
"Public"
,
"Private Non-Profit"
,
"Private For-Profit"
]
},
"address"
:
{
"type"
:
"string"
},
"country_code"
:{
"title"
:
"ISO 3166-1 Alpha-2 Country code"
,
"type"
:
"string"
,
"pattern"
:
"^[A-Z]{2}$"
}
}
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment