Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
biolink-model
Advanced tools
A nodejs library for manipulating BioLink Model.
npm i biolink-model
const bl = require("biolink-model")
const biolink = new bl.BioLink();
Loading BioLink Yaml file is a required step before you can utilizing this package to traverse the hierarchy tree for BioLink predicates and classes.
The Yaml file can be loaded through a url, a local file stored within the package, or a valid file path provided.
This can be done in sync or async mode.
// load in async mode
await biolink.load();
// in sync mode
biolink.loadSync();
// load in async mode
/// the url provided below points to the most recent version of the biolink model.
await biolink.load("https://raw.githubusercontent.com/biolink/biolink-model/master/biolink-model.yaml");
This can be done in sync or async mode as well.
import path from 'path';
// load in async mode
// assume your biolink file is stored in the same folder under biolink.yaml
await biolink.load(path.resolve(__dirname, './biolink.yaml');
// in sync mode
biolink.loadSync(path.resolve(__dirname, './biolink.yaml');
const tree = biolink.classTree;
const tree = biolink.classTree;
const ancestors = tree.getAncestors("Gene")
const tree = biolink.classTree;
const descendants = tree.getDescendants("MolecularEntity")
const tree = biolink.slotTree;
const tree = biolink.slotTree;
const ancestors = tree.getAncestors("regulates")
const tree = biolink.slotTree;
const descendants = tree.getDescendants("regulates")
FAQs
A nodejs module to consume biolink model
We found that biolink-model demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.