metaextracting

Metadata extractor for engineering simulation data

https://github.com/mardi4nfdi/metaextracting

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Metadata extractor for engineering simulation data

Basic Info
  • Host: GitHub
  • Owner: MaRDI4NFDI
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 5.52 MB
Statistics
  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

DOI

metaExtractIng

metaExtractIng is a tool for extracting important metadata from CSV, NetCDF, OpenDiHu and GROMACS files and storing it into a JSON-LD file, according to Metadata4Ing ontology. This README provides instructions on how to run metaExtractIng and generate the desired JSON-LD file.

Installing metaExtractIng via package manager

Currently, you can download the package meta_extractIng via PyPI Test repository:

pip install -i https://test.pypi.org/simple/ meta-extractIng

After successful installation, you can import meta_extractIng and use your desired software.

from meta_extractIng import csv_extractor, gromacs_extractor, open_dihu_extractor, netcdf_extractor

csv_extractor.extract()
open_dihu_extractor.extract()
netcdf_extractor.extract()
gromacs_extractor.extract()

After running each one of the extract() methods, you will be asked to give the path of your simulations folder. Only for the GROMACS simulations, the files should be given in separate folders inside the given path. The program uses given template file already in __output__ folder. If this file is not given, the program asks the user to create a template interactively. Final Json-LD files will be saved at the __output__ folder as well.

The program uses Metadata4Ing ontology as default. If you want to switch to another ontology, you can change the URL and context_URL values in the config.json file in lib folder, where your package is installed on your computer.

Running metaExtractIng via source code

Navigate to src/meta_extractIng folder and run in terminal:

python main.py

Requirements

The following Python libraries are required to run the program: - requests - rdflib

To install the required libraries, run the following command: pip install -r requirements.txt

Source code folder structure

Main repository consists of four main folders:

  • meta_extractIng/src: Contains source code, and shared libraries in lib folder
    • lib: Contains shared libraries
    • simulations: Simulation examples for each software
  • tests: Contains a unit test for checking the correctness of all simulations softwares.

  • docs: Helpful documents to understand the flow of the program, for example, the interactive-template-generation step.

Expected files

  • CSV: It extracts all the data in header and rows. It expects the csv file has a header row, with one or more rows of data, and one column with id.
  • NetCDF: It extracts dimensions, variables, and global attributes from a CDL content file.
  • OpenDiHu: It processes an OpenDiHu log file, extracting metadata between specific markers.
  • GROMACS: It processes a folder containing GROMACS output files, including job, log, usermd and mdp files, extracting metadata from them.

Authors

The code was developed by Mahdi Jafarkhani, based on a prior development by Mohammed Asjadulla. The development was supervised by Björn Schembera.

Acknowledgements

The work has been funded by the DFG (German Research Foundation), project number 460135501, NFDI 29/1 “MaRDI – Mathematische Forschungsdateninitiative”.

Owner

  • Name: The NFDI Consortium of Mathematics
  • Login: MaRDI4NFDI
  • Kind: organization
  • Location: Germany

The Mathematical Research Data Initiative (MaRDI) is the initiative of mathematical science. We embrace a FAIR data culture and research workflow.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title:           "MetaExtractIng - Metadata extractor for engineering simulation data"
type:            software
version:         v1.0.0
date-released:   2025-02-18
repository-code: https://github.com/MaRDI4NFDI/MetaExtractIng
license:         GPL-3.0
abstract:        "MetaExtractIng is a tool for extracting important enginering metadata from CSV, NetCDF, OpenDiHu and GROMACS files and storing it into a JSON-LD file, according to the Metadata4Ing ontology"
keywords:
  - Metadata
  - Metadaten
  - Engineering
  - Ingenieurwesen
  - NFDI
  - NFDI4Ing
  - MaRDI
  - Metadatenextraktion
  - Metadata Extraction
  - Ontologie
  - Ontology
  - Knowledge Graph
  - Software
  - Extractor
  - Crawler
authors:
  - family-names: Schembera
    given-names:  Björn
    orcid:        https://orcid.org/0000-0003-2860-6621
    email: bjoern.schembera@mathematik.uni-stuttgart.de
  - family-names: Jafarkhani
    given-names:  Mahdi
    email:        mahdi.jafarkhani@gmail.com
  - family-names: Asjadulla  
    given-names:  Mohammed

GitHub Events

Total
  • Release event: 1
  • Member event: 2
  • Push event: 7
Last Year
  • Release event: 1
  • Member event: 2
  • Push event: 7

Dependencies

pyproject.toml pypi
  • rdflib *
  • requests *
requirements.txt pypi
  • rdflib *
  • requests *