feature_sources#

dscat.queries.feature_sources(cat, dataset, version, table_name)[source]#

Return up to four (role, file_path) source rows for a table.

Parameters:
  • cat (dscat.index.Catalogue) – Open catalogue to read from.

  • dataset (str) – Dataset id.

  • version (str) – Version id.

  • table_name (str) – Logical table whose physical CSVs to list.

Returns:

The role and file path of each physical CSV backing the table.

Return type:

collections.abc.Sequence of sqlalchemy.engine.RowMapping