DATALAD-EXTRACT-METADATA(1)

πŸ“¦ version 0.15.5, in ubuntu jammy

πŸ’– datalad extract-metadata πŸ’–

okay bestie, welcome to the datalad extract-metadata page, straight outta the General Commands Manual. this is a datalad command and it's about to run one or more of DataLad's metadata extractors on a dataset or file. yes. that's the whole vibe. let's go πŸ¦‹


✨ NAME ✨

datalad extract-metadata β€” run one or more of DataLad's metadata extractors on a dataset or file. no cap, that's literally what it does 🫢


🌈 SYNOPSIS 🌈

datalad extract-metadata [-h] --type NAME [-d DATASET] [--version] [FILE
       ...]

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea: the result(s) are structured like the metadata DataLad would extract during metadata aggregation. there's one result per dataset/file. one. per. dataset. per. file. periodt πŸ’…

🌸 Examples 🌸

extract metadata with two extractors from a dataset in the current directory and also from all its files:

$ datalad extract-metadata -d . --type frictionless_datapackage --type datalad_core

extract XMP metadata from a single PDF that is not part of any dataset (living its best independent life, main character energy honestly):

$ datalad extract-metadata --type xmp Downloads/freshfromtheweb.pdf

πŸ’… OPTIONS πŸ’…

  • FILE β€” path of a file to extract metadata from. constraint: value must be a string. it's giving "just a humble string, but make it metadata" πŸ“
  • -h, --help, --help-np β€” show this help message. --help-np forcefully disables the use of a pager for displaying the help message. forceful. iconic. no pager, no scrolling drama ✨
  • --type NAME β€” name of a metadata extractor to be executed. bestie, this option can be given more than once. stack those extractors, you're allowed 🧚
  • -d DATASET, --dataset DATASET β€” "Dataset to extract metadata from. If no FILE is given, metadata is extracted from all files of the dataset. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path). yeah it says "all files", so be ready for a whole crowd of results πŸ™ˆ
  • --version β€” show the module and its version which provides the command. it's the "who am I and what build am I on" moment πŸ‘‘
heads up bestie: if you don't pass FILE and you do pass -d DATASET, it's gonna go extract from all files of the dataset. that's not me being dramatic, that's just the option description fr fr.

πŸ‘‘ AUTHORS πŸ‘‘

datalad is developed by The DataLad Team and Contributors <team@datalad.org>.


and that's the whole page!! this one's datalad extract-metadata version 0.15.5, dated 2022-02-10, and it lives at datalad extract-metadata(1) in the manual. slay, go extract some metadata, ily πŸ’œπŸ¦‹

πŸ“¦ where this page comes from