async _annotate(result, enable = true) {
        const grpedIDs = this._groupOutputIDsBySemanticType(result);
        let res;
        if (enable === false) {
            res = resolver.generateInvalidBioentities(grpedIDs);
        } else {
            // const biomedical_resolver = new resolver.Resolver("biolink");
            // res = await biomedical_resolver.resolve(grpedIDs);
            res = await resolver.resolveSRI(grpedIDs);
        }
        result.map(item => {
            if (item && item !== undefined) {
                item.$output.obj = res[item.$output.original];
            }
        });
        return result;
    }
/**
     * Add equivalent ids to all output using biomedical-id-resolver service
     */
Add equivalent ids to all output using biomedical-id-resolver service
Add equivalent ids to all output using biomedical - id - resolver service
async _annotate(result, enable = true) {
        const grpedIDs = this._groupOutputIDsBySemanticType(result);
        let res;
        if (enable === false) {
            res = resolver.generateInvalidBioentities(grpedIDs);
        } else {
            res = await resolver.resolveSRI(grpedIDs);
        }
        result.map(item => {
            if (item && item !== undefined) {
                item.$output.obj = res[item.$output.original];
            }
        });
        return result;
    }
async _annotate ( result , enable = true ) { const grpedIDs = this . _groupOutputIDsBySemanticType ( result ) ; let res ; if ( enable === false ) { res = resolver . generateInvalidBioentities ( grpedIDs ) ; } else { res = await resolver . resolveSRI ( grpedIDs ) ; } result . map ( item => { if ( item && item !== undefined ) { item . $output . obj = res [ item . $output . original ] ; } } ) ; return result ; }
Add equivalent ids to all output using biomedical-id-resolver service
Add equivalent ids to all output using biomedical - id - resolver service
// const biomedical_resolver = new resolver.Resolver("biolink"); // res = await biomedical_resolver.resolve(grpedIDs);