The MRDI package provides tools for serializing and deserializing mathematical objects in Macaulay2 using the MRDI file format, a JSON-based format for storing and sharing results in computer algebra without losing accuracy. The format was developed as part of the Mathematics Research Data Initiative (MaRDI) and is described in the paper:
Antony Della Vecchia, Michael Joswig, and Benjamin Lorenz, A FAIR file format for mathematical software, Mathematical software—ICMS 2024, 234–244, Lecture Notes in Comput. Sci., 14749, Springer, Cham.
Each serialized object carries a namespace (_ns) identifying the originating software system and version, a type descriptor (_type) that may include recursive parameters, the actual data, and optionally a set of references (_refs) keyed by UUIDs.
The package can serialize and deserialize integers, rings (ZZ, QQ, finite prime fields, Galois fields), polynomial rings, ring elements, ideals, and matrices. It can also load and save objects using the OSCAR namespace, enabling interoperability with the OSCAR computer algebra system.
The namespace mechanism also makes it possible to define custom serialization formats for exchanging data with other software systems.
|
|
|
|
This documentation describes version 0.1 of MRDI, released April 25, 2026.
If you have used this package in your research, please cite it as follows:
|
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/MRDI.m2:487:0.