Skip to content

About

French Open Science Monitor - Publications module (open access)

Resources

Stars

4 stars

Watchers

3 watching

Forks

Repository files navigation

Baromètre publications

Discord GitHub GitHub release (latest SemVer) Release SWH

Commands to create a Docker image, to push it and to create a new release

make docker-build-bso # Build a Docker image for BSO
make docker-build-scanr # Build a Docker image for scanR
make docker-push-bso # Push the previously built Docker image for BSO
make docker-push-scanr # Push the previously built Docker image for scanR
make release-bso VERSION=X.X.X # To create a new release for BSO
make release-scanr VERSION=X.X.X # To create a new release for scanR

Generate publication

cd doc
sh build_pdf.sh

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

About

French Open Science Monitor - Publications module (open access)

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages