cdm_data_loaders.converters.cli.pyiceberg_to_linkml ¶
CLI interface for creating a LinkML dump of table schemas from an Iceberg catalog.
IcebergToLinkMLSettings ¶
Bases: IcebergCatalogDumpSettings
Settings for generating a set of LinkML schemas from an Iceberg data catalog.
Source code in src/cdm_data_loaders/converters/cli/pyiceberg_to_linkml.py
dump_catalog_schemas ¶
Iterate through a catalog and dump out the table schemas as LinkML.
A table that fails to load or convert is logged and skipped; it does not
abort the dump of the remaining tables. generated_at is stamped
identically on every table in a single run (it reflects the run, not each
table's individual read time). An existing output file for a table is
overwritten, with a warning logged first. With group_by_namespace,
each nonempty namespace produces one file containing its table classes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
IcebergToLinkMLSettings
|
Catalog name and output directory. |
required |