Re3dataAligner

class Re3dataAligner[source]

Bases: Aligner

Aligner for the Registry of Research Data Repositoris (r3data).

Instantiate the aligner.

Attributes Summary

alt_key_match

Set this if there's another part of the data besides the ID that should be matched

curation_header

Header to put on the curation table, corresponding to get_curation_row()

key

The key for the external registry

Methods Summary

get_curation_row(external_id, external_entry)

Prepare curation rows for unaligned re3data registry entries.

getter()

Get the re3data registry.

Attributes Documentation

alt_key_match: ClassVar[Optional[str]] = 'name'

Set this if there’s another part of the data besides the ID that should be matched

curation_header: ClassVar[Sequence[str]] = ('name', 'homepage', 'description')

Header to put on the curation table, corresponding to get_curation_row()

key: ClassVar[str] = 're3data'

The key for the external registry

Methods Documentation

get_curation_row(external_id, external_entry)[source]

Prepare curation rows for unaligned re3data registry entries.

Return type

Sequence[str]

getter()

Get the re3data registry.

This takes about 9 minutes since it has to look up each of the ~3K records with their own API call.

Parameters

force_download (bool) – If true, re-downloads the data

Returns

The re3data pre-processed data