Skip to main content

A NOMAD plugin for polymerization reactions.

Project description

A NOMAD plugin providing schemas, search apps, and data transformation utilities for polymerization data extracted from publications.

Availability

This plugin is hosted on NOMAD's example Oasis. You can use the built-in schemas Monomer and PolymerizationReaction to create entries. You can also use a dedicated search app to look up polymerization-specific entries here.

Installation

Install the package in your local environment with pip:

pip install git+https://github.com/FAIRmat-NFDI/nomad-polymerization-reactions.git

Adding this plugin to NOMAD Oasis

The plugin can be added to a NOMAD Oasis instance in a few steps, provided that you have access to the repository hosting the Oasis.

Read the NOMAD plugin documentation for all details on how to deploy the plugin on your NOMAD instance. If you wanna get started with a new Oasis, start here.

Using the CLI for data transformation

The package provides utility functions for transforming JSON files into NOMAD entry archives. These archives have archive.json ending and are processed by NOMAD once uploaded. The m_def key in the archives helps NOMAD to identify which data schema to use.

Here's how you can convert a JSON file into an NOMAD entry archive that uses nomad_polymerization_reactions.schema_packages.polymerization.Monomer schema:

nomad-polymerization archive monomer.json

If you want to create an archive that uses nomad_polymerization_reactions.schema_packages.polymerization.PolymerizationReaction schema, use the polymerization mode:

nomad-polymerization archive polymerization_reaction.json --mode polymerization

You can specify multiple filepaths in the same command or even use directory paths. All the .json files in the directory will be transformed into archives:

nomad-polymerization archive /folder/polymerization/ --mode polymerization

By default, the command will create the archives in the same directory where it runs. If you want to create them in the same directory as the JSON file, use the flag --same-dir:

nomad-polymerization archive /folder/sub-folder/monomer.json --same-dir
# creates `monomer.archive.json` file in `/folder/sub-folder/`

The JSON files used for transformation should have a fixed format. You can find the data models for JSON files here.

License

Distributed under the terms of the Apache Software License 2.0 license, "nomad-polymerization-reactions" is free and open source software.

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

nomad_polymerization_reactions-0.2.0.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

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

nomad_polymerization_reactions-0.2.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file nomad_polymerization_reactions-0.2.0.tar.gz.

File metadata

File hashes

Hashes for nomad_polymerization_reactions-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6d36acf9be1f9de14c05d4858ba482208f576f22781d17a41b097593dfe367a7
MD5 4d306669add5c46813b0b7bf4c8f7c96
BLAKE2b-256 bc2287126fa292363d1328e90f2aee50547aa96c3a1fb9a68c37e3986d6e3ec2

See more details on using hashes here.

File details

Details for the file nomad_polymerization_reactions-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nomad_polymerization_reactions-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09e22342ef51878bb1845d086dff6979e2560fe9310ee3fd69d490ed22a7c3ab
MD5 5ba862a221c975430af255ba7fa7d7f3
BLAKE2b-256 532c3452120e07eb34490cf4e56fe5fae3a83f91befe3fa9d8528cdec2f3d0e3

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