monarch-initiative / monarch-py

Monarch Python API
1 stars 0 forks source link

Make the schema available as an import #7

Closed kevinschaper closed 1 year ago

kevinschaper commented 1 year ago

Upstream, monarch-ingest will need association and entity linkml yaml files to populate the sole index Downstream, monarch-api will get much of it's model from monarch-py

I'm following the discussion in https://github.com/linkml/linkml/issues/797 and it looks like it's a solved problem in the project generator template.

It looks like I need to move the schema into the project package (possibly adding src as a layer, though maybe not necessary) and list the schema in an includes section in pyproject.toml

kevinschaper commented 1 year ago

The schema is now stored in the python package, for easy command line access, we have the monarch schema command which will print the schema to stdout