Name | FAIRmaterials JSON |
Version |
0.4.2.6
JSON |
| download |
home_page | None |
Summary | 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 used by the SDLE Research Center at Case Western Reserve University. |
upload_time | 2024-07-12 18:21:41 |
maintainer | None |
docs_url | None |
author | Alexander Harding Bradley, Priyan Rajamohan, Jonathan E. Gordon, Nathaniel Hahn, Kiefer Lin, Arafath Nihar, Hayden Cadwell, Jiana Kambo, Jayvic Jimenez, Kristen J. Hernandez, Hein Htet Aung, Brian Giera, Weiqi Yu, Mohommad Redad Mehdi, Finley Holt, Quynh Tran, Gabriel Ponon, Dan Savage, Don Brown, Jarod Kaltenbaugh, Kush Havinal, Nicholas Gray, Max Ligget, Benjamin G. Pierce, Raymond Wieser, Yangxin Fan, Tommy Ciardi, Olatunde J. Akanbi, Hadiza Iawal, Will Oltjen, Maliesha Kalutotage, Antony Lino, Van Tran, Mingjian Lu, Xuanji Yu, Abhishek Daundkar, Hope Omodolor, Mirra Rasmussen, Sameera Nalin-Venkat, Tian Wang, Rounak Chawla, Liangyi Huang, Zelin Li, Leean Jo, Jeffrey M. Yarus, Mengjie Li, Kristopher O. Davis, Yinghui Wu, Pawan K. Tripathi, Laura S. Bruckman, Erika I. Barcelos, Roger H. French |
requires_python | >=3.9.18 |
license | BSD-2-Clause |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
---
title: "FAIRmaterials"
---
| Authors:
| Jonathan E. Gordon$^{1}$, Alexander Harding Bradley$^{1}$, Priyan Rajamohan$^{1}$, Nathaniel Hahn$^{1}$, Kiefer Lin$^{1}$,
| Arafath Nihar$^{1}$, Hayden Cadwell$^{1}$, Jiana Kambo$^{1}$, Jayvic Jimenez$^{1}$, Kristen J. Hernandez$^{1}$, Hein Htet Aung$^{1}$,
| Brian Giera$^{2}$, Weiqi Yu$^{1}$, Mohommad Redad Mehdi$^{1}$, Finley Holt$^{1}$, Quynh Tran$^{1}$, Gabriel Ponon$^{1}$,
| Dan Savage$^{3}$, Don Brown$^{3}$, Jarod Kaltenbaugh$^{4}$, Kush Havinal$^{4}$, Nicholas Gray$^{4}$, Max Ligget$^{1}$,
| Benjamin G. Pierce$^{1}$, Raymond Wieser$^{1}$, Yangxin Fan$^{1}$, Tommy Ciardi$^{1}$, Olatunde J. Akanbi$^{1}$, Hadiza Iawal$^{1}$,
| Will Oltjen$^{1}$, Maliesha Kalutotage$^{1}$, Antony Lino$^{1}$, Van Tran$^{1}$, Mingjian Lu$^{1}$, Xuanji Yu$^{1}$,
| Abhishek Daundkar$^{1}$, Hope Omodolor$^{1}$, Mirra Rasmussen$^{1}$, Sameera Nalin-Venkat$^{1}$, Tian Wang$^{1}$,
| Rounak Chawla$^{1}$, Liangyi Huang$^{1}$, Zelin Li$^{1}$, Leean Jo$^{1}$, Jeffrey M. Yarus$^{1}$, Mengjie Li$^{4}$,
| Kristopher O. Davis$^{4}$, Yinghui Wu$^{1}$, Pawan K. Tripathi$^{1}$, Laura S. Bruckman$^{1}$, Erika I. Barcelos$^{1}$,
| Roger H. French$^{1}$
|
| $^{1}$ Materials Data Science for Stockpile Stewardship Center of Excellence, Cleveland, OH 44106, USA
| $^{2}$ Lawrence Livermore National Laboratory, Livermore, CA 94551, USA
| $^{3}$ Los Alamos National Laboratory, Los Alamos, NM 87545, USA
| $^{4}$ University of Central Florida, Materials Science & Engineering, Orlando, FL 32816, USA
<br>
# What is FAIRmaterials and what does it do?
'FAIRmaterials' is a bilingual package in R and Python that translates several CSV files from the template (described below) with ontological terms and corresponding data into RDF triples. These RDF triples are then 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 or as a PNG with the Python package. The Python package has a fourth output too. It generates documentation for the output ontology as an HTML.
Put the sheets, created from the template described below, for one or more ontologies in a folder and the 'FAIRmaterials' 'process_ontology_files' or 'FAIRSheetParser' function will output a JSON-LD, turtle/OWL, SVG/PNG visualization, and HTML documentaion into the input folder for all the input ontologies merged. Note that a folder containing only files for one ontology will give results for just that ontology and specifying a base uri is required for merging ontologies. The package can handle subdirectories by producing separate unmerged outputs for each subdirectory and a merged output from all files in the input path. This tool, developed for use by the SDLE Research Center at Case Western Reserve University, facilitates the creation and visualization of material science ontologies.
<br><br><br>
# How to use FAIR CSV template:
To Prepare your CSV file, ensure your CSV file contains the appropriate ontological terms and corresponding data using this template: [FAIR CSV Template](https://docs.google.com/spreadsheets/d/1k7gFRc1Yslc-m65aWfFCxqk5UtrKZl9c3GyEFQvLSFU/edit?usp=sharing)
## Example of XRay ontology FAIR CSV sheet
Example Name Space Sheet:
![Name Space Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/namespacesheet.png?raw=true)
Example Ontology Information Sheet:
![Ontology Information Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/ontoinfosheet.png?raw=true)
Example Variable Definitions Sheet:
![Variable Definitions Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/vardefsheet.png?raw=true)
Example Relationship Definitions Sheet:
![Relationship Definitions Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/reldefsheet.png?raw=true)
Example Value Type Definitions Sheet:
![Value Type Definitions Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/valtypesheet.png?raw=true)
The descriptions under the column names provide instructions for how to fill out each column. Once the Name Space, Value Type Definitions, Relationship Definitions, Variable Definitions, and Ontology Info sheets are filled out, 'FAIRmaterials' is ready to use. The visualizations generated by this package are helpful to visualize an ontology to ensure satisfaction with the information in the sheets.
<br><br><br>
# Install and load the package
Install in R:
```r
install.packages("FAIRmaterials")
library(FAIRmaterials)
```
Install in Python:
```{python, eval = FALSE}
pip install FAIRmaterials
```
<br><br><br>
# Running the default 'process_ontology_files' function:
## PV ontology sheets:
Running the package in R:
```r
# Process the CSV files in the PV folder
example_folder1 <- system.file("extdata", "PV", package = "FAIRmaterials")
FAIRmaterials::process_ontology_files(example_folder1, add_external_onto_info = FALSE)
```
This visualization from the R package will be saved in the output folder as an SVG:
![PV Ontology Visualization](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/PV_svg_w_valuetype.png?raw=true)
Running the package in Python:
```python
FAIRmaterials --folder_path /path/to/csv/files --include_graph_valuetype --include_pylode_docs
```
This visualization from the Python package will be saved in the output folder as an PNG:
![PV Module Graph Visualization](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/mds-pvModuleGraph.png?raw=true)
### HTML output
The HTML output generated by the Python package for PV Module can be found [here](https://cwrusdle.bitbucket.io/PylodeHTML/mds-pvModule-pylode.html):
## XRay Sample ontology sheets:
Running the package in R:
```r
# Process the CSV files in the Xray folder
example_folder2 <- system.file("extdata", "XRay", package = "FAIRmaterials")
FAIRmaterials::process_ontology_files(example_folder2, add_external_onto_info = FALSE)
```
This visualization from the R package will be saved in the output folder as an SVG:
![XRay Visualization With Value Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/PV_svg_w_valuetype.png?raw=true)
Running the package in Python:
```python
# Process the CSV files in the Xray folder
FAIRmaterials --folder_path /path/to/csv/files --include_graph_valuetype --include_pylode_docs
```
This visualization from the Python package will be saved in the output folder as an PNG:
![XRay Visualization With Value Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/mds-XraySampleGraph.png?raw=true)
### HTML output
The HTML output generated by the Python package for XRay Sample can be found [here](https://cwrusdle.bitbucket.io/PylodeHTML/mds-XraySample-pylode.html):
<br><br><br>
# Removing values from visualization in R
By setting include_graph_valuetype argument to FALSE the valuetypes are excluded from graph. We can see how this graph differs from the PV graph above.
Removing values in R:
```r
FAIRmaterials::process_ontology_files(example_folder1, include_graph_valuetype = FALSE, add_external_onto_info = FALSE)
```
# Removing values from visualization in Python
By removing the --include_graph_valuetype flag, the valuetypes are excluded from graph. We can see how this graph differs from the PV graph above.
Removing values in Python:
```python
FAIRmaterials --folder_path /path/to/csv/files
```
This visualization from the Python package will be saved in the output folder as a PNG:
![XRay Visualization With without Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/mds-XraySampleGraph-novaluetype.png?raw=true)
<br><br><br>
# Attempting to add external ontology information in R:
Now we set the add_external_onto_info argument to TRUE. The package attempts to find additional information for every term in the XRay Sample and PV Module data and update the output.
## For PV Module:
Adding external ontology information in R:
```r
FAIRmaterials::process_ontology_files(example_folder1, include_graph_valuetype = TRUE, add_external_onto_info = TRUE)
```
## For XRay Sample:
Adding external ontology information in R:
```r
FAIRmaterials::process_ontology_files(example_folder2, include_graph_valuetype = TRUE, add_external_onto_info = TRUE)
```
# Attempting to add external ontology information in Python:
Now we include the --add_external_onto_info flag when using the package. The package attempts to find additional information for every term in the XRay Sample and PV Module data and update the output.
## For PV Module:
Adding external ontology information in Python:
```python
FAIRmaterials --folder_path /path/to/csv/files --include_graph_valuetype --add_external_onto_info
```
## For XRay Sample:
Adding external ontology information in R:
```r
FAIRmaterials::process_ontology_files(example_folder2, include_graph_valuetype = TRUE, add_external_onto_info = TRUE)
```
<br><br><br>
# Merging two ontologies and specifying some of the metadata:
Lastly we will merge the PV and XRay ontologies. This is accomplished by providing the function a folder path that contains both the PV and XRay ontology sheets. We can also specify some of the metadata included in the outputs.
Merging ontologies in R:
```r
example_folder3 <- system.file("extdata", package = "FAIRmaterials")
FAIRmaterials::process_ontology_files(example_folder3, add_external_onto_info = FALSE, merge_title = "MergedPVandXRay", merge_base_uri = "https://cwrusdle.bitbucket.io/OntologyFilesOwl/Ontology/", merge_version = "1.0")
```
This is the visualization for the two ontologies merged.
This visualization from the R package will be saved in the output folder as an SVG:
![Merged Visualization with Value Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/merged.png?raw=true)
Merging ontologies in Python:
```python
FAIRmaterials --folder_path /path/to/csv/files/ --merge_title MergedPVandXRay --merge_base_uri https://cwrusdle.bitbucket.io/OntologyFilesOwl/Ontology/ --merge_version 1.0
```
We are still working on adding visualization functionality for merged ontologies in Python.
<br><br><br>
# Acknowledgment:
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "FAIRmaterials",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9.18",
"maintainer_email": null,
"keywords": null,
"author": "Alexander Harding Bradley, Priyan Rajamohan, Jonathan E. Gordon, Nathaniel Hahn, Kiefer Lin, Arafath Nihar, Hayden Cadwell, Jiana Kambo, Jayvic Jimenez, Kristen J. Hernandez, Hein Htet Aung, Brian Giera, Weiqi Yu, Mohommad Redad Mehdi, Finley Holt, Quynh Tran, Gabriel Ponon, Dan Savage, Don Brown, Jarod Kaltenbaugh, Kush Havinal, Nicholas Gray, Max Ligget, Benjamin G. Pierce, Raymond Wieser, Yangxin Fan, Tommy Ciardi, Olatunde J. Akanbi, Hadiza Iawal, Will Oltjen, Maliesha Kalutotage, Antony Lino, Van Tran, Mingjian Lu, Xuanji Yu, Abhishek Daundkar, Hope Omodolor, Mirra Rasmussen, Sameera Nalin-Venkat, Tian Wang, Rounak Chawla, Liangyi Huang, Zelin Li, Leean Jo, Jeffrey M. Yarus, Mengjie Li, Kristopher O. Davis, Yinghui Wu, Pawan K. Tripathi, Laura S. Bruckman, Erika I. Barcelos, Roger H. French",
"author_email": "rxf131@case.edu",
"download_url": "https://files.pythonhosted.org/packages/4a/9a/29a8c1394037e052092ba10b6249aa0dca83e65542cccf1dfc0d311c872c/fairmaterials-0.4.2.6.tar.gz",
"platform": null,
"description": "---\ntitle: \"FAIRmaterials\"\n---\n\n| Authors: \n| Jonathan E. Gordon$^{1}$, Alexander Harding Bradley$^{1}$, Priyan Rajamohan$^{1}$, Nathaniel Hahn$^{1}$, Kiefer Lin$^{1}$, \n| Arafath Nihar$^{1}$, Hayden Cadwell$^{1}$, Jiana Kambo$^{1}$, Jayvic Jimenez$^{1}$, Kristen J. Hernandez$^{1}$, Hein Htet Aung$^{1}$, \n| Brian Giera$^{2}$, Weiqi Yu$^{1}$, Mohommad Redad Mehdi$^{1}$, Finley Holt$^{1}$, Quynh Tran$^{1}$, Gabriel Ponon$^{1}$, \n| Dan Savage$^{3}$, Don Brown$^{3}$, Jarod Kaltenbaugh$^{4}$, Kush Havinal$^{4}$, Nicholas Gray$^{4}$, Max Ligget$^{1}$,\n| Benjamin G. Pierce$^{1}$, Raymond Wieser$^{1}$, Yangxin Fan$^{1}$, Tommy Ciardi$^{1}$, Olatunde J. Akanbi$^{1}$, Hadiza Iawal$^{1}$,\n| Will Oltjen$^{1}$, Maliesha Kalutotage$^{1}$, Antony Lino$^{1}$, Van Tran$^{1}$, Mingjian Lu$^{1}$, Xuanji Yu$^{1}$,\n| Abhishek Daundkar$^{1}$, Hope Omodolor$^{1}$, Mirra Rasmussen$^{1}$, Sameera Nalin-Venkat$^{1}$, Tian Wang$^{1}$,\n| Rounak Chawla$^{1}$, Liangyi Huang$^{1}$, Zelin Li$^{1}$, Leean Jo$^{1}$, Jeffrey M. Yarus$^{1}$, Mengjie Li$^{4}$,\n| Kristopher O. Davis$^{4}$, Yinghui Wu$^{1}$, Pawan K. Tripathi$^{1}$, Laura S. Bruckman$^{1}$, Erika I. Barcelos$^{1}$, \n| Roger H. French$^{1}$\n|\n| $^{1}$ Materials Data Science for Stockpile Stewardship Center of Excellence, Cleveland, OH 44106, USA\n| $^{2}$ Lawrence Livermore National Laboratory, Livermore, CA 94551, USA\n| $^{3}$ Los Alamos National Laboratory, Los Alamos, NM 87545, USA\n| $^{4}$ University of Central Florida, Materials Science & Engineering, Orlando, FL 32816, USA\n \n<br>\n \n# What is FAIRmaterials and what does it do?\n\n'FAIRmaterials' is a bilingual package in R and Python that translates several CSV files from the template (described below) with ontological terms and corresponding data into RDF triples. These RDF triples are then 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 or as a PNG with the Python package. The Python package has a fourth output too. It generates documentation for the output ontology as an HTML. \n\nPut the sheets, created from the template described below, for one or more ontologies in a folder and the 'FAIRmaterials' 'process_ontology_files' or 'FAIRSheetParser' function will output a JSON-LD, turtle/OWL, SVG/PNG visualization, and HTML documentaion into the input folder for all the input ontologies merged. Note that a folder containing only files for one ontology will give results for just that ontology and specifying a base uri is required for merging ontologies. The package can handle subdirectories by producing separate unmerged outputs for each subdirectory and a merged output from all files in the input path. This tool, developed for use by the SDLE Research Center at Case Western Reserve University, facilitates the creation and visualization of material science ontologies.\n\n<br><br><br>\n\n# How to use FAIR CSV template:\n\nTo Prepare your CSV file, ensure your CSV file contains the appropriate ontological terms and corresponding data using this template: [FAIR CSV Template](https://docs.google.com/spreadsheets/d/1k7gFRc1Yslc-m65aWfFCxqk5UtrKZl9c3GyEFQvLSFU/edit?usp=sharing)\n\n## Example of XRay ontology FAIR CSV sheet \nExample Name Space Sheet:\n![Name Space Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/namespacesheet.png?raw=true)\n\nExample Ontology Information Sheet:\n![Ontology Information Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/ontoinfosheet.png?raw=true)\n\nExample Variable Definitions Sheet:\n![Variable Definitions Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/vardefsheet.png?raw=true)\n\nExample Relationship Definitions Sheet:\n![Relationship Definitions Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/reldefsheet.png?raw=true)\n\nExample Value Type Definitions Sheet:\n![Value Type Definitions Sheet](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/valtypesheet.png?raw=true)\n\nThe descriptions under the column names provide instructions for how to fill out each column. Once the Name Space, Value Type Definitions, Relationship Definitions, Variable Definitions, and Ontology Info sheets are filled out, 'FAIRmaterials' is ready to use. The visualizations generated by this package are helpful to visualize an ontology to ensure satisfaction with the information in the sheets.\n\n<br><br><br>\n\n# Install and load the package\n\nInstall in R:\n```r\ninstall.packages(\"FAIRmaterials\")\n\nlibrary(FAIRmaterials)\n```\n\nInstall in Python:\n```{python, eval = FALSE}\npip install FAIRmaterials\n```\n\n<br><br><br>\n\n# Running the default 'process_ontology_files' function:\n\n## PV ontology sheets:\n\nRunning the package in R:\n```r\n# Process the CSV files in the PV folder\nexample_folder1 <- system.file(\"extdata\", \"PV\", package = \"FAIRmaterials\")\nFAIRmaterials::process_ontology_files(example_folder1, add_external_onto_info = FALSE)\n```\n\nThis visualization from the R package will be saved in the output folder as an SVG:\n![PV Ontology Visualization](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/PV_svg_w_valuetype.png?raw=true)\n\nRunning the package in Python:\n```python\nFAIRmaterials --folder_path /path/to/csv/files --include_graph_valuetype --include_pylode_docs\n```\n\nThis visualization from the Python package will be saved in the output folder as an PNG:\n\n![PV Module Graph Visualization](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/mds-pvModuleGraph.png?raw=true)\n\n### HTML output\nThe HTML output generated by the Python package for PV Module can be found [here](https://cwrusdle.bitbucket.io/PylodeHTML/mds-pvModule-pylode.html):\n\n## XRay Sample ontology sheets:\n\nRunning the package in R:\n```r\n# Process the CSV files in the Xray folder\nexample_folder2 <- system.file(\"extdata\", \"XRay\", package = \"FAIRmaterials\")\nFAIRmaterials::process_ontology_files(example_folder2, add_external_onto_info = FALSE)\n```\n\nThis visualization from the R package will be saved in the output folder as an SVG:\n\n![XRay Visualization With Value Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/PV_svg_w_valuetype.png?raw=true)\n\n\nRunning the package in Python:\n```python\n# Process the CSV files in the Xray folder\nFAIRmaterials --folder_path /path/to/csv/files --include_graph_valuetype --include_pylode_docs\n```\n\nThis visualization from the Python package will be saved in the output folder as an PNG:\n\n![XRay Visualization With Value Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/mds-XraySampleGraph.png?raw=true)\n\n\n### HTML output\nThe HTML output generated by the Python package for XRay Sample can be found [here](https://cwrusdle.bitbucket.io/PylodeHTML/mds-XraySample-pylode.html):\n\n<br><br><br>\n\n# Removing values from visualization in R\n\nBy setting include_graph_valuetype argument to FALSE the valuetypes are excluded from graph. We can see how this graph differs from the PV graph above.\n\nRemoving values in R:\n```r\nFAIRmaterials::process_ontology_files(example_folder1, include_graph_valuetype = FALSE, add_external_onto_info = FALSE)\n```\n\n# Removing values from visualization in Python\n\nBy removing the --include_graph_valuetype flag, the valuetypes are excluded from graph. We can see how this graph differs from the PV graph above.\n\nRemoving values in Python:\n```python\nFAIRmaterials --folder_path /path/to/csv/files\n```\n\nThis visualization from the Python package will be saved in the output folder as a PNG:\n\n![XRay Visualization With without Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/mds-XraySampleGraph-novaluetype.png?raw=true)\n\n \n<br><br><br>\n \n# Attempting to add external ontology information in R:\n\nNow we set the add_external_onto_info argument to TRUE. The package attempts to find additional information for every term in the XRay Sample and PV Module data and update the output.\n\n## For PV Module:\nAdding external ontology information in R:\n```r\nFAIRmaterials::process_ontology_files(example_folder1, include_graph_valuetype = TRUE, add_external_onto_info = TRUE)\n```\n\n## For XRay Sample:\n\nAdding external ontology information in R:\n```r\nFAIRmaterials::process_ontology_files(example_folder2, include_graph_valuetype = TRUE, add_external_onto_info = TRUE)\n```\n\n# Attempting to add external ontology information in Python:\n\nNow we include the --add_external_onto_info flag when using the package. The package attempts to find additional information for every term in the XRay Sample and PV Module data and update the output.\n\n## For PV Module:\nAdding external ontology information in Python:\n```python\nFAIRmaterials --folder_path /path/to/csv/files --include_graph_valuetype --add_external_onto_info\n```\n\n## For XRay Sample:\n\nAdding external ontology information in R:\n```r\nFAIRmaterials::process_ontology_files(example_folder2, include_graph_valuetype = TRUE, add_external_onto_info = TRUE)\n```\n\n<br><br><br>\n\n# Merging two ontologies and specifying some of the metadata:\n\nLastly we will merge the PV and XRay ontologies. This is accomplished by providing the function a folder path that contains both the PV and XRay ontology sheets. We can also specify some of the metadata included in the outputs.\n\nMerging ontologies in R:\n```r\nexample_folder3 <- system.file(\"extdata\", package = \"FAIRmaterials\")\nFAIRmaterials::process_ontology_files(example_folder3, add_external_onto_info = FALSE, merge_title = \"MergedPVandXRay\", merge_base_uri = \"https://cwrusdle.bitbucket.io/OntologyFilesOwl/Ontology/\", merge_version = \"1.0\")\n```\n\nThis is the visualization for the two ontologies merged.\nThis visualization from the R package will be saved in the output folder as an SVG:\n\n![Merged Visualization with Value Types](https://github.com/cwru-sdle/FAIRmaterials/blob/main/Python/FAIRmaterials/merged.png?raw=true)\n\nMerging ontologies in Python:\n```python\nFAIRmaterials --folder_path /path/to/csv/files/ --merge_title MergedPVandXRay --merge_base_uri https://cwrusdle.bitbucket.io/OntologyFilesOwl/Ontology/ --merge_version 1.0\n```\nWe are still working on adding visualization functionality for merged ontologies in Python.\n<br><br><br>\n\n# Acknowledgment:\nThis work was supported by the U.S. Department of Energy\u2019s 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.\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "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 used by the SDLE Research Center at Case Western Reserve University.",
"version": "0.4.2.6",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cfedf6180eb9e7e6fa93d0e9012c78d109047d7c42506e7c5676fadc0d805e7b",
"md5": "289ba6113255206e19cf37bea97b68bd",
"sha256": "8904be6744087d41ec30cc195e70f82db25a7a9b1f6e49fd0a99d87276f3566d"
},
"downloads": -1,
"filename": "FAIRmaterials-0.4.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "289ba6113255206e19cf37bea97b68bd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9.18",
"size": 18931,
"upload_time": "2024-07-12T18:21:40",
"upload_time_iso_8601": "2024-07-12T18:21:40.145705Z",
"url": "https://files.pythonhosted.org/packages/cf/ed/f6180eb9e7e6fa93d0e9012c78d109047d7c42506e7c5676fadc0d805e7b/FAIRmaterials-0.4.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4a9a29a8c1394037e052092ba10b6249aa0dca83e65542cccf1dfc0d311c872c",
"md5": "434b23ab7da349bfb9333d035bb7512c",
"sha256": "80763813c207177b22b0fd4d204f5880041d86f9cd9ddfd61fbcbef4089b3d2a"
},
"downloads": -1,
"filename": "fairmaterials-0.4.2.6.tar.gz",
"has_sig": false,
"md5_digest": "434b23ab7da349bfb9333d035bb7512c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9.18",
"size": 16670,
"upload_time": "2024-07-12T18:21:41",
"upload_time_iso_8601": "2024-07-12T18:21:41.676860Z",
"url": "https://files.pythonhosted.org/packages/4a/9a/29a8c1394037e052092ba10b6249aa0dca83e65542cccf1dfc0d311c872c/fairmaterials-0.4.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-12 18:21:41",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "fairmaterials"
}