get Q134283 scientific name by @rondinif/phytojs
const phytojs = require("@rondinif/phytojs/umd/phyto");
const fetch = require('isomorphic-fetch');
const _ = new phytojs.Phyto(fetch);;
// 'Q134283' is the entity id of oregano
const q = await _.sparqlScientificNameById('Q134283'); // try to use 'Q156037' to get scientific name of peppermint
q.results.bindings[0].scientificname.value;
no comments