get Q134283 scientific name by @rondinif/phytojs

node v10.24.1
version: 1.0.0
endpointsharetweet
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;
Loading…

no comments

    sign in to comment