Abstract
Translates several CSV files with ontological terms and corresponding data into RDF triples. These RDF triples are stored in OWL and JSON-LD files, facilitating data accessibility, interoperability, and knowledge unification. The triples are also visualized in a graph saved as an SVG. The input CSVs must be formatted with a template from a public Google Sheet; see README or vignette for more information. This is a tool is used by the SDLE Research Center at Case Western Reserve University to create and visualize material science ontologies, and it includes example ontologies to demonstrate its capabilities. 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 E-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.
Introduction
In materials science, data is often trapped in disparate CSV files, each using different naming conventions and structures. This lack of standardization makes it nearly impossible to combine datasets from different labs or use automated reasoning tools to discover new insights. While "FAIR" (Findable, Accessible, Interoperable, and Reusable) data principles are the gold standard for modern research, implementing them usually requires deep expertise in ontology engineering and semantic technologies—skills many materials scientists do not have the time to master.
FAIRmaterials is an R package designed to bridge this "usability gap." It provides a tool that allows researchers to stay in the familiar environment of spreadsheets while generating machine-readable, interoperable data under the hood, effectively connecting simple spreadsheets to the complex world of the Semantic Web.
Methodology
The core of the package is the process_ontology_files function. The workflow follows a clear pipeline:
- Structured Input: Users fill out a specific template (provided via a public Google Sheet) that defines ontological terms and their relationships.
- Parsing and Translation: The package reads these CSVs and translates the rows into RDF (Resource Description Framework) triples using libraries like
rdflibandjsonld. - Serialization: These triples are exported into standard semantic formats, specifically OWL (Web Ontology Language) and JSON-LD.
- Visualization: Using the
DiagrammeRandDiagrammeRsvglibraries, the tool automatically generates an SVG graph of the ontology, allowing researchers to visually verify the relationships they've defined. - Merging: The tool can recursively scan subdirectories, processing individual ontologies and then merging them into a single, unified RDF dataset with customized metadata.
The package includes built-in example ontologies, such as an "XRay" dataset (related to X-ray diffraction or spectroscopy), to help users test the transformation from tabular data into a linked-data graph.
Results and Discussion
Spreadsheets as a Gateway
By using Google Sheets as the primary interface, the authors lower the barrier to entry for semantic data modeling. Researchers do not need to learn complex software like Protégé to build a valid ontology. This approach successfully automates the creation of RDF triples, which are the backbone of interoperable data.
Visual Feedback and Knowledge Unification
The automatic generation of SVG tree plots provides a crucial visual feedback loop. It transforms abstract RDF triples into a tangible map, making it easier for scientists to spot errors in their data hierarchy or logic. Furthermore, the package's ability to merge multiple sub-ontologies into a single knowledge graph allows large research centers to create a "single source of truth" across different experimental domains.
Multi-Format Support
FAIRmaterials provides outputs in Turtle, JSON-LD, and OWL, ensuring the data can be used in everything from web applications to advanced logic reasoners. By building this in R, the authors have placed these tools directly into the existing data science workflow of many researchers.
Conclusion and Future Work
While FAIRmaterials significantly simplifies the FAIRification process, it currently relies on a specific CSV template, which may require significant pre-processing for non-conforming data. As the package is still "in development," future work will likely address scalability for extremely large-scale datasets (millions of triples) and improved version control for evolving ontologies. Nonetheless, it represents a significant step toward making semantic technologies accessible to the broader materials science community.
Summary updated