Javascript library to convert EDAM to JSON/JSON-LD
$ yarn add edam2json-js
or
$ npm install edam2json-js
import { 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);
});