Skip to main content

Implement the metadata ETL process to extract metadata from offline research data (HDF5 files) and inject it to the metadata catalog

Project description

Metadata ETL (Extract-Transform-Load)

The ETL is a service for ingesting metadata the into the central metadata data catalogue (aka myMDC).

Basically, the ETL application extracts metadata about scientific data, transforms the input data into a structure and format that is expected by the Metadata service API and loads the final result to myMDC using the provided API/Library.

The ETL design aims to provide a uniform API to integrate with different sources of metadata, such as DAMNIT (https://github.com/European-XFEL/DAMNIT), File system DB, etc.

As a proof-of-concept, the current version implements the extraction component that reads the raw data and extracts metadata from. In addition, the transform and load components design is flexible enough to ingesting metadata from different sources.

Repository:

Dependencies:

Installation

  1. Install Python and all required dependencies (eg. Python, poetry, metadata_api, etc.)

    TBD

Usage

  1. Run the main application from the command-line with the help argument:

poetry run metadata_etl --help

  1. You should get the this output:
   usage: MetadataETL [-h] [-b BASE_FOLDER] [-p PROPOSAL] [-r RUN] [-s {proposal,file,run}] [-d DATA] 
          [-g {config,extract,transform,load}] [-v] [files ...]

   Extract metadata from research data and load it into the metadata catalog.

   positional arguments:
   files List of data file(s)

   options:
   -h, --help show this help message and exit
   -b BASE_FOLDER, --base_folder BASE_FOLDER
   Base folder (default: $PWD)
   -p PROPOSAL, --proposal PROPOSAL
   Full proposal number
   -r RUN, --run RUN Run numbers
   -s {proposal,file,run}, --scope {proposal,file,run}
   -d DATA, --data DATA Input file for data and metadata specifications
   -g {config,extract,transform,load}, --stage {config,extract,transform,load}
   -v, --verbose Verbose mode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metadata_etl-0.2.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metadata_etl-0.2.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file metadata_etl-0.2.1.tar.gz.

File metadata

  • Download URL: metadata_etl-0.2.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.4 Linux/6.8.0-57-generic

File hashes

Hashes for metadata_etl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0a32a0a0c467416bfb61d114356febccb60e74c3b4fe4aa20e6c22bbbd47bbc5
MD5 1b87d56e9560f74970b471f586e77ae3
BLAKE2b-256 d663bfc45f27b4b088b5d96d2ebebe919cccacbe5e8055169aa87870d42b6410

See more details on using hashes here.

File details

Details for the file metadata_etl-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: metadata_etl-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.4 Linux/6.8.0-57-generic

File hashes

Hashes for metadata_etl-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d43cdc0fcc78d699ddecaf3a19ccee990d830208c6734394cc38464050b75bf
MD5 ed111e9c87b11a727389cb24d521c98f
BLAKE2b-256 c39d011d330cb2338a7536a6e9c22fd554b97d357280b50f1157b8c5b393aaa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page