Skip to content

Commit

Permalink
Regenerate schema artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Aug 30, 2024
1 parent 311eb62 commit 88975ae
Show file tree
Hide file tree
Showing 12 changed files with 563 additions and 498 deletions.
Binary file modified project/excel/gocam.xlsx
Binary file not shown.
9 changes: 8 additions & 1 deletion project/gocam.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto generated from gocam.yaml by pythongen.py version: 0.0.1
# Generation date: 2024-08-28T17:21:26
# Generation date: 2024-08-30T10:47:21
# Schema: gocam
#
# id: https://w3id.org/gocam
Expand Down Expand Up @@ -212,6 +212,7 @@ class Activity(YAMLRoot):
occurs_in: Optional[Union[dict, "CellularAnatomicalEntityAssociation"]] = None
part_of: Optional[Union[dict, "BiologicalProcessAssociation"]] = None
has_direct_input: Optional[Union[dict, "MoleculeAssociation"]] = None
has_direct_output: Optional[Union[dict, "MoleculeAssociation"]] = None
causal_associations: Optional[Union[Union[dict, "CausalAssociation"], List[Union[dict, "CausalAssociation"]]]] = empty_list()
provenances: Optional[Union[Union[dict, "ProvenanceInfo"], List[Union[dict, "ProvenanceInfo"]]]] = empty_list()

Expand All @@ -236,6 +237,9 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self.has_direct_input is not None and not isinstance(self.has_direct_input, MoleculeAssociation):
self.has_direct_input = MoleculeAssociation(**as_dict(self.has_direct_input))

if self.has_direct_output is not None and not isinstance(self.has_direct_output, MoleculeAssociation):
self.has_direct_output = MoleculeAssociation(**as_dict(self.has_direct_output))

if not isinstance(self.causal_associations, list):
self.causal_associations = [self.causal_associations] if self.causal_associations is not None else []
self.causal_associations = [v if isinstance(v, CausalAssociation) else CausalAssociation(**as_dict(v)) for v in self.causal_associations]
Expand Down Expand Up @@ -1175,6 +1179,9 @@ class slots:
slots.activity__has_direct_input = Slot(uri=GOCAM.has_direct_input, name="activity__has_direct_input", curie=GOCAM.curie('has_direct_input'),
model_uri=GOCAM.activity__has_direct_input, domain=None, range=Optional[Union[dict, MoleculeAssociation]])

slots.activity__has_direct_output = Slot(uri=GOCAM.has_direct_output, name="activity__has_direct_output", curie=GOCAM.curie('has_direct_output'),
model_uri=GOCAM.activity__has_direct_output, domain=None, range=Optional[Union[dict, MoleculeAssociation]])

slots.activity__causal_associations = Slot(uri=GOCAM.causal_associations, name="activity__causal_associations", curie=GOCAM.curie('causal_associations'),
model_uri=GOCAM.activity__causal_associations, domain=None, range=Optional[Union[Union[dict, CausalAssociation], List[Union[dict, CausalAssociation]]]])

Expand Down
1 change: 1 addition & 0 deletions project/graphql/gocam.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type Activity
occursIn: CellularAnatomicalEntityAssociation
partOf: BiologicalProcessAssociation
hasDirectInput: MoleculeAssociation
hasDirectOutput: MoleculeAssociation
causalAssociations: [CausalAssociation]
provenances: [ProvenanceInfo]
}
Expand Down
6 changes: 5 additions & 1 deletion project/jsonld/gocam.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2024-08-28T17:21:26",
"generation_date": "2024-08-30T10:47:20",
"source": "gocam.yaml"
},
"@context": {
Expand Down Expand Up @@ -63,6 +63,10 @@
"@type": "@id",
"@id": "has_direct_input"
},
"has_direct_output": {
"@type": "@id",
"@id": "has_direct_output"
},
"id": "@id",
"molecular_function": {
"@type": "@id",
Expand Down
28 changes: 25 additions & 3 deletions project/jsonld/gocam.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,20 @@
"inlined": true,
"@type": "SlotDefinition"
},
{
"name": "activity__has_direct_output",
"description": "The output molecules that are directly produced by the activity",
"from_schema": "https://w3id.org/gocam",
"slot_uri": "https://w3id.org/gocam/has_direct_output",
"alias": "has_direct_output",
"owner": "Activity",
"domain_of": [
"Activity"
],
"range": "MoleculeAssociation",
"inlined": true,
"@type": "SlotDefinition"
},
{
"name": "activity__causal_associations",
"description": "The causal associations that connect this activity to other activities",
Expand Down Expand Up @@ -1374,6 +1388,7 @@
"activity__occurs_in",
"activity__part_of",
"activity__has_direct_input",
"activity__has_direct_output",
"activity__causal_associations",
"activity__provenances"
],
Expand Down Expand Up @@ -1427,6 +1442,13 @@
"inlined": true,
"@type": "SlotDefinition"
},
{
"name": "has_direct_output",
"description": "The output molecules that are directly produced by the activity",
"range": "MoleculeAssociation",
"inlined": true,
"@type": "SlotDefinition"
},
{
"name": "causal_associations",
"description": "The causal associations that connect this activity to other activities",
Expand Down Expand Up @@ -2138,9 +2160,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "gocam.yaml",
"source_file_date": "2024-08-28T16:22:21",
"source_file_size": 13188,
"generation_date": "2024-08-28T17:21:26",
"source_file_date": "2024-08-29T14:40:00",
"source_file_size": 13355,
"generation_date": "2024-08-30T10:47:20",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/gocam.context.jsonld",
Expand Down
4 changes: 4 additions & 0 deletions project/jsonschema/gocam.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"$ref": "#/$defs/MoleculeAssociation",
"description": "The input molecules that are directly consumed by the activity"
},
"has_direct_output": {
"$ref": "#/$defs/MoleculeAssociation",
"description": "The output molecules that are directly produced by the activity"
},
"id": {
"description": "Identifier of the activity unit. Should be in gocam namespace.",
"type": "string"
Expand Down
Loading

0 comments on commit 88975ae

Please sign in to comment.