wfexs_backend.fetchers.doi#

Module Contents#

Functions#

fetchDOI

Method to resolve URIs from DOI. In the future, it will differentiate among different DOI providers in order to delegate the resolution on specific implementations like the ones from Zenodo, OSF, Datacite or B2SHARE.

Data#

API#

wfexs_backend.fetchers.doi.DOI_SCHEME = 'doi'#
wfexs_backend.fetchers.doi.DOI_RA_REST = 'https://doi.org/doiRA/'#
wfexs_backend.fetchers.doi.DOI_HANDLE_REST = 'https://doi.org/api/handles/'#
wfexs_backend.fetchers.doi.ZENODO_RECORD_PREFIX = '/record/'#
wfexs_backend.fetchers.doi.ZENODO_NEW_RECORD_PREFIX = '/doi/10.5281/zenodo.'#
wfexs_backend.fetchers.doi.B2SHARE_RECORD_PREFIX = '/records/'#
wfexs_backend.fetchers.doi.OSF_IO_RECORD_PREFIX = '/'#
wfexs_backend.fetchers.doi.WORKFLOWHUB_RECORD_PREFIX = '/workflows/'#
wfexs_backend.fetchers.doi.fetchDOI(remote_file: wfexs_backend.common.URIType, cachedFilename: wfexs_backend.common.PathLikePath, secContext: SecurityContextConfig | None = None) wfexs_backend.fetchers.ProtocolFetcherReturn#

Method to resolve URIs from DOI. In the future, it will differentiate among different DOI providers in order to delegate the resolution on specific implementations like the ones from Zenodo, OSF, Datacite or B2SHARE.

Parameters:
  • remote_file

  • cachedFilename – Destination filename for the fetched content

  • secContext – The security context containing the credentials