Skip to main content

A NOMAD parser plugin for parsing json files to entries.

Project description

NOMAD's JSON Mapper plugin

This is a plugin for NOMAD which allows to create mappings from JSON into NOMAD schemas and parse the suitable JSON data files accordingly.

The plugin allows to create specific JSON files which specify the mapping of data into NOMAD schemas. These mapper files are identified by the presence of the key json_mapper_class_key.

JSON data files are identified by the presence of the key mapped_json_class_key. If a mapper with the same key value exists, the data will be parsed into NOMAD entries according to the mapping.

Getting started

nomad-json-parser can be installed to your oasis via the steps given in here.

Setting up your OASIS

Read the NOMAD oasis documentation for details on how to add the plugin on your NOMAD instance.

You don't need to modify the nomad.yaml configuration file of your NOMAD instance, beacuse the package is pip installed and all the available modules (entry points) are loaded. To include, instead, only some of the entry points, you need to specify them in the include section of the nomad.yaml. In the following lines, a list of all the available entry points:

plugins:
  include:
    - "nomad_json_parser.schema_packages:json_mapper_schema_package"
    - "nomad_json_parser.parsers:json_mapper_parser"
    - "nomad_json_parser.parsers:mapped_json_parser"
    - "nomad_json_parser.schema_packages:example_schema_package"
    - "nomad_json_parser.example_uploads:example_upload_entry_point"

Further documentation

For a detailed documentation on how this plugin works and how to create JSON mapper, please refer to the documentation.

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_json_parser-1.1.0.tar.gz (113.6 kB view details)

Uploaded Source

Built Distribution

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

nomad_json_parser-1.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file nomad_json_parser-1.1.0.tar.gz.

File metadata

  • Download URL: nomad_json_parser-1.1.0.tar.gz
  • Upload date:
  • Size: 113.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nomad_json_parser-1.1.0.tar.gz
Algorithm Hash digest
SHA256 dfc030304272b5946aa7639bf95f2d82eb9669325dffae5c9d1108df868d52a6
MD5 2420d330618edba72ec6f88e28920e9b
BLAKE2b-256 a263d10a364056044934939c4f8920080e1151e73b85f5df16a3882ac105a429

See more details on using hashes here.

Provenance

The following attestation bundles were made for nomad_json_parser-1.1.0.tar.gz:

Publisher: python-publish.yml on FAIRmat-NFDI/nomad-json-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nomad_json_parser-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nomad_json_parser-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 951afa63ff80315296bda9d73d7f7e34eed117ce2528730d5bf0fd7a43443654
MD5 321162e8b7243d95fdcd80fc7b1e45cb
BLAKE2b-256 a33f7154ed5f3ad03b28399ecaf69ad7f2813c0834f543b837fd993cb8830d4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nomad_json_parser-1.1.0-py3-none-any.whl:

Publisher: python-publish.yml on FAIRmat-NFDI/nomad-json-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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