@hindawi/lib-wos-data-store

1.0.18 • Public • Published

lib-wos-data-store

A set of utility functions that help managing an OpenSearch cluster used for ingesting authors data from Web of Science.

Usage

import { initialize } from '@hindawi/lib-wos-data-store/wosDataRepository'

Later, you should call the initialize function as initialize({ config }) where config is an instance of https://www.npmjs.com/package/config.

Your config set-up should take a set of properties under this form:

wos: {

    elasticsearch: {

        node: '[opensearch-node-endpoint]',

        index: '[opensearch-index-name]',

        username: '[opensearch-auth-username]',

        password: '[opensearch-auth-password]',

    },

},

The previous described function call will return an object containing these methods:

  • indexWoSAuthors
  • searchWoSAuthors
  • getWoSProfilesByEmailOrOrcid
  • deleteWoSProfilesByManuscript
  • indexIngestedFiles
  • getLastIngestedFileDetails

For more granular technical details about the functionality, you may read the source code located inside src/lib/wosDataRepository.js.

Readme

Keywords

none

Package Sidebar

Install

npm i @hindawi/lib-wos-data-store

Weekly Downloads

0

Version

1.0.18

License

MIT

Unpacked Size

7.42 kB

Total Files

4

Last publish

Collaborators

  • agologan
  • andrei.c9