datalad metadata(1) | General Commands Manual | datalad metadata(1) |
datalad metadata - metadata reporting for files and entire datasets
datalad metadata [-h] [-d DATASET] [--get-aggregates] [--reporton TYPE] [-r] [PATH ...]
Two types of metadata are supported:
1. metadata describing a dataset as a whole (dataset-global metadata), and
2. metadata for files in a dataset (content metadata).
Both types can be accessed with this command.
Examples:
Report the metadata of a single file, as aggregated into the closest locally available dataset, containing the query path::
% datalad metadata somedir/subdir/thisfile.dat
Sometimes it is helpful to get metadata records formatted in a more accessible form, here as pretty-printed JSON::
% datalad -f json_pp metadata somedir/subdir/thisfile.dat
Same query as above, but specify which dataset to query (must be containing the query path)::
% datalad metadata -d . somedir/subdir/thisfile.dat
Report any metadata record of any dataset known to the queried dataset::
% datalad metadata --recursive --reporton datasets
Get a JSON-formatted report of aggregated metadata in a dataset, incl. information on enabled metadata extractors, dataset versions, dataset IDs, and dataset paths::
% datalad -f json metadata --get-aggregates
datalad is developed by The DataLad Team and Contributors <team@datalad.org>.
2021-02-04 | datalad metadata 0.14.0 |