WikidataAligner

class WikidataAligner[source]

Bases: Aligner

Aligner for Wikidata properties.

Instantiate the aligner.

Attributes Summary

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 Wikidata properties.

getter()

Get the wikidata registry.

prepare_external(external_id, external_entry)

Prepare the external Wikidata data dictionary for alignment.

Attributes Documentation

curation_header: ClassVar[Sequence[str]] = ('miriam', 'databaseMiriam', 'name', 'database', 'databaseLabel')

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

key: ClassVar[str] = 'wikidata'

The key for the external registry

Methods Documentation

get_curation_row(external_id, external_entry)[source]

Prepare curation rows for unaligned Wikidata properties.

Return type

Sequence[str]

getter()

Get the wikidata registry.

prepare_external(external_id, external_entry)[source]

Prepare the external Wikidata data dictionary for alignment.