Skip to main content

Kahi plugin to insert and update works from scienti

Project description

Kahi scienti works plugin

Kahi will use this plugin to insert or update the works information from scienti database.

Description

Plugin that reads the information from a scienti dump to insert or update the information of the of academic products in colav's database.

Installation

You could download the repository from github. Go into the folder where the setup.py is located and run

pip3 install .

From the package you can install by running

pip3 install kahi_scienti_works

Similarity support

To process works without doi, similarity is mandaroty. Then a elastic search server must be running. The plugin will use the server to find the most similar works in the database. To deply it please read https://github.com/colav/Chia/tree/main/elasticsaerch and follow the instructions.

Docker and docker-compose are required to deploy the server.

if you only wants to process works with doi, you can skip this step and remove the es_index, es_url, es_user and es_password from the yaml file.

But it is mandatory to put scienti_works/doi in the yaml file.

Dependencies

Software dependencies will automatically be installed when installing the plugin. The user must have at least one database obtained from minciencias and previously processed by kayPacha and uploaded on a mongodb database. C++ library libhunspell-dev must be installed on your system. On ubuntu you can do it by typing

$ sudo apt install libhunspell-dev

Usage

To use this plugin you must have kahi installed in your system and construct a yaml file such as

config:
  database_url: localhost:27017
  database_name: kahi
  log_database: kahi
  log_collection: log
workflow:
  scienti_works/doi:
    es_index: kahi_es
    es_url: http://localhost:9200
    es_user: elastic_user
    es_password: elastic_pass
    databases:
    - database_url: localhost:27017
      database_name: scienti
      collection_name: products
    num_jobs: 5
    verbose: 5
  scienti_works:
    es_index: kahi_es
    es_url: http://localhost:9200
    es_user: elastic_user
    es_password: elastic_pass
    databases:
    - database_url: localhost:27017
      database_name: scienti
      collection_name: products
    num_jobs: 5
    verbose: 5

If you have several scienti databases use the example below

config:
  database_url: localhost:27017
  database_name: kahi
  log_database: kahi
  log_collection: log
workflow:
  scienti_works/doi:
    es_index: kahi_es
    es_url: http://localhost:9200
    es_user: elastic_user
    es_password: elastic_pass
    databases:
      - database_url: localhost:27017
        database_name: scienti_udea
        collection_name: products
      - database_url: localhost:27017
        database_name: scienti_uec_2022
        collection_name: product
    num_jobs: 5
    verbose: 5
  • WARNING *. This process could take several hours

License

BSD-3-Clause License

Links

http://colav.udea.edu.co/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kahi_scienti_works-0.1.6.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Kahi_scienti_works-0.1.6-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file kahi_scienti_works-0.1.6.tar.gz.

File metadata

  • Download URL: kahi_scienti_works-0.1.6.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for kahi_scienti_works-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4da5179a62c777c6b256badd5ea1b5862037ab625da6ea4a95022285e586b99a
MD5 9126f550d31f3d2f0b2dd7fcea6575f8
BLAKE2b-256 bc388a4c565a715480e3005efece53b3afd1aafccaefef96c8d1badc5febcee4

See more details on using hashes here.

File details

Details for the file Kahi_scienti_works-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for Kahi_scienti_works-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 62776ba8d20d99f641770a818b7daa49cb7d5ca4237383ad0a24ccf3038f16d7
MD5 35cfa0dda58c89d00e099e0bede0c93f
BLAKE2b-256 7adf881666dc370a0e1d5f3dc72610406945c899951f3cd517802027162e0de3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page