pyegeria 0.4.1__py3-none-any.whl → 0.5.0__py3-none-any.whl
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.
- examples/widgets/catalog_user/README.md +15 -0
- examples/widgets/catalog_user/__init__.py +10 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/list_assets.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/view_asset_graph.py +11 -12
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/view_collection.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/catalog_user}/view_glossary.py +1 -1
- examples/widgets/developer/README.md +24 -0
- examples/widgets/developer/__init__.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/get_guid_info.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/get_tech_details.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_asset_types.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_registered_services.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_relationship_types.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_tech_templates.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_tech_types.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/developer}/list_valid_metadata_values.py +1 -1
- examples/widgets/operational/README.md +24 -0
- examples/widgets/operational/__init__.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/get_tech_type_elements.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/get_tech_type_template.py +1 -1
- examples/widgets/operational/view_asset_events.py +77 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_coco_status.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_eng_action_status.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_gov_eng_status.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_integ_daemon_status.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_platform_status.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_server_list.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/operational}/view_server_status.py +3 -5
- examples/widgets/personal_organizer/README.md +17 -0
- examples/widgets/personal_organizer/__init__.py +0 -0
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/get_my_profile.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/list_projects.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/list_todos.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/view_my_todos.py +1 -1
- {pyegeria-0.4.1.data/scripts → examples/widgets/personal_organizer}/view_open_todos.py +1 -1
- {pyegeria-0.4.1.dist-info → pyegeria-0.5.0.dist-info}/METADATA +16 -16
- pyegeria-0.5.0.dist-info/RECORD +66 -0
- {pyegeria-0.4.1.dist-info → pyegeria-0.5.0.dist-info}/WHEEL +1 -2
- pyegeria-0.5.0.dist-info/entry_points.txt +5 -0
- {pyegeria → src/pyegeria}/automated_curation_omvs.py +6 -6
- src/pyegeria/config.toml +11 -0
- src/pyegeria/core_guids.py +121 -0
- pyegeria/core_guids.py +0 -128
- pyegeria-0.4.1.data/scripts/Create_Collection_Sample.py +0 -292
- pyegeria-0.4.1.data/scripts/Create_Sustainability_Collection_Sample.py +0 -115
- pyegeria-0.4.1.dist-info/RECORD +0 -58
- pyegeria-0.4.1.dist-info/top_level.txt +0 -1
- {pyegeria-0.4.1.dist-info → pyegeria-0.5.0.dist-info}/LICENSE +0 -0
- {pyegeria → src/pyegeria}/Xfeedback_manager_omvs.py +0 -0
- {pyegeria → src/pyegeria}/Xloaded_resources_omvs.py +0 -0
- {pyegeria → src/pyegeria}/__init__.py +0 -0
- {pyegeria → src/pyegeria}/_client.py +0 -0
- {pyegeria → src/pyegeria}/_deprecated_gov_engine.py +0 -0
- {pyegeria → src/pyegeria}/_exceptions.py +0 -0
- {pyegeria → src/pyegeria}/_globals.py +0 -0
- {pyegeria → src/pyegeria}/_validators.py +0 -0
- {pyegeria → src/pyegeria}/action_author_omvs.py +0 -0
- {pyegeria → src/pyegeria}/asset_catalog_omvs.py +0 -0
- {pyegeria → src/pyegeria}/collection_manager_omvs.py +0 -0
- {pyegeria → src/pyegeria}/core_omag_server_config.py +0 -0
- {pyegeria → src/pyegeria}/full_omag_server_config.py +0 -0
- {pyegeria → src/pyegeria}/glossary_browser_omvs.py +0 -0
- {pyegeria → src/pyegeria}/glossary_manager_omvs.py +0 -0
- {pyegeria → src/pyegeria}/my_profile_omvs.py +0 -0
- {pyegeria → src/pyegeria}/platform_services.py +0 -0
- {pyegeria → src/pyegeria}/project_manager_omvs.py +0 -0
- {pyegeria → src/pyegeria}/registered_info.py +0 -0
- {pyegeria → src/pyegeria}/runtime_manager_omvs.py +0 -0
- {pyegeria → src/pyegeria}/server_operations.py +0 -0
- {pyegeria → src/pyegeria}/utils.py +0 -0
- {pyegeria → src/pyegeria}/valid_metadata_omvs.py +0 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
"""
|
2
|
+
SPDX-License-Identifier: Apache-2.0
|
3
|
+
Copyright Contributors to the ODPi Egeria project.
|
4
|
+
|
5
|
+
Useful from core content archive
|
6
|
+
"""
|
7
|
+
|
8
|
+
#
|
9
|
+
# Template guids
|
10
|
+
#
|
11
|
+
|
12
|
+
CSV_DATA_FILE_TEMPLATE_GUID = '13770F93-13C8-42BE-9BB8-E0B1B1E52B1F'
|
13
|
+
|
14
|
+
KEYSTORE_FILE_TEMPLATE_GUID = 'FBCFCC0C-1652-421F-B49B-C3E1C108768F'
|
15
|
+
|
16
|
+
OSS_UNITY_CATALOG_FUNCTION_TEMPLATE_GUID = '4AE9F6DF-4678-4B0A-A492-4A982C8397FD'
|
17
|
+
|
18
|
+
DATA_FILE_TEMPLATE_GUID = '66D8DDA9-00CF-4E59-938C-4B0583596B1E'
|
19
|
+
|
20
|
+
VIEW_SERVER_TEMPLATE_GUID = 'FD61CA01-390D-4AA2-A55D-426826AA4E1B'
|
21
|
+
|
22
|
+
ARCHIVE_FILE_TEMPLATE_GUID = '7578E504-D00F-406D-A194-3FC0A351CDF9'
|
23
|
+
|
24
|
+
POSTGRESQL_RELATIONAL_DATABASE_TEMPLATE_GUID = '3D398B3F-7AE6-4713-952A-409F3DEA8520'
|
25
|
+
|
26
|
+
OSS_UNITY_CATALOG_VOLUME_TEMPLATE_GUID = '384386BA-83C0-4981-8553-4306AECE440F'
|
27
|
+
|
28
|
+
PROGRAM_FILE_TEMPLATE_GUID = '32D27E9C-1FDF-455A-AD2A-42B4D7D99108'
|
29
|
+
|
30
|
+
FILEFOLDER_TEMPLATE_GUID = 'FBDD8EFD-1B69-474C-BB6D-0A304B394146'
|
31
|
+
|
32
|
+
OSS_UNITY_CATALOG_CATALOG_TEMPLATE_GUID = 'F7B05A3E-913C-497D-96F5-ACDEB2EC897E'
|
33
|
+
|
34
|
+
POSTGRESQL_SERVER_TEMPLATE_GUID = '542134E6-B9CE-4DCE-8AEF-22E8DAF34FDB'
|
35
|
+
|
36
|
+
AUDIO_DATA_FILE_TEMPLATE_GUID = '39B4B670-7F15-4744-A5BA-62E8EDAFBCEE'
|
37
|
+
|
38
|
+
DOCUMENT_FILE_TEMPLATE_GUID = 'EB6F728D-FA54-4350-9807-1199CBF96851'
|
39
|
+
|
40
|
+
INTEGRATION_DAEMON_TEMPLATE_GUID = '6B3516F0-DD13-4786-9601-07215F995197'
|
41
|
+
|
42
|
+
XML_DATA_FILE_TEMPLATE_GUID = 'EA67AE71-C674-473E-B38B-689879D2A7D9'
|
43
|
+
|
44
|
+
PARQUET_DATA_FILE_TEMPLATE_GUID = '7F6CD744-79C3-4D25-A056-EEB1A91574C3'
|
45
|
+
|
46
|
+
THREED_IMAGE_DATA_FILE_TEMPLATE_GUID = '0059EA2B-6292-4CAC-AA6F-A80A605F1114'
|
47
|
+
|
48
|
+
YAML_FILE_TEMPLATE_GUID = '2221855B-2B64-4B45-A2EE-C40ADC5E2A64'
|
49
|
+
|
50
|
+
METADATA_ACCESS_SERVER_TEMPLATE_GUID = 'BD8DE890-FA79-4C24-AAB8-20B41B5893DD'
|
51
|
+
|
52
|
+
PROPERTIES_FILE_TEMPLATE_GUID = '3B281111-A0EF-4FC4-99E7-9A0EF84A7636'
|
53
|
+
|
54
|
+
VECTOR_DATA_FILE_TEMPLATE_GUID = 'DB1BEC7F-55A9-40D3-91C0-A57B76D422E2'
|
55
|
+
|
56
|
+
APACHE_KAFKA_SERVER_TEMPLATE_GUID = '5E1FF810-5418-43F7-B7C4-E6E062F9AFF7'
|
57
|
+
|
58
|
+
OSS_UNITY_CATALOG_SCHEMA_TEMPLATE_GUID = 'A75CFB07-31FE-457E-9298-BE145DC93071'
|
59
|
+
|
60
|
+
EXECUTABLE_FILE_TEMPLATE_GUID = '3D99A163-7A13-4576-A212-784010A8302A'
|
61
|
+
|
62
|
+
JSON_DATA_FILE_TEMPLATE_GUID = 'C4836635-7E9E-446A-83B5-15E206B1AFF3'
|
63
|
+
|
64
|
+
FILE_SYSTEM_TEMPLATE_GUID = '522F228C-097C-4F90-9EFC-26C1F2696F87'
|
65
|
+
|
66
|
+
SOURCE_CODE_FILE_TEMPLATE_GUID = '9C7013EF-F29B-4B01-A8EA-5EA14F64C67A'
|
67
|
+
|
68
|
+
OSS_UNITY_CATALOG_SERVER_TEMPLATE_GUID = '1077A346-7A50-4CB0-A795-B219BAFAABF6'
|
69
|
+
|
70
|
+
APPLE_MACBOOK_PRO_TEMPLATE_GUID = '32A9FD56-85C9-47FE-A211-9DA3871BF4DA'
|
71
|
+
|
72
|
+
BUILD_INSTRUCTION_FILE_TEMPLATE_GUID = 'FBB2FA2E-8BCB-402E-9BE7-5C6DB9F2C504'
|
73
|
+
|
74
|
+
SPREADSHEET_DATA_FILE_TEMPLATE_GUID = 'E4FABFF5-2BA9-4050-9076-6ED917970B4C'
|
75
|
+
|
76
|
+
UNIX_FILE_SYSTEM_TEMPLATE_GUID = '27117270-8667-41D0-A99A-9118F9B60199'
|
77
|
+
|
78
|
+
VIDEO_DATA_FILE_TEMPLATE_GUID = '93B2B722-EC0F-4DA4-960A-B8D4922F8BF5'
|
79
|
+
|
80
|
+
POSTGRESQL_RELATIONAL_DATABASE_SCHEMA_TEMPLATE_GUID = '82A5417C-D882-4271-8444-4C6A996A8BFC'
|
81
|
+
|
82
|
+
ENGINE_HOST_TEMPLATE_GUID = '1764A891-4234-45F1-8CC3-536AF40C790D'
|
83
|
+
|
84
|
+
AVRO_DATA_FILE_TEMPLATE_GUID = '9F5BE428-058E-41DD-B506-3A222283B579'
|
85
|
+
|
86
|
+
OSS_UNITY_CATALOG_TABLE_TEMPLATE_GUID = 'F5B12348-92AC-4A52-B8E0-B06CF215484E'
|
87
|
+
|
88
|
+
FILE_TEMPLATE_GUID = 'AE3067C7-CC72-4A18-88E1-746803C2C86F'
|
89
|
+
|
90
|
+
APACHE_KAFKA_TOPIC_TEMPLATE_GUID = 'EA8F81C9-C59C-47DE-9525-7CC59D1251E5'
|
91
|
+
|
92
|
+
SCRIPT_FILE_TEMPLATE_GUID = 'DBD5E6BB-1FF8-46F4-A007-FB0485F68C92'
|
93
|
+
|
94
|
+
APACHE_ATLAS_SERVER_TEMPLATE_GUID = 'FE6DCE45-A978-4417-AB55-17F05B8BCEA7'
|
95
|
+
|
96
|
+
RASTER_DATA_FILE_TEMPLATE_GUID = '47211156-F03F-4881-8526-015E695A3DAC'
|
97
|
+
|
98
|
+
DATA_FOLDER_TEMPLATE_GUID = '372A0379-7060-4C9D-8D84-BC709B31794C'
|
99
|
+
|
100
|
+
OMAG_SERVER_PLATFORM_TEMPLATE_GUID = '9B06C4DC-DDC8-47AE-B56B-28775D3A96F0'
|
101
|
+
|
102
|
+
#
|
103
|
+
# Integration Connector GUIDS
|
104
|
+
#
|
105
|
+
|
106
|
+
PostgreSQL_Relational_Database_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
107
|
+
|
108
|
+
Landing_Area_File_Monitor_Integration_Connector_GUID = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
|
109
|
+
|
110
|
+
FileFolder_Integration_Connector_GUID = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
|
111
|
+
|
112
|
+
OSS_Unity_Catalog_Catalog_Integration_Connector_GUID = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
|
113
|
+
|
114
|
+
PostgreSQL_Server_Integration_Connector_GUID = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
|
115
|
+
|
116
|
+
Apache_Kafka_Server_Integration_Connector_GUID = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
|
117
|
+
|
118
|
+
Software_Server_Integration_Connector_GUID = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
|
119
|
+
|
120
|
+
OSS_Unity_Catalog_Server_Integration_Connector_GUID = '06d068d9-9e08-4e67-8c59-073bbf1013af'
|
121
|
+
|
pyegeria/core_guids.py
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
Useful from core content archive
|
6
|
-
"""
|
7
|
-
|
8
|
-
#
|
9
|
-
# Template guids
|
10
|
-
#
|
11
|
-
|
12
|
-
FILE_FOLDER_TEMPLATE = "553f51cf-3981-480e-acd8-86ed3e25329d"
|
13
|
-
|
14
|
-
KAFKA_SERVER_TEMPLATE = "5e1ff810-5418-43f7-b7c4-e6e062f9aff7"
|
15
|
-
|
16
|
-
POSTGRESQL_SERVER_TEMPLATE = "542134e6-b9ce-4dce-8aef-22e8daf34fdb"
|
17
|
-
|
18
|
-
CSV_Data_File_template_GUID = '1b81010e-8525-43b4-8bd9-40c102f7f7d6'
|
19
|
-
|
20
|
-
Keystore_File_template_GUID = '754def0b-b811-4ea0-b8bf-7414fa8a77b4'
|
21
|
-
|
22
|
-
OSS_Unity_Catalog_Function_template_GUID = '4ae9f6df-4678-4b0a-a492-4a982c8397fd'
|
23
|
-
|
24
|
-
Data_File_template_GUID = 'd7633260-0810-43fe-ba48-f3e3e3e7c95c'
|
25
|
-
|
26
|
-
View_Server_template_GUID = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
|
27
|
-
|
28
|
-
Archive_File_template_GUID = '8a4ea587-dd3e-4148-8c01-0d366d19de11'
|
29
|
-
|
30
|
-
PostgreSQL_Relational_Database_template_GUID = '3d398b3f-7ae6-4713-952a-409f3dea8520'
|
31
|
-
|
32
|
-
OSS_Unity_Catalog_Volume_template_GUID = 'bf4dc272-a323-4ca7-8e37-b78a005ac578'
|
33
|
-
|
34
|
-
Program_File_template_GUID = 'd8b8cae5-f4bd-4631-8836-88dc67a55c00'
|
35
|
-
|
36
|
-
FileFolder_template_GUID = '99b0c995-7494-4063-89d1-1e0ec7153abd'
|
37
|
-
|
38
|
-
OSS_Unity_Catalog_Catalog_template_GUID = '8bf8f102-490f-4718-bd27-d018660124b6'
|
39
|
-
|
40
|
-
PostgreSQL_Server_template_GUID = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
|
41
|
-
|
42
|
-
Audio_Data_File_template_GUID = 'f65ea229-5473-469f-a447-32ba09bf1f14'
|
43
|
-
|
44
|
-
Document_File_template_GUID = '080ca599-095a-499e-ba26-7d58e538c32a'
|
45
|
-
|
46
|
-
Integration_Daemon_template_GUID = '6b3516f0-dd13-4786-9601-07215f995197'
|
47
|
-
|
48
|
-
XML_Data_File_template_GUID = '643a284b-3137-41de-8c37-521dcd3a1441'
|
49
|
-
|
50
|
-
Parquet_Data_File_template_GUID = '2396c38e-54aa-4d04-a95d-ce02fb998c55'
|
51
|
-
|
52
|
-
ThreeD_Image_Data_File_template_GUID = '5648eaa6-4826-4964-9657-78ab9cc387d8'
|
53
|
-
|
54
|
-
YAML_File_template_GUID = '6515915a-c218-4e55-9b2c-d5fbec9dfdb4'
|
55
|
-
|
56
|
-
Metadata_Access_Server_template_GUID = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
|
57
|
-
|
58
|
-
Properties_File_template_GUID = '1cefcfe3-585d-4d78-a4dd-3f929f5c5a9b'
|
59
|
-
|
60
|
-
Vector_Data_File_template_GUID = 'ea60c096-71e6-4492-ba10-90de63e4fe3a'
|
61
|
-
|
62
|
-
Apache_Kafka_Server_template_GUID = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
|
63
|
-
|
64
|
-
OSS_Unity_Catalog_Schema_template_GUID = 'd95e5364-4ebf-42d5-bb39-ff1334143b15'
|
65
|
-
|
66
|
-
Executable_File_template_GUID = '588c89e7-cc16-4ae1-8b81-0cd90250df0c'
|
67
|
-
|
68
|
-
JSON_Data_File_template_GUID = 'c62ff28b-5cd2-4c74-bba3-0a875ddbbdf4'
|
69
|
-
|
70
|
-
File_System_template_GUID = 'd3b548d5-c5bf-42f7-8714-80a034b00424'
|
71
|
-
|
72
|
-
Source_Code_File_template_GUID = '092e6742-7d5a-40cb-b5be-b0440e730c0a'
|
73
|
-
|
74
|
-
OSS_Unity_Catalog_Server_template_GUID = '1077a346-7a50-4cb0-a795-b219bafaabf6'
|
75
|
-
|
76
|
-
Apple_MacBook_Pro_template_GUID = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
|
77
|
-
|
78
|
-
Build_Instruction_File_template_GUID = '7a2b22a1-2198-4ad6-adc0-8a3c2e2faaa7'
|
79
|
-
|
80
|
-
Spreadsheet_Data_File_template_GUID = '33860da2-c467-4192-908c-f8dab837c098'
|
81
|
-
|
82
|
-
UNIX_File_System_template_GUID = '6d82998d-5d6c-4cd2-902e-8baa98e152d4'
|
83
|
-
|
84
|
-
Video_Data_File_template_GUID = '6d7b46f9-c7ea-4d68-b66b-b077ec91bc19'
|
85
|
-
|
86
|
-
PostgreSQL_Relational_Database_Schema_template_GUID = '82a5417c-d882-4271-8444-4c6a996a8bfc'
|
87
|
-
|
88
|
-
Engine_Host_template_GUID = '1764a891-4234-45f1-8cc3-536af40c790d'
|
89
|
-
|
90
|
-
Avro_Data_File_template_GUID = '0c61cfef-a0d3-4130-85fc-d5c39287499c'
|
91
|
-
|
92
|
-
OSS_Unity_Catalog_Table_template_GUID = 'f5b12348-92ac-4a52-b8e0-b06cf215484e'
|
93
|
-
|
94
|
-
File_template_GUID = '9725e90e-ebad-474f-af65-a8aaaca03208'
|
95
|
-
|
96
|
-
Apache_Kafka_Topic_template_GUID = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
|
97
|
-
|
98
|
-
Script_File_template_GUID = '4842a347-56a1-4940-b340-2f39cf91dc6d'
|
99
|
-
|
100
|
-
Apache_Atlas_Server_template_GUID = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
|
101
|
-
|
102
|
-
Raster_Data_File_template_GUID = 'c972afee-0170-446f-893b-f88a373a4a99'
|
103
|
-
|
104
|
-
Data_Folder_template_GUID = 'e854455c-8b5a-4030-8289-2323f7f68841'
|
105
|
-
|
106
|
-
OMAG_Server_Platform_template_GUID = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
|
107
|
-
|
108
|
-
DBC_Relational_Database_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
109
|
-
|
110
|
-
#
|
111
|
-
# Integration Connector GUIDS
|
112
|
-
#
|
113
|
-
|
114
|
-
PostgreSQL_Relational_Database_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
|
115
|
-
|
116
|
-
Landing_Area_File_Monitor_Integration_Connector_GUID = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
|
117
|
-
|
118
|
-
FileFolder_Integration_Connector_GUID = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
|
119
|
-
|
120
|
-
OSS_Unity_Catalog_Catalog_Integration_Connector_GUID = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
|
121
|
-
|
122
|
-
PostgreSQL_Server_Integration_Connector_GUID = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
|
123
|
-
|
124
|
-
Apache_Kafka_Server_Integration_Connector_GUID = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
|
125
|
-
|
126
|
-
Software_Server_Integration_Connector_GUID = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
|
127
|
-
|
128
|
-
OSS_Unity_Catalog_Server_Integration_Connector_GUID = '06d068d9-9e08-4e67-8c59-073bbf1013af'
|
@@ -1,292 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
This sample creates the collection structure show in https://egeria-project.org/types/0/0021-Collections
|
6
|
-
|
7
|
-
"""
|
8
|
-
|
9
|
-
import time
|
10
|
-
|
11
|
-
from rich import print
|
12
|
-
from rich.console import Console
|
13
|
-
|
14
|
-
from pyegeria import CollectionManager, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
|
15
|
-
|
16
|
-
view_server = 'view-server'
|
17
|
-
platform_url = 'https://localhost:9443'
|
18
|
-
user = 'erinoverview'
|
19
|
-
console = Console()
|
20
|
-
|
21
|
-
try:
|
22
|
-
c_client = CollectionManager(view_server, platform_url,
|
23
|
-
user_id=user)
|
24
|
-
|
25
|
-
token = c_client.create_egeria_bearer_token(user, "secret")
|
26
|
-
start_time = time.perf_counter()
|
27
|
-
|
28
|
-
# Create a Data Products Root collection
|
29
|
-
anchor_guid = None
|
30
|
-
parent_guid = None
|
31
|
-
parent_relationship_type_name = None
|
32
|
-
parent_at_end1 = False
|
33
|
-
display_name = "Digital Products Root"
|
34
|
-
description = "This is the root catalog for digital products"
|
35
|
-
collection_type = "Digital Products Root"
|
36
|
-
is_own_anchor = True
|
37
|
-
|
38
|
-
response = c_client.create_root_collection(anchor_guid, parent_guid,
|
39
|
-
parent_relationship_type_name, parent_at_end1,
|
40
|
-
display_name, description, collection_type,
|
41
|
-
is_own_anchor)
|
42
|
-
# Create first folder for Agriculture Insights
|
43
|
-
parent_guid = "97bbfe07-6696-4550-bf8b-6b577d25bef0"
|
44
|
-
parent_relationship_type_name = "CollectionMembership"
|
45
|
-
display_name = "Agriculture Insights Collection"
|
46
|
-
description = "A folder for agricultural insights data product collections"
|
47
|
-
collection_type = "Digital Product Marketplace"
|
48
|
-
|
49
|
-
folder1 = c_client.create_folder_collection(None, parent_guid,
|
50
|
-
parent_relationship_type_name,
|
51
|
-
True, display_name, description,
|
52
|
-
collection_type, True, "DATE_CREATED",
|
53
|
-
None
|
54
|
-
)
|
55
|
-
print(f"\n\n created a folder with guid {folder1}")
|
56
|
-
# create second folder for Earth Observations
|
57
|
-
display_name = "Earth Observation Data Collection"
|
58
|
-
description = "A folder for Earth Observation data product collections"
|
59
|
-
|
60
|
-
folder2 = c_client.create_folder_collection(None, parent_guid,
|
61
|
-
parent_relationship_type_name,
|
62
|
-
True, display_name, description,
|
63
|
-
collection_type, True, "DATE_CREATED",
|
64
|
-
None
|
65
|
-
)
|
66
|
-
print(f"\n\n created a folder with guid {folder2}")
|
67
|
-
|
68
|
-
# create a digital product, child of folder 1, for Land Use products
|
69
|
-
parent_guid = folder1
|
70
|
-
parent_relationship_type_name = "CollectionMembership"
|
71
|
-
display_name = "Land Use Classification"
|
72
|
-
description = "Land use classification assets"
|
73
|
-
collection_type = "Digital Product"
|
74
|
-
classification_name = "Digital Product"
|
75
|
-
body_3 = {
|
76
|
-
"class": "NewDigitalProductRequestBody",
|
77
|
-
"isOwnAnchor": True,
|
78
|
-
"parentGUID": parent_guid,
|
79
|
-
"parentRelationshipTypeName": parent_relationship_type_name,
|
80
|
-
"parentAtEnd1": True,
|
81
|
-
"collectionProperties": {
|
82
|
-
"class": "CollectionProperties",
|
83
|
-
"qualifiedName": f"{classification_name}-{display_name}-{time.asctime()}",
|
84
|
-
"name": display_name,
|
85
|
-
"description": description,
|
86
|
-
"collectionType": collection_type,
|
87
|
-
"collectionOrdering": "DATE_CREATED",
|
88
|
-
},
|
89
|
-
"digitalProductProperties": {
|
90
|
-
"class": "DigitalProductProperties",
|
91
|
-
"productStatus": "ACTIVE",
|
92
|
-
"productName": "Land Use Classifications",
|
93
|
-
"productType": "Geospatial Data Assets",
|
94
|
-
"description": "Land use classification assets",
|
95
|
-
"introductionDate": "2023-12-01",
|
96
|
-
"maturity": "Nacent",
|
97
|
-
"serviceLife": "3 years",
|
98
|
-
"currentVersion": "V.5",
|
99
|
-
"nextVersionDate": "2024-12-01",
|
100
|
-
"withdrawDate": "2030-01-01",
|
101
|
-
"additionalProperties": {
|
102
|
-
"thought_id": "a guid",
|
103
|
-
"license": "cc-by-sa",
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
folder3 = c_client.create_digital_product(body_3)
|
108
|
-
print(f"\n\n created a collection with guid {folder3}")
|
109
|
-
|
110
|
-
# create a fourth collection, a digital product, child of folder 2, for Landsat 8
|
111
|
-
parent_guid = folder2
|
112
|
-
display_name = "Landsat 8"
|
113
|
-
description = "Landsat 8 data products"
|
114
|
-
|
115
|
-
body_4 = {
|
116
|
-
"class": "NewDigitalProductRequestBody",
|
117
|
-
"isOwnAnchor": True,
|
118
|
-
"parentGUID": parent_guid,
|
119
|
-
"parentRelationshipTypeName": parent_relationship_type_name,
|
120
|
-
"parentAtEnd1": True,
|
121
|
-
"collectionProperties": {
|
122
|
-
"class": "CollectionProperties",
|
123
|
-
"qualifiedName": f"{classification_name}-{display_name}-{time.asctime()}",
|
124
|
-
"name": display_name,
|
125
|
-
"description": description,
|
126
|
-
"collectionType": collection_type,
|
127
|
-
"collectionOrdering": "DATE_CREATED",
|
128
|
-
},
|
129
|
-
"digitalProductProperties": {
|
130
|
-
"class": "DigitalProductProperties",
|
131
|
-
"productStatus": "ACTIVE",
|
132
|
-
"productName": "Landsat 8 Imagery",
|
133
|
-
"productType": "Geospatial Data Assets",
|
134
|
-
"description": description,
|
135
|
-
"introductionDate": "2024-01-01",
|
136
|
-
"maturity": "Mature",
|
137
|
-
"serviceLife": "3 years",
|
138
|
-
"currentVersion": "V1.5",
|
139
|
-
"nextVersion": "2024-06-01",
|
140
|
-
"withdrawDate": "2030-01-01",
|
141
|
-
"additionalProperties": {
|
142
|
-
"thought_id": "a guid",
|
143
|
-
"license": "cc-by-sa",
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
folder4 = c_client.create_digital_product(body_4)
|
148
|
-
print(f"\n\n created a collection with guid {folder4}")
|
149
|
-
|
150
|
-
# Now create a 5th collection for sentinel 2 data
|
151
|
-
parent_guid = folder2
|
152
|
-
display_name = "Sentinel 2"
|
153
|
-
description = "Sentinel 2 products"
|
154
|
-
parent_relationship_type_name = "CollectionMembership"
|
155
|
-
collection_type = "Digital Product Marketplace"
|
156
|
-
|
157
|
-
folder5 = c_client.create_folder_collection(None, parent_guid,
|
158
|
-
parent_relationship_type_name,
|
159
|
-
True, display_name, description,
|
160
|
-
collection_type, True, "DATE_CREATED",
|
161
|
-
None
|
162
|
-
)
|
163
|
-
# Create a DigitalProduct for Level-1B
|
164
|
-
parent_guid = folder5
|
165
|
-
display_name = "Sentinel 2 - Level 1B"
|
166
|
-
description = "Level 1B of Sentinel 2"
|
167
|
-
|
168
|
-
body_6 = {
|
169
|
-
"class": "NewDigitalProductRequestBody",
|
170
|
-
"anchor_guid": parent_guid,
|
171
|
-
"isOwnAnchor": False,
|
172
|
-
"parentGUID": parent_guid,
|
173
|
-
"parentRelationshipTypeName": parent_relationship_type_name,
|
174
|
-
"parentAtEnd1": True,
|
175
|
-
"collectionProperties": {
|
176
|
-
"class": "CollectionProperties",
|
177
|
-
"qualifiedName": f"{classification_name}-{display_name}-{time.asctime()}",
|
178
|
-
"name": display_name,
|
179
|
-
"description": description,
|
180
|
-
"collectionType": collection_type,
|
181
|
-
"collectionOrdering": "DATE_CREATED",
|
182
|
-
},
|
183
|
-
"digitalProductProperties": {
|
184
|
-
"class": "DigitalProductProperties",
|
185
|
-
"productStatus": "ACTIVE",
|
186
|
-
"productName": "Sentinel 2 - Level 1B",
|
187
|
-
"productType": "Geospatial Data Assets",
|
188
|
-
"description": description,
|
189
|
-
"introductionDate": "2024-01-01",
|
190
|
-
"maturity": "Mature",
|
191
|
-
"serviceLife": "3 years",
|
192
|
-
"currentVersion": "V1.5",
|
193
|
-
"nextVersion": "2024-06-01",
|
194
|
-
"withdrawDate": "2030-01-01",
|
195
|
-
"additionalProperties": {
|
196
|
-
"thought_id": "a guid",
|
197
|
-
"license": "cc-by-sa",
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
folder6 = c_client.create_digital_product(body_6)
|
202
|
-
print(f"\n\n created a collection with guid {folder6}")
|
203
|
-
|
204
|
-
# now lets create a digital product for - Level - 1c
|
205
|
-
parent_guid = folder5
|
206
|
-
display_name = "Sentinel 2 - Level 1C"
|
207
|
-
description = "Level 1C of Sentinel 2"
|
208
|
-
body_7 = {
|
209
|
-
"class": "NewDigitalProductRequestBody",
|
210
|
-
"anchor_guid": parent_guid,
|
211
|
-
"isOwnAnchor": False,
|
212
|
-
"parentGUID": parent_guid,
|
213
|
-
"parentRelationshipTypeName": parent_relationship_type_name,
|
214
|
-
"parentAtEnd1": True,
|
215
|
-
"collectionProperties": {
|
216
|
-
"class": "CollectionProperties",
|
217
|
-
"qualifiedName": f"{classification_name}-{display_name}-{time.asctime()}",
|
218
|
-
"name": display_name,
|
219
|
-
"description": description,
|
220
|
-
"collectionType": collection_type,
|
221
|
-
"collectionOrdering": "DATE_CREATED",
|
222
|
-
},
|
223
|
-
"digitalProductProperties": {
|
224
|
-
"class": "DigitalProductProperties",
|
225
|
-
"productStatus": "ACTIVE",
|
226
|
-
"productName": "Sentinel 2 - Level 1B",
|
227
|
-
"productType": "Geospatial Data Assets",
|
228
|
-
"description": description,
|
229
|
-
"introductionDate": "2024-01-01",
|
230
|
-
"maturity": "Mature",
|
231
|
-
"serviceLife": "3 years",
|
232
|
-
"currentVersion": "V1.5",
|
233
|
-
"nextVersion": "2024-06-01",
|
234
|
-
"withdrawDate": "2030-01-01",
|
235
|
-
"additionalProperties": {
|
236
|
-
"thought_id": "a guid",
|
237
|
-
"license": "cc-by-sa",
|
238
|
-
}
|
239
|
-
}
|
240
|
-
}
|
241
|
-
folder7 = c_client.create_digital_product(body_7)
|
242
|
-
print(f"\n\n created a collection with guid {folder7}")
|
243
|
-
|
244
|
-
# now let's create a digital product for - Level - 2A
|
245
|
-
parent_guid = folder5
|
246
|
-
display_name = "Sentinel 2 - Level 2A"
|
247
|
-
description = "Level 2A of Sentinel 2"
|
248
|
-
body_8 = {
|
249
|
-
"class": "NewDigitalProductRequestBody",
|
250
|
-
"anchor_guid": parent_guid,
|
251
|
-
"isOwnAnchor": False,
|
252
|
-
"parentGUID": parent_guid,
|
253
|
-
"parentRelationshipTypeName": parent_relationship_type_name,
|
254
|
-
"parentAtEnd1": True,
|
255
|
-
"collectionProperties": {
|
256
|
-
"class": "CollectionProperties",
|
257
|
-
"qualifiedName": f"{classification_name}-{display_name}-{time.asctime()}",
|
258
|
-
"name": display_name,
|
259
|
-
"description": description,
|
260
|
-
"collectionType": collection_type,
|
261
|
-
"collectionOrdering": "DATE_CREATED",
|
262
|
-
},
|
263
|
-
"digitalProductProperties": {
|
264
|
-
"class": "DigitalProductProperties",
|
265
|
-
"productStatus": "ACTIVE",
|
266
|
-
"productName": "Sentinel 2 - Level 1B",
|
267
|
-
"productType": "Geospatial Data Assets",
|
268
|
-
"description": description,
|
269
|
-
"introductionDate": "2024-01-01",
|
270
|
-
"maturity": "Mature",
|
271
|
-
"serviceLife": "3 years",
|
272
|
-
"currentVersion": "V1.5",
|
273
|
-
"nextVersion": "2024-06-01",
|
274
|
-
"withdrawDate": "2030-01-01",
|
275
|
-
"additionalProperties": {
|
276
|
-
"thought_id": "a guid",
|
277
|
-
"license": "cc-by-sa",
|
278
|
-
}
|
279
|
-
}
|
280
|
-
}
|
281
|
-
folder8 = c_client.create_digital_product(body_8)
|
282
|
-
print(f"\n\n created a collection with guid {folder8}")
|
283
|
-
|
284
|
-
except (
|
285
|
-
InvalidParameterException,
|
286
|
-
PropertyServerException,
|
287
|
-
UserNotAuthorizedException
|
288
|
-
) as e:
|
289
|
-
console.print_exception(show_locals=True)
|
290
|
-
|
291
|
-
finally:
|
292
|
-
c_client.close_session()
|
@@ -1,115 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
This sample creates a collection structure for a sustainability reporting project. It is
|
6
|
-
simplistic but shows how we can set up a collection hierarchy that can hold different kinds of
|
7
|
-
assets.
|
8
|
-
|
9
|
-
"""
|
10
|
-
|
11
|
-
import time
|
12
|
-
|
13
|
-
from rich import print
|
14
|
-
from rich.console import Console
|
15
|
-
|
16
|
-
from pyegeria import CollectionManager, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
|
17
|
-
|
18
|
-
view_server = 'view-server'
|
19
|
-
platform_url = 'https://localhost:9443'
|
20
|
-
user = 'erinoverview'
|
21
|
-
console = Console()
|
22
|
-
|
23
|
-
try:
|
24
|
-
c_client = CollectionManager(view_server, platform_url,
|
25
|
-
user_id=user)
|
26
|
-
|
27
|
-
token = c_client.create_egeria_bearer_token(user, "secret")
|
28
|
-
start_time = time.perf_counter()
|
29
|
-
|
30
|
-
# Create a root collection for the sustainability project
|
31
|
-
parent_guid = None
|
32
|
-
parent_relationship_type_name = None
|
33
|
-
display_name = "Root Sustainability Collection"
|
34
|
-
description = "The root collection for our sustainability reporting project."
|
35
|
-
collection_type = "Sustainability Collection"
|
36
|
-
|
37
|
-
root = c_client.create_root_collection(None, parent_guid,
|
38
|
-
parent_relationship_type_name,
|
39
|
-
False, display_name, description,
|
40
|
-
collection_type, True)
|
41
|
-
print(f"\n\n created a root with guid {root}")
|
42
|
-
# create a folder for Scope 1 Emissions
|
43
|
-
anchor_guid = root
|
44
|
-
parent_guid = root
|
45
|
-
parent_relationship_type_name = "CollectionMembership"
|
46
|
-
display_name = "Scope 1 Emissions"
|
47
|
-
description = "A folder for information about scope 1 emissions."
|
48
|
-
collection_type = "Sustainability Collection"
|
49
|
-
|
50
|
-
scope1_folder = c_client.create_folder_collection(anchor_guid, parent_guid,
|
51
|
-
parent_relationship_type_name,
|
52
|
-
True, display_name, description,
|
53
|
-
collection_type, False, "DATE_CREATED",
|
54
|
-
None
|
55
|
-
)
|
56
|
-
print(f"\n\n created scope1_folder with guid {scope1_folder}")
|
57
|
-
|
58
|
-
# create a folder for Scope 2 Emissions.
|
59
|
-
anchor_guid = root
|
60
|
-
parent_guid = root
|
61
|
-
parent_relationship_type_name = "CollectionMembership"
|
62
|
-
display_name = "Scope 2 Emissions"
|
63
|
-
description = "A folder for information about scope 2 emissions."
|
64
|
-
collection_type = "Sustainability Collection"
|
65
|
-
|
66
|
-
scope2_folder = c_client.create_folder_collection(anchor_guid, parent_guid,
|
67
|
-
parent_relationship_type_name,
|
68
|
-
True, display_name, description,
|
69
|
-
collection_type, False, "DATE_CREATED",
|
70
|
-
None
|
71
|
-
)
|
72
|
-
print(f"\n\n created scope2_folder with guid {scope2_folder}")
|
73
|
-
|
74
|
-
# create a folder for Scope 3 Emissions.
|
75
|
-
anchor_guid = root
|
76
|
-
parent_guid = root
|
77
|
-
parent_relationship_type_name = "CollectionMembership"
|
78
|
-
display_name = "Scope 3 Emissions"
|
79
|
-
description = "A folder for information about scope 3 emissions."
|
80
|
-
collection_type = "Sustainability Collection"
|
81
|
-
|
82
|
-
scope3_folder = c_client.create_folder_collection(anchor_guid, parent_guid,
|
83
|
-
parent_relationship_type_name,
|
84
|
-
True, display_name, description,
|
85
|
-
collection_type, False, "DATE_CREATED",
|
86
|
-
None
|
87
|
-
)
|
88
|
-
print(f"\n\n created scope3_folder with guid {scope3_folder}")
|
89
|
-
|
90
|
-
# create a folder for Business Travel Emissions.
|
91
|
-
anchor_guid = root
|
92
|
-
parent_guid = scope3_folder
|
93
|
-
parent_relationship_type_name = "CollectionMembership"
|
94
|
-
display_name = "Business Travel Emissions"
|
95
|
-
description = "A folder for information about scope 3 business travel emissions."
|
96
|
-
collection_type = "Sustainability Collection"
|
97
|
-
|
98
|
-
travel_folder = c_client.create_folder_collection(anchor_guid, parent_guid,
|
99
|
-
parent_relationship_type_name,
|
100
|
-
True, display_name, description,
|
101
|
-
collection_type, False, "DATE_CREATED",
|
102
|
-
None
|
103
|
-
)
|
104
|
-
print(f"\n\n created travel_folder with guid {travel_folder}")
|
105
|
-
|
106
|
-
|
107
|
-
except (
|
108
|
-
InvalidParameterException,
|
109
|
-
PropertyServerException,
|
110
|
-
UserNotAuthorizedException
|
111
|
-
) as e:
|
112
|
-
console.print_exception(show_locals=True)
|
113
|
-
|
114
|
-
finally:
|
115
|
-
c_client.close_session()
|