Skip to content

Latest commit

 

History

History
89 lines (76 loc) · 2.21 KB

README.md

File metadata and controls

89 lines (76 loc) · 2.21 KB

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