Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jul 30, 2024
1 parent 0a5a32a commit 20261bc
Showing 1 changed file with 129 additions and 61 deletions.
190 changes: 129 additions & 61 deletions mira/metamodel/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,126 @@
"outcome"
]
},
"MultiConversion": {
"title": "MultiConversion",
"description": "Specifies a conversion process of multiple subjects and outcomes.",
"type": "object",
"properties": {
"rate_law": {
"title": "Rate Law",
"description": "The rate law for the template.",
"type": "string",
"example": "2*x"
},
"name": {
"title": "Name",
"description": "The name of the template.",
"type": "string"
},
"display_name": {
"title": "Display Name",
"description": "The display name of the template.",
"type": "string"
},
"type": {
"title": "Type",
"default": "MultiConversion",
"const": "MultiConversion",
"enum": [
"MultiConversion"
],
"type": "string"
},
"subjects": {
"title": "Subjects",
"description": "The subjects of the conversion.",
"type": "array",
"items": {
"$ref": "#/definitions/Concept"
}
},
"outcomes": {
"title": "Outcomes",
"description": "The outcomes of the conversion.",
"type": "array",
"items": {
"$ref": "#/definitions/Concept"
}
},
"provenance": {
"title": "Provenance",
"description": "The provenance of the conversion.",
"type": "array",
"items": {
"$ref": "#/definitions/Provenance"
}
}
},
"required": [
"subjects",
"outcomes"
]
},
"ReversibleFlux": {
"title": "ReversibleFlux",
"description": "Specifies a reversible flux between a left and right side.",
"type": "object",
"properties": {
"rate_law": {
"title": "Rate Law",
"description": "The rate law for the template.",
"type": "string",
"example": "2*x"
},
"name": {
"title": "Name",
"description": "The name of the template.",
"type": "string"
},
"display_name": {
"title": "Display Name",
"description": "The display name of the template.",
"type": "string"
},
"type": {
"title": "Type",
"default": "ReversibleFlux",
"const": "ReversibleFlux",
"enum": [
"ReversibleFlux"
],
"type": "string"
},
"left": {
"title": "Left",
"description": "The left hand side of the flux.",
"type": "array",
"items": {
"$ref": "#/definitions/Concept"
}
},
"right": {
"title": "Right",
"description": "The right hand side of the flux.",
"type": "array",
"items": {
"$ref": "#/definitions/Concept"
}
},
"provenance": {
"title": "Provenance",
"description": "The provenance of the flux.",
"type": "array",
"items": {
"$ref": "#/definitions/Provenance"
}
}
},
"required": [
"left",
"right"
]
},
"NaturalProduction": {
"title": "NaturalProduction",
"description": "A template for the production of a species at a constant rate.",
Expand Down Expand Up @@ -819,66 +939,6 @@
"subject"
]
},
"GroupedNaturalConversion": {
"title": "GroupedNaturalConversion",
"description": "Specifies a process of multiple subjects and outcomes.",
"type": "object",
"properties": {
"rate_law": {
"title": "Rate Law",
"description": "The rate law for the template.",
"type": "string",
"example": "2*x"
},
"name": {
"title": "Name",
"description": "The name of the template.",
"type": "string"
},
"display_name": {
"title": "Display Name",
"description": "The display name of the template.",
"type": "string"
},
"type": {
"title": "Type",
"default": "GroupedNaturalConversion",
"const": "GroupedNaturalConversion",
"enum": [
"GroupedNaturalConversion"
],
"type": "string"
},
"subjects": {
"title": "Subjects",
"description": "The subject of the conversion.",
"type": "array",
"items": {
"$ref": "#/definitions/Concept"
}
},
"outcomes": {
"title": "Outcomes",
"description": "The outcome of the conversion.",
"type": "array",
"items": {
"$ref": "#/definitions/Concept"
}
},
"provenance": {
"title": "Provenance",
"description": "The provenance of the production.",
"type": "array",
"items": {
"$ref": "#/definitions/Provenance"
}
}
},
"required": [
"subjects",
"outcomes"
]
},
"Distribution": {
"title": "Distribution",
"description": "A distribution of values for a parameter.",
Expand Down Expand Up @@ -1237,6 +1297,7 @@
"propertyName": "type",
"mapping": {
"NaturalConversion": "#/definitions/NaturalConversion",
"MultiConversion": "#/definitions/MultiConversion",
"ControlledConversion": "#/definitions/ControlledConversion",
"NaturalDegradation": "#/definitions/NaturalDegradation",
"ControlledDegradation": "#/definitions/ControlledDegradation",
Expand All @@ -1247,13 +1308,17 @@
"GroupedControlledProduction": "#/definitions/GroupedControlledProduction",
"NaturalReplication": "#/definitions/NaturalReplication",
"ControlledReplication": "#/definitions/ControlledReplication",
"StaticConcept": "#/definitions/StaticConcept"
"StaticConcept": "#/definitions/StaticConcept",
"ReversibleFlux": "#/definitions/ReversibleFlux"
}
},
"oneOf": [
{
"$ref": "#/definitions/NaturalConversion"
},
{
"$ref": "#/definitions/MultiConversion"
},
{
"$ref": "#/definitions/ControlledConversion"
},
Expand Down Expand Up @@ -1286,6 +1351,9 @@
},
{
"$ref": "#/definitions/StaticConcept"
},
{
"$ref": "#/definitions/ReversibleFlux"
}
]
}
Expand Down

0 comments on commit 20261bc

Please sign in to comment.