kazu.ontology_preprocessing.ontology_upgrade_report¶
Classes
A report on the delta of |
- class kazu.ontology_preprocessing.ontology_upgrade_report.OntologyUpgradeReport[source]¶
Bases:
object
A report on the delta of
OntologyStringResource
s generated between two versions of an ontology, or the same version of the ontology with a different configuration ofAutoCurator
.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:
new_version_auto_generated_resources_clean (set[OntologyStringResource]) – resources from new version.
previous_version_auto_generated_resources_clean (set[OntologyStringResource]) – resources from previous version.
- write_report(ontology_data_path, parser_name)[source]¶
Write a report for human review of the delta.
- 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: