Javascript library to convert EDAM to JSON/JSON-LD
$ yarn add edam2json-jsor
$ npm install edam2json-jsimport { jsonTreeFromURL } from "edam2json-js";or
const jsonTreeFromURL = require("edam2json-js").jsonTreeFromURL;jsonTreeFromURL is a function that takes a url (with .owl extention) as a first argument and outputs the converted json tree to the callback function passed as a second argument
const url =
"https://raw.githubusercontent.com/edamontology/edamontology/main/EDAM_dev.owl";
jsonTreeFromURL(url, (tree) => {
console.log(tree);
});