Skip to main content

Reaction Knowledge Graph Processor: rxn_rdf_converter

Overview

The rxn_rdf_converter is a Python package which aims to process reaction data stored in Google Protocol Buffers with the Open Reaction Database (ORD) schema into a knowledge graph representation as Resource Description Framework (RDF) triples using MDS-Onto (a domain ontology for Materials Data Science) as the semantic model.

This package facilitates the transformation of raw experimental data into structured RDF triples (Turtle or JSON-LD format), making the data semantically searchable, linkable, and machine-readable for advanced data analysis and machine learning applications in chemistry and materials science.

The latest MDS-Onto version (v.0.3.1.69) is used in this package and the corresponding manuscript (https://cwrusdle.bitbucket.io/). The MDS-Onto file (.owl and .ttl) can be found in the repository. Examples of JSON-LD files generated using the package is also included under 'jsonld-examples'.


Authors

  • Quynh D. Tran
  • Holly Schreiber
  • Brandon Lee
  • Owen Schessler
  • Laura S. Bruckman
  • Roger H. French

Motivation

We built this package to streamline the data integration of reaction/synthesis data into one centralized database with formulation, manufacturing, and degradation.

The bottleneck of mapping reaction data to an ontology can be tedious and error-prone. Thus, this package hopefully will provide an automated tool to reduce the time needed to integrate data.


Installation

Prerequisites

  • Python 3.11+
  • The ord-schema library.
  • The owlready2 library for ontology handling.
  • The rdflib library for RDF graph generation.
  • RDKit for chemical identifier normalization (InChIKey, SMILES conversion).

Setup

Install the required dependencies using pip


Package Usage

The package will convert a dataset (that contains hundreds to thousands of reactions) in ORD schema in Google Protocol Buffers format into Resource Description Framework (RDF) triples in JSON-LD or Turtle format using MDS-Onto as the semantic model.

The core workflow involves initializing a DatasetProcessor to manage logging and file paths, and then iterating over its reactions using the ReactionKG class to build the individual knowledge graphs (Turtle or JSON-LD serialization format).

The package is capable of batch processing multiple datasets or only one dataset. In addition, using the ReactionKG class, a user can generate one single reaction at a time.


Limitation

This package currently only works for reaction data in ORD schema and MDS-Onto is passed as an argument. It will not work with data in other Google Protocol Buffer schemas or other ontologies.

If a user has more than 50 datasets (each contains hundreds to thousands of reactions), running the package to process multiple datasets will cause a crash since there is not enough in-memory storage. The multiple-dataset batch processing was designed to run on distributed, parallel computing infrastructure with Hadoop ecosystem.


Affiliations:

Materials Data Science for Stockpile Stewardship Center of Excellence (MDS3-COE), Solar Durability and Lifetime Extension (SDLE) Research Center, Materials Science and Engineering, Case Western Reserve University, Cleveland, OH 44106, USA


Python package documentation

https://rxn-rdf-converter.readthedocs.io/en/latest/


Acknowledgements:

This work was supported by the U.S. Department of Energy’s Office of Energy Efficiency and Renewable Energy (EERE) under Solar Energy Technologies Office (SETO) Agreement Numbers DE-EE0009353 and DE-EE0009347, Department of Energy (National Nuclear Security Administration) under Award Number DE-NA0004104 and Contract number B647887, and U.S. National Science Foundation Award under Award Number 2133576.

Metadata

Release files for rxn-rdf-converter 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rxn-rdf-converter 0.1.5
File Size Uploaded Provenance Actions
rxn_rdf_converter-0.1.5.tar.gz 10.7 kB With provenance Details for rxn_rdf_converter-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rxn-rdf-converter 0.1.5
File Interpreter ABI Platform Actions
rxn_rdf_converter-0.1.5-py3-none-any.whl Python 3 none any Details for rxn_rdf_converter-0.1.5-py3-none-any.whl

Total release size: 15.2 kB

Release files / rxn_rdf_converter-0.1.5.tar.gz

Download URL rxn_rdf_converter-0.1.5.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c0cb99a41c6244eb737f79044fcd9f057ba735c1d47ec3a713934d8843e44658
BLAKE2b-256 checksum
How to use checksums
8480c82335e78a70237b6137cec1121f8c64973877e25894f0ca5d5d3559d558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / rxn_rdf_converter-0.1.5-py3-none-any.whl

Download URL rxn_rdf_converter-0.1.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99724345808d6a3581d03775d4313bce29d62c58e96eb23d9efb6b501f840531
BLAKE2b-256 checksum
How to use checksums
2d3034b5cfadfbc7f9ed2d52bd0ab14ae4dfe77234b83cce5cccebddda5160e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for rxn-rdf-converter 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rxn_rdf_converter-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page