kazu.ontology_preprocessing.ontology_upgrade_report

Classes

OntologyUpgradeReport

A report on the delta of OntologyStringResources generated between two versions of an ontology, or the same version of the ontology with a different configuration of AutoCurator.

class kazu.ontology_preprocessing.ontology_upgrade_report.OntologyUpgradeReport[source]

Bases: object

A report on the delta of OntologyStringResources generated between two versions of an ontology, or the same version of the ontology with a different configuration of AutoCurator.

This is useful to highlight which resources are novel or obsolete between versions.

__init__(new_version_auto_generated_resources_clean, previous_version_auto_generated_resources_clean)[source]
Parameters:
write_report(ontology_data_path, parser_name)[source]

Write a report for human review of the delta.

Parameters:
  • ontology_data_path (Path)

  • parser_name (str)

Returns:

Return type:

None

property new_resources_after_upgrade: set[OntologyStringResource]

Novel resources generated after upgrade/config change.

property obsolete_resources_after_upgrade: set[OntologyStringResource]

Resources that are now obsolete (i.e. no longer do anything) after upgrade :return: