Skip to content

Commit

Permalink
inline list representation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Sep 16, 2024
1 parent 9175d5f commit 1d76ba8
Show file tree
Hide file tree
Showing 36 changed files with 200,838 additions and 1,618 deletions.
17,117 changes: 16,988 additions & 129 deletions build/BICAN_schema.yaml

Large diffs are not rendered by default.

17,117 changes: 16,988 additions & 129 deletions build/CAP_schema.yaml

Large diffs are not rendered by default.

17,031 changes: 16,996 additions & 35 deletions build/general_schema.yaml

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions project.Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Add your own custom Makefile targets here
#
# make build : generates dataclasses and merged schemas
# make build : generates dataclasses and merged & expanded schemas
# make gendoc : generates documentation
# make gen-project : generates project folder contents

Expand All @@ -10,20 +10,27 @@ BUILD_FOLDER = build
DOCDIR_BICAN = $(DOCDIR)/bican
DOCDIR_CAP = $(DOCDIR)/cap

.PHONY: merged_schemas classes build
SCHEMA_EXPANDER := src/cell_annotation_schema/schema_expander.py

.PHONY: expanded_schemas merged_schemas classes build

merged_schemas:
cp $(SCHEMA_FOLDER)/cell_annotation_schema.yaml $(BUILD_FOLDER)/general_schema.yaml
$(RUN) gen-linkml $(SCHEMA_FOLDER)/BICAN/BICAN_schema.yaml --output $(BUILD_FOLDER)/BICAN_schema.yaml --mergeimports --format yaml --no-materialize-attributes
$(RUN) gen-linkml $(SCHEMA_FOLDER)/CAP/CAP_schema.yaml --output $(BUILD_FOLDER)/CAP_schema.yaml --mergeimports --format yaml --no-materialize-attributes

classes: merged_schemas
expanded_schemas: merged_schemas
$(RUN) python $(SCHEMA_EXPANDER) expand -i $(BUILD_FOLDER)/general_schema.yaml -o $(BUILD_FOLDER)/general_schema.yaml
$(RUN) python $(SCHEMA_EXPANDER) expand -i $(BUILD_FOLDER)/BICAN_schema.yaml -o $(BUILD_FOLDER)/BICAN_schema.yaml
$(RUN) python $(SCHEMA_EXPANDER) expand -i $(BUILD_FOLDER)/CAP_schema.yaml -o $(BUILD_FOLDER)/CAP_schema.yaml

classes: expanded_schemas
# gen-python $(BUILD_FOLDER)/general_schema.yaml --no-slots > $(PYMODEL)/cell_annotation_schema.py
# gen-python $(BUILD_FOLDER)/BICAN_schema.yaml --no-slots > $(PYMODEL)/bican/cell_annotation_schema.py
# gen-python $(BUILD_FOLDER)/CAP_schema.yaml --no-slots > $(PYMODEL)/cap/cell_annotation_schema.py
$(RUN) python src/cell_annotation_schema/generator/dataclassgen.py

build: merged_schemas classes
build: expanded_schemas classes
echo "Release products generated."

# mkdocs generation
Expand Down
Binary file modified project/excel/BICAN_schema.xlsx
Binary file not shown.
Binary file modified project/excel/CAP_schema.xlsx
Binary file not shown.
Binary file modified project/excel/general_schema.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion project/jsonld/BICAN_schema.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-06T17:24:36",
"generation_date": "2024-09-16T15:21:14",
"source": "BICAN_schema.yaml"
},
"@context": {
Expand Down
16,370 changes: 16,367 additions & 3 deletions project/jsonld/BICAN_schema.jsonld

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion project/jsonld/CAP_schema.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-06T17:24:38",
"generation_date": "2024-09-16T15:21:21",
"source": "CAP_schema.yaml"
},
"@context": {
Expand Down
16,369 changes: 16,366 additions & 3 deletions project/jsonld/CAP_schema.jsonld

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion project/jsonld/general_schema.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-06T17:24:34",
"generation_date": "2024-09-16T15:21:08",
"source": "general_schema.yaml"
},
"@context": {
Expand Down
Loading

0 comments on commit 1d76ba8

Please sign in to comment.