Skip to content

Add --list-entities to validate-spec for external orchestration #243

@amc-corey-cox

Description

@amc-corey-cox

With #203, map-data -T <dir>/ --entity <name> lets external orchestrators (Make, snakemake, etc.) parallelize per-entity. The remaining gap is discovery — knowing which entities exist before planning the DAG.

A --list-entities flag on validate-spec --merge would close it:

linkml-map validate-spec --merge --list-entities -T specs/
# → one class_derivation name per line; skip schema-binding work

Pairs naturally with the existing --entity filter — same vocabulary. Thin wrapper over load_and_merge_specs: pull class_derivations, print sorted unique names, exit.

Context: dm-bip wraps load_and_merge_specs locally for now (linkml/dm-bip#323list_entities.py) and would delete it once this lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions