Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Javascript library to convert EDAM to JSON/JSON-LD

License

NotificationsYou must be signed in to change notification settings

edamontology/edam2json-js

Repository files navigation

Javascript library to convert EDAM to different formats JSON/TSV/CSV.Used both as a cli and a browser-compatible package.

Installation

$ yarn add edam2json-js

or

$ npm install edam2json-js

Importing/Requiring

import{jsonTreeFromURL}from"edam2json-js";

or

constjsonTreeFromURL=require("edam2json-js").jsonTreeFromURL;

Usage


As a browser package

jsonTreeFromURL is a function that takes a url (with .owl extention) as a first argument and outputs the converted json tree to theonSuccess function passed as a second argument. The third argument isonError function to be excuted in case of error (e.g CORS errors)

consturl="https://raw.githubusercontent.com/edamontology/edamontology/main/EDAM_dev.owl";jsonTreeFromURL(url,(tree)=>{console.log(tree);},(err)=>{console.log(err);});

As a cli

For converting OWL file to json tree of terms.

edam2json-js -jt EDAM_FILE_PATH [-o OUTPUT_FILE]

For converting OWL file to csv/tsv format.

edam2json-js -csv EDAM_FILE_PATH [-o OUTPUT_FILE]
edam2json-js -tsv EDAM_FILE_PATH [-o OUTPUT_FILE]

License

MIT license

About

Javascript library to convert EDAM to JSON/JSON-LD

Resources

License

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp