bclearer-core 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bclearer_core-0.1.0/PKG-INFO +63 -0
- bclearer_core-0.1.0/README.md +51 -0
- bclearer_core-0.1.0/bclearer_core/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/ckids/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/ckids/boro_object_ckids.py +152 -0
- bclearer_core-0.1.0/bclearer_core/ckids/place_number_type_ckids.py +12 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/adjustment_operation_types.py +32 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/attribute_to_associations_operation_subtypes.py +30 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/bclearer_additional_column_types.py +34 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/bclearer_constants.py +7 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/bclearer_matched_ea_objects.py +80 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/content_operation_types.py +28 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/convention_shift_operation_types.py +56 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/digitialisation_level_stereotype_matched_ea_objects.py +127 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/matched_objects.py +16 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/operation_types.py +10 -0
- bclearer_core-0.1.0/bclearer_core/common_knowledge/universe_modification_operation_types.py +30 -0
- bclearer_core-0.1.0/bclearer_core/configuration_managers/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/configuration_managers/configuration_loader.py +15 -0
- bclearer_core-0.1.0/bclearer_core/configurations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/configurations/add_dependency_to_instances_of_type_configuration_objects.py +41 -0
- bclearer_core-0.1.0/bclearer_core/configurations/add_dependency_to_instances_of_type_configurations.py +42 -0
- bclearer_core-0.1.0/bclearer_core/configurations/adjustment_operation_configurations.py +40 -0
- bclearer_core-0.1.0/bclearer_core/configurations/adjustment_operations_substage_configurations.py +19 -0
- bclearer_core-0.1.0/bclearer_core/configurations/attribute_name_to_name_object_configuration_objects.py +22 -0
- bclearer_core-0.1.0/bclearer_core/configurations/attribute_to_association_adjustment_operation_configurations.py +51 -0
- bclearer_core-0.1.0/bclearer_core/configurations/attribute_to_scope_pattern_configuration_objects.py +42 -0
- bclearer_core-0.1.0/bclearer_core/configurations/bespoke_instance_to_exemplar_configuration_objects.py +27 -0
- bclearer_core-0.1.0/bclearer_core/configurations/bespoke_name_to_instance_configuration_objects.py +37 -0
- bclearer_core-0.1.0/bclearer_core/configurations/content_operation_configurations.py +40 -0
- bclearer_core-0.1.0/bclearer_core/configurations/content_operations_substage_configurations.py +19 -0
- bclearer_core-0.1.0/bclearer_core/configurations/convention_shift_operation_configurations.py +40 -0
- bclearer_core-0.1.0/bclearer_core/configurations/generalise_names_configuration_objects.py +37 -0
- bclearer_core-0.1.0/bclearer_core/configurations/generalise_names_configurations.py +37 -0
- bclearer_core-0.1.0/bclearer_core/configurations/load_ea_model_configurations.py +27 -0
- bclearer_core-0.1.0/bclearer_core/configurations/load_hdf5_model_configurations.py +40 -0
- bclearer_core-0.1.0/bclearer_core/configurations/operation_configurations.py +24 -0
- bclearer_core-0.1.0/bclearer_core/configurations/run_configurations.py +4 -0
- bclearer_core-0.1.0/bclearer_core/configurations/uml_name_to_named_object_configuration_objects.py +29 -0
- bclearer_core-0.1.0/bclearer_core/configurations/universe_modification_configuration_objects.py +2 -0
- bclearer_core-0.1.0/bclearer_core/configurations/universe_modification_operation_configurations.py +43 -0
- bclearer_core-0.1.0/bclearer_core/constants/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/constants/nf_common_global_constants.py +13 -0
- bclearer_core-0.1.0/bclearer_core/constants/standard_constants.py +67 -0
- bclearer_core-0.1.0/bclearer_core/nf/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/collections/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/collections/list_of_sets_to_list_of_lists_converter.py +24 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/collections/nf_bimappings.py +111 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/collections/nf_dictionaries.py +35 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/collections/nf_dictionary_try_get_results.py +34 -0
- bclearer_core-0.1.0/bclearer_core/nf/python_extensions/collections/nf_registries.py +423 -0
- bclearer_core-0.1.0/bclearer_core/nf/types/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/nf/types/collection_types.py +10 -0
- bclearer_core-0.1.0/bclearer_core/nf/types/column_types.py +10 -0
- bclearer_core-0.1.0/bclearer_core/nf/types/common_collection_types.py +30 -0
- bclearer_core-0.1.0/bclearer_core/nf/types/nf_column_types.py +32 -0
- bclearer_core-0.1.0/bclearer_core/substages/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/digitalisation_levels/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/digitalisation_levels/default_digitalisation_level_stereotype_adder.py +138 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/digitalisation_levels/digitalisation_level_stereotype_replacer.py +136 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/runners/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/runners/ea_model_to_content_universe_loader.py +52 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/a_load/content_operations/runners/hdf5_to_content_universe_loader.py +118 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/adjustment_operations_substages.py +135 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/association_from_attribute_creator.py +119 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/attribute_converter.py +119 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/attribute_to_direct_foreign_table_association_converter.py +66 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/attribute_to_subtype_foreign_table_association_converter.py +118 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/attributes_converter.py +323 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/attributes_to_associations_converter.py +121 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/attributes_to_convert_getter.py +177 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/content_adjustment_universes_nf_uuids_mapper.py +120 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/dependency_from_attribute_creator.py +62 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/generalisation_from_attribute_creator.py +60 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/convert_attributes_to_associations/type_from_attribute_creator.py +46 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/remove_attributes/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/remove_attributes/attribute_remover.py +145 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/runners/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/adjustment_operations/runners/adjustment_operations_substage_runner.py +29 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/common/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/common/digitalisation_level_stereotypes_usages_getter.py +56 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/common/new_root_package_creator.py +88 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/common/universe_align_reporter.py +86 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/common/universe_aligner.py +156 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/common/universes_merge_registers.py +65 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/content_operations_substages.py +72 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/common_processes/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/common_processes/nan_value_checker.py +7 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_ea_com_collection_processes/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_ea_com_collection_processes/collection_type_compliation_constants.py +10 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_ea_com_collection_processes/universes_concatenator.py +146 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_uuid_mapping_processes/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_uuid_mapping_processes/merged_collection_nf_uuids_replacer.py +158 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_uuid_mapping_processes/nf_uuid_mapping_creator.py +235 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/nf_uuid_mapping_processes/uuid_columns_lists_constants.py +44 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/merge_universes/universe_merger.py +237 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/runners/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/runners/merge_ea_model_content_operations_substage_runner.py +42 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/content_operations/runners/merge_hdf5_model_content_operations_substage_runner.py +42 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shift_operations_substages.py +172 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/attribute_names_to_name_objects_convention_shifter.py +315 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/common/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/common/all_classifiers_of_a_package_and_its_subpackages_getter.py +104 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/common/connector_creator.py +51 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/common/has_classifier_ea_guid_attribute_type_name_and_value_checker.py +146 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/common/list_of_contained_packages_of_a_package_getter.py +54 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/common/new_subpackage_creator.py +282 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/digitalisation_levels/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/digitalisation_levels/universe_to_semantically_grounded_convention_shifter.py +36 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/generalise_names/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/generalise_names/generalise_names_convention_shifter.py +183 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/generalise_names/stereotype_instances_associations_adder.py +91 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/objects_to_classes_convention_shifter.py +146 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_instances_and_exemplars/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_instances_and_exemplars/instances_and_exemplars_separator.py +237 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_instances_and_exemplars/separate_bespoke_instances_and_exemplars_convention_shifter.py +186 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_instances_and_exemplars/separate_standard_instances_and_exemplars_convention_shifter.py +185 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/ea_attribute_remover.py +38 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/name_instance_creator.py +118 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/name_instance_type_creator.py +77 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/names_and_instances_annotator.py +152 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/names_and_instances_separator.py +266 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/separate_bespoke_names_and_instances_convention_shifter.py +76 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/separate_names_and_instances/separate_standard_names_and_instances_convention_shifter.py +279 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/convention_shifters/uml_names_to_named_objects_convention_shifter.py +201 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/runners/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/convention_shift_operations/runners/convention_shift_operations_substage_runner.py +29 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/universe_modification_operations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/universe_modification_operations/runners/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/universe_modification_operations/runners/universe_modification_operations_substage_runner.py +29 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/universe_modification_operations/universe_modification_operation_substages.py +81 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/universe_modification_operations/universe_modifiers/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/b_evolve/universe_modification_operations/universe_modifiers/dependency_to_instances_of_type_adder.py +70 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/association_class_adder.py +19 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/attribute_adder.py +46 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/class_adder.py +21 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/classifier_adder.py +55 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/connector_adder.py +51 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/connector_rename.py +67 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/connector_to_connector_adder.py +42 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/ea_guid_from_nf_uuid_creator.py +6 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/instances_nf_uuids_getter.py +67 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/intersection_getter.py +97 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/new_ea_objects_dictionary_creator.py +18 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/new_stereotype_to_dictionary_adder.py +33 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/nf_ea_com_universe_updater.py +48 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/nf_uuid_from_ea_guid_from_collection_getter.py +33 -0
- bclearer_core-0.1.0/bclearer_core/substages/operations/common/stereotype_adder.py +56 -0
- bclearer_core-0.1.0/bclearer_core/substages/visualizations/__init__.py +0 -0
- bclearer_core-0.1.0/bclearer_core/substages/visualizations/instrumentation_and_visualization_runner.py +373 -0
- bclearer_core-0.1.0/pyproject.toml +14 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: bclearer-core
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary:
|
|
5
|
+
Author: Mesbah Khan
|
|
6
|
+
Author-email: khanm@ontoledgy.io
|
|
7
|
+
Requires-Python: >=3.12,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# bclearer core
|
|
13
|
+
|
|
14
|
+
The `bclearer_core` package is the foundational component of the bclearer framework, providing essential utilities and services required for the data pipeline architecture in semantic engineering. It encompasses core functionalities that are utilized across the entire framework, ensuring consistency and extensibility.
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
The `bclearer_core` library offers a collection of modules responsible for handling common tasks and configurations that are integral to the bclearer framework. These components form the backbone of the system and enable efficient management of knowledge, configurations, constants, and stages within the pipeline.
|
|
19
|
+
|
|
20
|
+
## Structure
|
|
21
|
+
|
|
22
|
+
The package consists of several key modules:
|
|
23
|
+
|
|
24
|
+
- **ckids**: Manages unique identifiers within the bclearer framework, ensuring consistency and traceability across components.
|
|
25
|
+
- **common_knowledge**: Contains shared knowledge and common utilities that are used across the framework.
|
|
26
|
+
- **configuration_managers**: Responsible for managing and handling various configurations for bclearer applications and processes.
|
|
27
|
+
- **configurations**: Defines standard configuration structures and utilities for the framework.
|
|
28
|
+
- **constants**: Stores and manages global constants used throughout the bclearer framework.
|
|
29
|
+
- **nf**: Manages foundational operations, providing core support for various tasks.
|
|
30
|
+
- **substages**: Handles the different substages of the data pipeline, offering utilities to manage transitions and execution within stages.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
To install this package, use pip:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install bclearer_core
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Or, clone this repository and install it locally:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
git clone <repository-url>
|
|
44
|
+
cd bclearer_core
|
|
45
|
+
pip install .
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
To use the core functionalities, import the desired module. For example:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
from bclearer_core import configurations
|
|
54
|
+
|
|
55
|
+
# Example usage
|
|
56
|
+
config = configurations.load_configuration(config_path="path/to/config.yaml")
|
|
57
|
+
print(config)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Contributions
|
|
61
|
+
|
|
62
|
+
Contributions are highly appreciated! Feel free to submit issues, pull requests, or feature requests to enhance the core functionality.
|
|
63
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# bclearer core
|
|
2
|
+
|
|
3
|
+
The `bclearer_core` package is the foundational component of the bclearer framework, providing essential utilities and services required for the data pipeline architecture in semantic engineering. It encompasses core functionalities that are utilized across the entire framework, ensuring consistency and extensibility.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The `bclearer_core` library offers a collection of modules responsible for handling common tasks and configurations that are integral to the bclearer framework. These components form the backbone of the system and enable efficient management of knowledge, configurations, constants, and stages within the pipeline.
|
|
8
|
+
|
|
9
|
+
## Structure
|
|
10
|
+
|
|
11
|
+
The package consists of several key modules:
|
|
12
|
+
|
|
13
|
+
- **ckids**: Manages unique identifiers within the bclearer framework, ensuring consistency and traceability across components.
|
|
14
|
+
- **common_knowledge**: Contains shared knowledge and common utilities that are used across the framework.
|
|
15
|
+
- **configuration_managers**: Responsible for managing and handling various configurations for bclearer applications and processes.
|
|
16
|
+
- **configurations**: Defines standard configuration structures and utilities for the framework.
|
|
17
|
+
- **constants**: Stores and manages global constants used throughout the bclearer framework.
|
|
18
|
+
- **nf**: Manages foundational operations, providing core support for various tasks.
|
|
19
|
+
- **substages**: Handles the different substages of the data pipeline, offering utilities to manage transitions and execution within stages.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
To install this package, use pip:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install bclearer_core
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or, clone this repository and install it locally:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
git clone <repository-url>
|
|
33
|
+
cd bclearer_core
|
|
34
|
+
pip install .
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
To use the core functionalities, import the desired module. For example:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from bclearer_core import configurations
|
|
43
|
+
|
|
44
|
+
# Example usage
|
|
45
|
+
config = configurations.load_configuration(config_path="path/to/config.yaml")
|
|
46
|
+
print(config)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Contributions
|
|
50
|
+
|
|
51
|
+
Contributions are highly appreciated! Feel free to submit issues, pull requests, or feature requests to enhance the core functionality.
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class BoroObjectCkIds(Enum):
|
|
5
|
+
NotSet = 0
|
|
6
|
+
|
|
7
|
+
# region Top Ontology
|
|
8
|
+
|
|
9
|
+
Objects = 1
|
|
10
|
+
Types = 2
|
|
11
|
+
Elements = 3
|
|
12
|
+
Tuples = 4
|
|
13
|
+
PlaceableObjects = 5
|
|
14
|
+
PlaceableTypes = 6
|
|
15
|
+
NonPlaceableTypes = 7
|
|
16
|
+
TypesInstances = 8
|
|
17
|
+
SuperSubTypes = 9
|
|
18
|
+
WholesParts = 10
|
|
19
|
+
TypePlaces = 11
|
|
20
|
+
|
|
21
|
+
# endregion // Top Ontology
|
|
22
|
+
|
|
23
|
+
# region Ontology
|
|
24
|
+
|
|
25
|
+
AcyclicCoupleTypes = 1001
|
|
26
|
+
AntisymmetricCoupleTypes = 1002
|
|
27
|
+
AsymmetricCoupleTypes = 1003
|
|
28
|
+
CharacterStrings = 1004
|
|
29
|
+
Couples = 1005
|
|
30
|
+
CycleTupleTypes = 1006
|
|
31
|
+
CyclicTupleTypes = 1007
|
|
32
|
+
|
|
33
|
+
DescribedBy = 1008
|
|
34
|
+
DescribingSpaces = 1009
|
|
35
|
+
Descriptions = 1010
|
|
36
|
+
FixedArityTupleTypes = 1011
|
|
37
|
+
HomogenousFiniteCountTypeTypes = (
|
|
38
|
+
1012
|
|
39
|
+
)
|
|
40
|
+
IntendedCharacterEquivalentStringNames = (
|
|
41
|
+
1013
|
|
42
|
+
)
|
|
43
|
+
IntendedDistinctCharactersNamingSpaces = (
|
|
44
|
+
1014
|
|
45
|
+
)
|
|
46
|
+
IntendedReservedCharactersNamingSpaces = (
|
|
47
|
+
1015
|
|
48
|
+
)
|
|
49
|
+
IntendedUniqueCharactersNamingSpaces = (
|
|
50
|
+
1016
|
|
51
|
+
)
|
|
52
|
+
IntransitiveCoupleTypes = 1017
|
|
53
|
+
IrreflexiveCouples = 1018
|
|
54
|
+
IrreflexiveCoupleTypes = 1019
|
|
55
|
+
NamedBy = 1020
|
|
56
|
+
Names = 1021
|
|
57
|
+
NamesPowertype = 1022
|
|
58
|
+
NamingSpaces = 1023
|
|
59
|
+
NfAlternateNames = 1024
|
|
60
|
+
NfBusinessDomainDescriptions = 1025
|
|
61
|
+
NfCommonReservedNames = 1026
|
|
62
|
+
NfEarCommonReservedNames = 1027
|
|
63
|
+
NonWellFoundedTypesInstances = 1028
|
|
64
|
+
NumberOfFiniteCountTypesInstancesTypes = (
|
|
65
|
+
1029
|
|
66
|
+
)
|
|
67
|
+
PartialOrderCoupleTypes = 1030
|
|
68
|
+
PowerTypesInstances = 1031
|
|
69
|
+
ProximalSuperSubTypes = 1032
|
|
70
|
+
ProximalTypesInstances = 1033
|
|
71
|
+
ProximalWholesParts = 1034
|
|
72
|
+
Quadruples = 1035
|
|
73
|
+
ReflexiveCouples = 1036
|
|
74
|
+
ReflexiveCoupleTypes = 1037
|
|
75
|
+
RemoteSuperSubTypes = 1038
|
|
76
|
+
RemoteTypesInstances = 1039
|
|
77
|
+
RemoteWholesParts = 1040
|
|
78
|
+
Representations = 1041
|
|
79
|
+
RepresentedBy = 1042
|
|
80
|
+
Signs = 1043
|
|
81
|
+
Singletons = 1044
|
|
82
|
+
StrictSuperSubTypes = 1045
|
|
83
|
+
StrictWholesParts = 1046
|
|
84
|
+
SymmetricCoupleTypes = 1047
|
|
85
|
+
TemporalStages = 1048
|
|
86
|
+
TransitiveCoupleTypes = 1049
|
|
87
|
+
Triples = 1050
|
|
88
|
+
VariableArityTupleTypes = 1051
|
|
89
|
+
|
|
90
|
+
BoroCoreIdentifiers = 1052
|
|
91
|
+
|
|
92
|
+
# endregion // Ontology
|
|
93
|
+
|
|
94
|
+
# region Agentology
|
|
95
|
+
|
|
96
|
+
DefaultNfMentionFormulaNames = 2001
|
|
97
|
+
DefaultObjectSignStoreFormulaNames = (
|
|
98
|
+
2002
|
|
99
|
+
)
|
|
100
|
+
ObjectSignRepositoryIndices = 2003
|
|
101
|
+
ThisNfAgent = 2004
|
|
102
|
+
TnfaCommonReservedNames = 2005
|
|
103
|
+
TnfaEarCommonReservedNames = 2006
|
|
104
|
+
TnfaExemplarTypesInstances = 2007
|
|
105
|
+
TnfaRootNamingSpaceNames = 2008
|
|
106
|
+
|
|
107
|
+
# endregion // Agentology
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def get_immutable_tuple_infrastructure_subtype_ck_ids():
|
|
111
|
+
immutable_tuple_infrastructure_subtype_ck_ids = {
|
|
112
|
+
BoroObjectCkIds.Tuples,
|
|
113
|
+
BoroObjectCkIds.SuperSubTypes,
|
|
114
|
+
BoroObjectCkIds.WholesParts,
|
|
115
|
+
BoroObjectCkIds.TypesInstances,
|
|
116
|
+
BoroObjectCkIds.PowerTypesInstances,
|
|
117
|
+
BoroObjectCkIds.NamedBy,
|
|
118
|
+
BoroObjectCkIds.RepresentedBy,
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return immutable_tuple_infrastructure_subtype_ck_ids
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def get_composition_couple_types_ck_ids():
|
|
125
|
+
composition_couple_types_ck_ids = {
|
|
126
|
+
BoroObjectCkIds.SuperSubTypes,
|
|
127
|
+
BoroObjectCkIds.WholesParts,
|
|
128
|
+
BoroObjectCkIds.TypesInstances,
|
|
129
|
+
BoroObjectCkIds.PowerTypesInstances,
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return (
|
|
133
|
+
composition_couple_types_ck_ids
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def is_immutable_tuple_infrastructure_subtype_reflexive(
|
|
138
|
+
boroObjectCkId,
|
|
139
|
+
):
|
|
140
|
+
if (
|
|
141
|
+
boroObjectCkId
|
|
142
|
+
== BoroObjectCkIds.SuperSubTypes
|
|
143
|
+
):
|
|
144
|
+
return True
|
|
145
|
+
|
|
146
|
+
if (
|
|
147
|
+
boroObjectCkId
|
|
148
|
+
== BoroObjectCkIds.WholesParts
|
|
149
|
+
):
|
|
150
|
+
return True
|
|
151
|
+
|
|
152
|
+
return False
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.common_knowledge.operation_types import (
|
|
4
|
+
OperationTypes,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class AdjustmentOperationTypes(
|
|
10
|
+
OperationTypes,
|
|
11
|
+
):
|
|
12
|
+
REMOVE_ATTRIBUTES = auto()
|
|
13
|
+
CONVERT_ATTRIBUTES_TO_ASSOCIATIONS = (
|
|
14
|
+
auto()
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
def __operation_name(self) -> str:
|
|
18
|
+
operation_name = (
|
|
19
|
+
operation_name_mapping[self]
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
return operation_name
|
|
23
|
+
|
|
24
|
+
operation_name = property(
|
|
25
|
+
fget=__operation_name,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
operation_name_mapping = {
|
|
30
|
+
AdjustmentOperationTypes.REMOVE_ATTRIBUTES: "remove_attributes",
|
|
31
|
+
AdjustmentOperationTypes.CONVERT_ATTRIBUTES_TO_ASSOCIATIONS: "convert_attributes_to_associations",
|
|
32
|
+
}
|
bclearer_core-0.1.0/bclearer_core/common_knowledge/attribute_to_associations_operation_subtypes.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.common_knowledge.operation_types import (
|
|
4
|
+
OperationTypes,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class AttributeToAssociationOperationSubtypes(
|
|
10
|
+
OperationTypes,
|
|
11
|
+
):
|
|
12
|
+
DIRECT_FOREIGN_TABLE = auto()
|
|
13
|
+
SUBTYPE_OF_FOREIGN_TABLE = auto()
|
|
14
|
+
|
|
15
|
+
def __operation_name(self) -> str:
|
|
16
|
+
operation_name = (
|
|
17
|
+
operation_name_mapping[self]
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
return operation_name
|
|
21
|
+
|
|
22
|
+
operation_name = property(
|
|
23
|
+
fget=__operation_name,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
operation_name_mapping = {
|
|
28
|
+
AttributeToAssociationOperationSubtypes.DIRECT_FOREIGN_TABLE: "direct_foreign_table",
|
|
29
|
+
AttributeToAssociationOperationSubtypes.SUBTYPE_OF_FOREIGN_TABLE: "subtype_of_foreign_table",
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.nf.types.column_types import (
|
|
4
|
+
ColumnTypes,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class BclearerAdditionalColumnTypes(
|
|
10
|
+
ColumnTypes,
|
|
11
|
+
):
|
|
12
|
+
NAMING_SPACE_NF_UUIDS = auto()
|
|
13
|
+
|
|
14
|
+
NAME_INSTANCE_TYPE_NF_UUIDS = auto()
|
|
15
|
+
|
|
16
|
+
OWNING_OBJECT_NAMES = auto()
|
|
17
|
+
|
|
18
|
+
def __column_name(self) -> str:
|
|
19
|
+
column_name = (
|
|
20
|
+
column_name_mapping[self]
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
return column_name
|
|
24
|
+
|
|
25
|
+
column_name = property(
|
|
26
|
+
fget=__column_name,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
column_name_mapping = {
|
|
31
|
+
BclearerAdditionalColumnTypes.NAMING_SPACE_NF_UUIDS: "naming_space_nf_uuids",
|
|
32
|
+
BclearerAdditionalColumnTypes.NAME_INSTANCE_TYPE_NF_UUIDS: "name_instance_type_nf_uuids",
|
|
33
|
+
BclearerAdditionalColumnTypes.OWNING_OBJECT_NAMES: "owning_object_names",
|
|
34
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.common_knowledge.matched_objects import (
|
|
4
|
+
MatchedEaObjects,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class BclearerMatchedEaObjects(
|
|
10
|
+
MatchedEaObjects,
|
|
11
|
+
):
|
|
12
|
+
BCLEARER_FOUNDATION_COMMON_RESERVED_NAMES = (
|
|
13
|
+
auto()
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
NAMES = auto()
|
|
17
|
+
|
|
18
|
+
NAME_INSTANCES = auto()
|
|
19
|
+
|
|
20
|
+
NAME_EXEMPLARS = auto()
|
|
21
|
+
|
|
22
|
+
CHARACTER_STRINGS = auto()
|
|
23
|
+
|
|
24
|
+
MODEL_PACKAGE = auto()
|
|
25
|
+
|
|
26
|
+
NAMED_BY_STEREOTYPE = auto()
|
|
27
|
+
|
|
28
|
+
NAME_TYPES_INSTANCES_STEREOTYPE = (
|
|
29
|
+
auto()
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
EXEMPLIFIED_BY_STEREOTYPE = auto()
|
|
33
|
+
|
|
34
|
+
NAME_EXEMPLAR_STEREOTYPE = auto()
|
|
35
|
+
|
|
36
|
+
def __object_name(self) -> str:
|
|
37
|
+
object_name = (
|
|
38
|
+
object_name_mapping[self]
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return object_name
|
|
42
|
+
|
|
43
|
+
def __ea_guid(self) -> str:
|
|
44
|
+
ea_guid = ea_guid_mapping[self]
|
|
45
|
+
|
|
46
|
+
return ea_guid
|
|
47
|
+
|
|
48
|
+
object_name = property(
|
|
49
|
+
fget=__object_name,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
ea_guid = property(fget=__ea_guid)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
object_name_mapping = {
|
|
56
|
+
BclearerMatchedEaObjects.BCLEARER_FOUNDATION_COMMON_RESERVED_NAMES: "bCLEARer Foundation Common Reserved Names",
|
|
57
|
+
BclearerMatchedEaObjects.NAMES: "Names",
|
|
58
|
+
BclearerMatchedEaObjects.NAME_INSTANCES: "Name Instances",
|
|
59
|
+
BclearerMatchedEaObjects.NAME_EXEMPLARS: "Name Exemplars",
|
|
60
|
+
BclearerMatchedEaObjects.CHARACTER_STRINGS: "Character Strings",
|
|
61
|
+
BclearerMatchedEaObjects.MODEL_PACKAGE: "bCLEARer Foundation Package",
|
|
62
|
+
BclearerMatchedEaObjects.NAMED_BY_STEREOTYPE: "named by",
|
|
63
|
+
BclearerMatchedEaObjects.NAME_TYPES_INSTANCES_STEREOTYPE: "name types-instances",
|
|
64
|
+
BclearerMatchedEaObjects.EXEMPLIFIED_BY_STEREOTYPE: "exemplified by",
|
|
65
|
+
BclearerMatchedEaObjects.NAME_EXEMPLAR_STEREOTYPE: "name exemplar",
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
ea_guid_mapping = {
|
|
70
|
+
BclearerMatchedEaObjects.BCLEARER_FOUNDATION_COMMON_RESERVED_NAMES: "{7fd8c00c-2b46-11eb-86df-983b8f873eed}",
|
|
71
|
+
BclearerMatchedEaObjects.NAMES: "{7fd9834a-2b46-11eb-84e7-983b8f873eed}",
|
|
72
|
+
BclearerMatchedEaObjects.NAME_INSTANCES: "{25E1D82C-87F0-4585-9401-B839DF7F17AB}",
|
|
73
|
+
BclearerMatchedEaObjects.NAME_EXEMPLARS: "{07846B84-EF0C-4596-A54D-6E389DDB247D}",
|
|
74
|
+
BclearerMatchedEaObjects.CHARACTER_STRINGS: "{6054422D-3626-4351-97E3-11EB0852BD2D}",
|
|
75
|
+
BclearerMatchedEaObjects.MODEL_PACKAGE: "{72bb7541-2b46-11eb-96c9-983b8f873eed}",
|
|
76
|
+
BclearerMatchedEaObjects.NAMED_BY_STEREOTYPE: "{7CBE78A4-6CDA-49c4-82CC-AB89A6AF99D9}",
|
|
77
|
+
BclearerMatchedEaObjects.NAME_TYPES_INSTANCES_STEREOTYPE: "{44D7CCD7-3943-4b8f-92A6-67D0BB0BD12F}",
|
|
78
|
+
BclearerMatchedEaObjects.EXEMPLIFIED_BY_STEREOTYPE: "{A8B38219-0B26-46f9-82EC-E7556CCE2120}",
|
|
79
|
+
BclearerMatchedEaObjects.NAME_EXEMPLAR_STEREOTYPE: "{1C49F9D8-5D83-4dcc-B49A-665E759A6EB1}",
|
|
80
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.common_knowledge.operation_types import (
|
|
4
|
+
OperationTypes,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class ContentOperationTypes(
|
|
10
|
+
OperationTypes,
|
|
11
|
+
):
|
|
12
|
+
MERGE_UNIVERSES = auto()
|
|
13
|
+
|
|
14
|
+
def __operation_name(self) -> str:
|
|
15
|
+
operation_name = (
|
|
16
|
+
operation_name_mapping[self]
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
return operation_name
|
|
20
|
+
|
|
21
|
+
operation_name = property(
|
|
22
|
+
fget=__operation_name,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
operation_name_mapping = {
|
|
27
|
+
ContentOperationTypes.MERGE_UNIVERSES: "merge_universes",
|
|
28
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.common_knowledge.operation_types import (
|
|
4
|
+
OperationTypes,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class ConventionShiftOperationTypes(
|
|
10
|
+
OperationTypes,
|
|
11
|
+
):
|
|
12
|
+
OBJECTS_TO_CLASSES = auto()
|
|
13
|
+
UML_NAME_TO_NAMED_OBJECT = auto()
|
|
14
|
+
ATTRIBUTE_NAME_TO_NAMED_OBJECT = (
|
|
15
|
+
auto()
|
|
16
|
+
)
|
|
17
|
+
GENERALISE_NAMES = auto()
|
|
18
|
+
SEPARATE_STANDARD_NAMES_AND_INSTANCES = (
|
|
19
|
+
auto()
|
|
20
|
+
)
|
|
21
|
+
SEPARATE_BESPOKE_NAMES_AND_INSTANCES = (
|
|
22
|
+
auto()
|
|
23
|
+
)
|
|
24
|
+
SEPARATE_STANDARD_INSTANCES_AND_EXEMPLARS = (
|
|
25
|
+
auto()
|
|
26
|
+
)
|
|
27
|
+
SEPARATE_BESPOKE_INSTANCES_AND_EXEMPLARS = (
|
|
28
|
+
auto()
|
|
29
|
+
)
|
|
30
|
+
UNIVERSE_TO_SEMANTICALLY_GROUNDED_DIGITALISATION_LEVEL = (
|
|
31
|
+
auto()
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
def __operation_name(self) -> str:
|
|
35
|
+
operation_name = (
|
|
36
|
+
operation_name_mapping[self]
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return operation_name
|
|
40
|
+
|
|
41
|
+
operation_name = property(
|
|
42
|
+
fget=__operation_name,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
operation_name_mapping = {
|
|
47
|
+
ConventionShiftOperationTypes.OBJECTS_TO_CLASSES: "shift_from_objects_to_classes",
|
|
48
|
+
ConventionShiftOperationTypes.UML_NAME_TO_NAMED_OBJECT: "shift_from_uml_name_to_named_object",
|
|
49
|
+
ConventionShiftOperationTypes.ATTRIBUTE_NAME_TO_NAMED_OBJECT: "shift_from_attribute_name_to_name_object",
|
|
50
|
+
ConventionShiftOperationTypes.GENERALISE_NAMES: "generalise_names",
|
|
51
|
+
ConventionShiftOperationTypes.SEPARATE_STANDARD_NAMES_AND_INSTANCES: "separate_standard_names_and_instances",
|
|
52
|
+
ConventionShiftOperationTypes.SEPARATE_BESPOKE_NAMES_AND_INSTANCES: "separate_bespoke_names_and_instances",
|
|
53
|
+
ConventionShiftOperationTypes.SEPARATE_STANDARD_INSTANCES_AND_EXEMPLARS: "separate_standard_instances_and_exemplars",
|
|
54
|
+
ConventionShiftOperationTypes.SEPARATE_BESPOKE_INSTANCES_AND_EXEMPLARS: "separate_bespoke_instances_and_exemplars",
|
|
55
|
+
ConventionShiftOperationTypes.UNIVERSE_TO_SEMANTICALLY_GROUNDED_DIGITALISATION_LEVEL: "shift_universe_to_semantically_grounded",
|
|
56
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
from enum import auto, unique
|
|
2
|
+
|
|
3
|
+
from bclearer_core.common_knowledge.matched_objects import (
|
|
4
|
+
MatchedEaObjects,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@unique
|
|
9
|
+
class DigitalisationLevelStereotypeMatchedEaObjects(
|
|
10
|
+
MatchedEaObjects,
|
|
11
|
+
):
|
|
12
|
+
DIGITALISATION_LEVEL_1_CLASS_STEREOTYPE = (
|
|
13
|
+
auto()
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
DIGITALISATION_LEVEL_2_CLASS_STEREOTYPE = (
|
|
17
|
+
auto()
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
DIGITALISATION_LEVEL_3_CLASS_STEREOTYPE = (
|
|
21
|
+
auto()
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
DIGITALISATION_LEVEL_4_CLASS_STEREOTYPE = (
|
|
25
|
+
auto()
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
DIGITALISATION_LEVEL_5_CLASS_STEREOTYPE = (
|
|
29
|
+
auto()
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
DIGITALISATION_LEVEL_6_CLASS_STEREOTYPE = (
|
|
33
|
+
auto()
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
DIGITALISATION_LEVEL_7_CLASS_STEREOTYPE = (
|
|
37
|
+
auto()
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
DIGITALISATION_LEVEL_8_CLASS_STEREOTYPE = (
|
|
41
|
+
auto()
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def get_ea_guids(cls) -> set:
|
|
46
|
+
ea_guids = set(
|
|
47
|
+
ea_guid_mapping.values(),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
return ea_guids
|
|
51
|
+
|
|
52
|
+
def __object_name(self) -> str:
|
|
53
|
+
object_name = (
|
|
54
|
+
object_name_mapping[self]
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
return object_name
|
|
58
|
+
|
|
59
|
+
def __ea_guid(self) -> str:
|
|
60
|
+
ea_guid = ea_guid_mapping[self]
|
|
61
|
+
|
|
62
|
+
return ea_guid
|
|
63
|
+
|
|
64
|
+
def __style(self) -> str:
|
|
65
|
+
style = (
|
|
66
|
+
digitalisation_level_styles[
|
|
67
|
+
self
|
|
68
|
+
]
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
return style
|
|
72
|
+
|
|
73
|
+
object_name = property(
|
|
74
|
+
fget=__object_name,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
ea_guid = property(fget=__ea_guid)
|
|
78
|
+
|
|
79
|
+
style = property(fget=__style)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
object_name_mapping = {
|
|
83
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_1_CLASS_STEREOTYPE: "DL1",
|
|
84
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_2_CLASS_STEREOTYPE: "DL2",
|
|
85
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_3_CLASS_STEREOTYPE: "DL3",
|
|
86
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_4_CLASS_STEREOTYPE: "DL4",
|
|
87
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_5_CLASS_STEREOTYPE: "DL5",
|
|
88
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_6_CLASS_STEREOTYPE: "DL6",
|
|
89
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_7_CLASS_STEREOTYPE: "DL7",
|
|
90
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_8_CLASS_STEREOTYPE: "DL8",
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
ea_guid_mapping = {
|
|
95
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_1_CLASS_STEREOTYPE: "{FF73ABA9-DE5C-4eeb-918C-DECA01FF7280}",
|
|
96
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_2_CLASS_STEREOTYPE: "{0AA699E0-7794-4aea-8F27-EED1706BB74D}",
|
|
97
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_3_CLASS_STEREOTYPE: "{2A9FD9A6-9D8F-421c-BF26-A3FBA21268B4}",
|
|
98
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_4_CLASS_STEREOTYPE: "{24129ADB-A8B8-42e8-8EBB-2954690FB64D}",
|
|
99
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_5_CLASS_STEREOTYPE: "{EE83A38C-E442-498b-A594-26699B46DC0F}",
|
|
100
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_6_CLASS_STEREOTYPE: "{5D0561A8-ECB7-4016-AD3F-8F80135F5CB9}",
|
|
101
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_7_CLASS_STEREOTYPE: "{5BD3B142-98DF-4c94-B740-D000DCB4A009}",
|
|
102
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_8_CLASS_STEREOTYPE: "{8A1027F5-6CA2-49d8-A933-1DF26D07642C}",
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
digitalisation_level_styles = {
|
|
107
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_1_CLASS_STEREOTYPE: '<STYLE fill="1837750" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
108
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_2_CLASS_STEREOTYPE: '<STYLE fill="3225056" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
109
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_3_CLASS_STEREOTYPE: '<STYLE fill="5007615" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
110
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_4_CLASS_STEREOTYPE: '<STYLE fill="170211" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
111
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_5_CLASS_STEREOTYPE: '<STYLE fill="2604528" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
112
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_6_CLASS_STEREOTYPE: '<STYLE fill="6740735" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
113
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_7_CLASS_STEREOTYPE: '<STYLE fill="8310410" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
114
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_8_CLASS_STEREOTYPE: '<STYLE fill="4428080" text="-1" border="-1" groupname="Digitalisation Level Group" type="metafile"/>',
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
digitalisation_level_order = {
|
|
119
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_1_CLASS_STEREOTYPE: 1,
|
|
120
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_2_CLASS_STEREOTYPE: 2,
|
|
121
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_3_CLASS_STEREOTYPE: 3,
|
|
122
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_4_CLASS_STEREOTYPE: 4,
|
|
123
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_5_CLASS_STEREOTYPE: 5,
|
|
124
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_6_CLASS_STEREOTYPE: 6,
|
|
125
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_7_CLASS_STEREOTYPE: 7,
|
|
126
|
+
DigitalisationLevelStereotypeMatchedEaObjects.DIGITALISATION_LEVEL_8_CLASS_STEREOTYPE: 8,
|
|
127
|
+
}
|