Skip to content

Suggested new recipe for project.justfile - gen-linkml #167

Description

@noelmcloughlin

Consider adding the following recipe to project.justfile.

https://github.com/linkml/linkml/blob/main/docs/generators/linkml.rst

# Generate a single self-contained merged LinkML YAML with all imports resolved
[group('model development')]
gen-merged-schema:
  mkdir -p {{dest}}/linkml
  uv run gen-linkml --mergeimports -o {{dest}}/linkml/{{schema_name}}.merged.linkml.yaml {{source_schema_path}}

This recipe is useful for development work tangential to a modular LinkML schema (import's sub-schemas).

It exposes full yaml as interface.
Without that interface you need multiple links to parent schema + sub-schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    _projectRelated to the generated project

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions