Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the main Makefile be manually edited? It seems the cookiecutter template should update it?

Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ gen-examples:
gen-project: $(PYMODEL)
$(RUN) gen-project ${CONFIG_YAML} -d $(DEST) $(SOURCE_SCHEMA_PATH) && mv $(DEST)/*.py $(PYMODEL)


# non-empty arg triggers owl (workaround https://github.com/linkml/linkml/issues/1453)
ifneq ($(strip ${GEN_OWL_ARGS}),)
mkdir -p ${DEST}/owl || true
Expand Down
25 changes: 11 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions project.Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
## Add your own custom Makefile targets here

.PHONY: generate_biolink_imports
gen-biolink-imports:
$(RUN) python src/matrix_schema/utils/generate_biolink_imports.py

.PHONY: generate_valid_edge_type_table
gen-valid-edge-type-table:
$(RUN) python src/matrix_schema/utils/generate_valid_edge_type_table.py

.PHONY: gen-pydantic
gen-pydantic:
$(RUN) gen-pydantic --meta None src/matrix_schema/schema/matrix_schema.yaml > src/matrix_schema/datamodel/matrix_schema_pydantic.py

gen-pandera: gen-pydantic
@echo "The pandera schema currently needs to be updated manually in src/matrix_schema/datamodel/pandera.py"
Comment thread
kevinschaper marked this conversation as resolved.
# generate pandera schemas
.PHONY: gen-pandera
gen-pandera:
python -m matrix_schema.generators.panderagen $(SOURCE_SCHEMA_PATH) -c MatrixNode -c MatrixEdge -c UnionedNode -c UnionedEdge --output $(PYMODEL)/pandera.py


gen-project: gen-pydantic gen-pandera gen-biolink-imports gen-valid-edge-type-table
Binary file modified project/excel/matrix_schema.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion project/jsonld/matrix_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": "2025-08-26T11:42:19",
"generation_date": "2025-09-04T16:20:53",
"source": "matrix_schema.yaml"
},
"@context": {
Expand Down
4 changes: 2 additions & 2 deletions project/jsonld/matrix_schema.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -5609,9 +5609,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "matrix_schema.yaml",
"source_file_date": "2025-06-04T10:34:59",
"source_file_date": "2025-09-03T12:54:24",
"source_file_size": 528,
"generation_date": "2025-08-26T11:42:19",
"generation_date": "2025-09-04T16:20:53",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/matrix_schema.context.jsonld",
Expand Down
Loading