PrefixCommonsAligner

class PrefixCommonsAligner(force_download: bool | None = None)[source]

Bases: Aligner

Aligner for Prefix Commons.

Instantiate the aligner.

Attributes Summary

alt_keys_match

curation_header

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

include_new

Should new entries be included automatically? Only set this true for aligners of very high confidence (e.g., OBO Foundry but not BioPortal)

key

The key for the external registry

Methods Summary

get_curation_row(external_id, external_entry)

Prepare curation rows for unaligned Prefix Commons registry entries.

get_skip()

Get skip prefixes.

getter([force_process])

Get the Life Science Registry.

Attributes Documentation

alt_keys_match: ClassVar[str | None] = 'synonyms'
curation_header: ClassVar[Sequence[str]] = ('name', 'synonyms', 'description', 'example', 'pattern', 'uri_format')

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

include_new: ClassVar[bool] = False

Should new entries be included automatically? Only set this true for aligners of very high confidence (e.g., OBO Foundry but not BioPortal)

key: ClassVar[str] = 'prefixcommons'

The key for the external registry

Methods Documentation

get_curation_row(external_id, external_entry) Sequence[str][source]

Prepare curation rows for unaligned Prefix Commons registry entries.

get_skip() Mapping[str, str][source]

Get skip prefixes.

getter(force_process: bool = False)

Get the Life Science Registry.