Skip to content

Commit

Permalink
wip parcellation an region schema
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed May 23, 2024
1 parent bbdf636 commit b165091
Showing 4 changed files with 101 additions and 0 deletions.
24 changes: 24 additions & 0 deletions siibra/atlases/parcellation/v0.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"@type": {
"const": "siibra/atlases/parcellation/v0.1"
},
"regions": {
"type": "array",
"items": { "$ref": "urn:siibra-local:siibra/atlases/region/v0.1.json" }
},
"attributes": {
"type": "array",
"items": {
"$ref": "urn:siibra-local:siibra/attr/v0.1.json"
}
}
},
"required": [
"@type",
"regions"
],
"additionalProperties": false
}
23 changes: 23 additions & 0 deletions siibra/atlases/region/v0.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"@type": {
"const": "siibra/atlases/region/v0.1"
},
"children": {
"type": "array",
"items": { "$ref": "urn:siibra-local:siibra/atlases/region/v0.1.json" }
},
"attributes": {
"type": "array",
"items": {
"$ref": "urn:siibra-local:siibra/attr/v0.1.json"
}
}
},
"required": [
"@type"
],
"additionalProperties": false
}
27 changes: 27 additions & 0 deletions siibra/attr/desc/publication/v0.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"allOf": [
{
"$ref": "urn:siibra-local:siibra/attr/util/humanreadable/v0.1.json"
}
],
"properties": {
"@type": {
"const": "siibra/attr/desc/publication/v0.1"
},
"citation": {
"const": "string"
},
"attributes": {
"type": "array",
"items": {
"$ref": "urn:siibra-local:siibra/attr/v0.1.json"
}
}
},
"required": [
"@type",
"citation"
]
}
27 changes: 27 additions & 0 deletions siibra/attr/desc/url/v0.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"allOf": [
{
"$ref": "urn:siibra-local:siibra/attr/util/humanreadable/v0.1.json"
}
],
"properties": {
"@type": {
"const": "siibra/attr/desc/modality/v0.1"
},
"citation": {
"const": "string"
},
"attributes": {
"type": "array",
"items": {
"$ref": "urn:siibra-local:siibra/attr/v0.1.json"
}
}
},
"required": [
"@type",
"citation"
]
}

0 comments on commit b165091

Please sign in to comment.