Commit 96b2c898 authored by Pinar Alper's avatar Pinar Alper
Browse files

core and partner schema added

parent b0744c88
{
"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"
}
}
}
}
{
"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}$"
}
}
}
}
}
}
Supports Markdown
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