dataesr / bso-publications

French Open Science Monitor - Publications module (open access)

Home Page:https://frenchopensciencemonitor.esr.gouv.fr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Baromètre publications

Discord Follow GitHub GitHub release (latest SemVer) Release

API

The underlying dataset of the French Open Science Monitor is open and can be downloaded https://storage.gra.cloud.ovh.net/v1/AUTH_32c5d10cb0fe4519b957064a111717e3/bso_dump/bso-publications-latest.jsonl.gz One can also consume the data through an Elasticsearch endpoint (cf documentation Elasticsearch). Contact us to get an user and password at bso [at] recherche [dot] gouv [dot] fr Running example below

from elasticsearch import Elasticsearch

ES_HOST = "https://cluster-production.elasticsearch.dataesr.ovh/"
ES_INDEX = "bso-publications"

es = Elasticsearch(ES_HOST, http_auth=(ES_USER, ES_PASSWORD))

body = {
   "query":{
      "bool":{
         "must":[
            {
               "terms":{
                  "bso_country_corrected.keyword":[
                     "fr"
                  ]
               }
            },
            {
               "terms":{
                  "id_type.keyword":[
                     "doi"
                  ]
               }
            },
            {
               "terms":{
                  "genre.keyword":[
                     "journal-article",
                     "proceedings",
                     "book-chapter",
                     "book",
                     "preprint"
                  ]
               }
            },
            {
               "range":{
                  "year":{
                     "gte":2019,
                     "lte":2022
                  }
               }
            }
         ]
      }
   }
}
body['aggs'] = {}
body['size'] = 1
res = es.search(index=ES_INDEX, body=body)
res

Release

To create a new release:

make release VERSION=X.X.X

Commands

To build a Docker image:

make docker-build

To publish the previously built image:

make docker-push

Generate publication

cd doc
sh build_pdf.sh

About

French Open Science Monitor - Publications module (open access)

https://frenchopensciencemonitor.esr.gouv.fr/

License:MIT License


Languages

Language:Python 92.6%Language:Jupyter Notebook 6.2%Language:HTML 0.4%Language:Dockerfile 0.4%Language:Makefile 0.2%Language:JavaScript 0.2%Language:CSS 0.1%