pyegeria 5.3.9.9.3__py3-none-any.whl → 5.3.9.9.5__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.
Files changed (58) hide show
  1. md_processing/__init__.py +49 -0
  2. md_processing/dr_egeria_inbox/archive/dr_egeria_intro.md +254 -0
  3. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_more_terms.md +696 -0
  4. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part1.md +254 -0
  5. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part2.md +298 -0
  6. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part3.md +608 -0
  7. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part4.md +94 -0
  8. md_processing/dr_egeria_inbox/archive/freddie_intro.md +284 -0
  9. md_processing/dr_egeria_inbox/archive/freddie_intro_orig.md +275 -0
  10. md_processing/dr_egeria_inbox/archive/test-term.md +110 -0
  11. md_processing/dr_egeria_inbox/cat_test.md +100 -0
  12. md_processing/dr_egeria_inbox/commands.json +3252 -0
  13. md_processing/dr_egeria_inbox/data_field.md +54 -0
  14. md_processing/dr_egeria_inbox/data_spec.md +77 -0
  15. md_processing/dr_egeria_inbox/data_spec_test.md +2406 -0
  16. md_processing/dr_egeria_inbox/data_test.md +86 -0
  17. md_processing/dr_egeria_inbox/dr_egeria_intro_categories.md +168 -0
  18. md_processing/dr_egeria_inbox/dr_egeria_intro_part1.md +280 -0
  19. md_processing/dr_egeria_inbox/dr_egeria_intro_part2.md +313 -0
  20. md_processing/dr_egeria_inbox/dr_egeria_intro_part3.md +1073 -0
  21. md_processing/dr_egeria_inbox/dr_egeria_isc1.md +44 -0
  22. md_processing/dr_egeria_inbox/glossary_creation_experiment.ipynb +341 -0
  23. md_processing/dr_egeria_inbox/glossary_test1.md +324 -0
  24. md_processing/dr_egeria_inbox/rel.md +8 -0
  25. md_processing/dr_egeria_inbox/sb.md +119 -0
  26. md_processing/dr_egeria_inbox/search_test.md +39 -0
  27. md_processing/dr_egeria_inbox/solution-components.md +154 -0
  28. md_processing/dr_egeria_inbox/solution_blueprints.md +118 -0
  29. md_processing/dr_egeria_inbox/synonym_test.md +42 -0
  30. md_processing/dr_egeria_inbox/t1.md +0 -0
  31. md_processing/dr_egeria_inbox/t2.md +268 -0
  32. md_processing/dr_egeria_outbox/processed-2025-05-15 19:52-data_test.md +94 -0
  33. md_processing/dr_egeria_outbox/processed-2025-05-16 07:39-data_test.md +88 -0
  34. md_processing/dr_egeria_outbox/processed-2025-05-17 16:01-data_field.md +56 -0
  35. md_processing/dr_egeria_outbox/processed-2025-05-18 15:51-data_test.md +103 -0
  36. md_processing/dr_egeria_outbox/processed-2025-05-18 16:47-data_test.md +94 -0
  37. md_processing/dr_egeria_outbox/processed-2025-05-19 07:14-data_test.md +96 -0
  38. md_processing/dr_egeria_outbox/processed-2025-05-19 07:20-data_test.md +100 -0
  39. md_processing/dr_egeria_outbox/processed-2025-05-19 07:22-data_test.md +88 -0
  40. md_processing/dr_egeria_outbox/processed-2025-05-19 09:26-data_test.md +91 -0
  41. md_processing/dr_egeria_outbox/processed-2025-05-19 10:27-data_test.md +91 -0
  42. md_processing/md_commands/__init__.py +3 -0
  43. md_processing/md_commands/blueprint_commands.py +303 -0
  44. md_processing/md_commands/data_designer_commands.py +1183 -0
  45. md_processing/md_commands/glossary_commands.py +1144 -0
  46. md_processing/md_commands/project_commands.py +163 -0
  47. md_processing/md_processing_utils/__init__.py +4 -0
  48. md_processing/md_processing_utils/common_md_proc_utils.py +724 -0
  49. md_processing/md_processing_utils/common_md_utils.py +172 -0
  50. md_processing/md_processing_utils/extraction_utils.py +486 -0
  51. md_processing/md_processing_utils/md_processing_constants.py +122 -0
  52. md_processing/md_processing_utils/message_constants.py +19 -0
  53. pyegeria/data_designer_omvs.py +4 -3
  54. {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.3.9.9.5.dist-info}/METADATA +1 -2
  55. {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.3.9.9.5.dist-info}/RECORD +58 -6
  56. {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.3.9.9.5.dist-info}/LICENSE +0 -0
  57. {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.3.9.9.5.dist-info}/WHEEL +0 -0
  58. {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.3.9.9.5.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,313 @@
1
+ # Demonstrating updates and additions
2
+
3
+ This document was derived from the processing of the file dr_egeria_intro_part1.md; All the Dr.Egeria statements have been
4
+ preserved (including the generated attributes such as the unique GUIDs), and the explanatory text has been replaced.
5
+
6
+ In this document we will add glossary categories, update existing terms to categorize them, and add some new terms that
7
+ further explain dr.egeria. This document is being written off-line (actually on a plane) - demonstrating one of the
8
+ intriguing features of dr.egeria - because its just text, it can be edited anywhere and anytime that there is a text
9
+ editor. Dr.Egeria files can be emailed, sent via text message, slack, or maintained in a `git` repository.
10
+ It's just text with markdown annotations.
11
+
12
+ Ok, let's get started. First, we have the `Update Glossary` command below. There is nothing new we need to add at this
13
+ point so we can just leave it as-is. When this document is processed it will apply updates but if there are none,
14
+ It doesn't matter.
15
+
16
+ However, now is a good time to start to more formally specify the attributes available to `Create` or `Update` glossary
17
+ commands:
18
+
19
+
20
+ | Attribute Name | Input Required? | Read Only | Generated/Default? | Unique? | Notes |
21
+ |:---------------|:----------------|-----------|:-------------------|:--------|:---------------------------------------------------------------------------------------------------------|
22
+ | Glossary Name | Yes | No | No | No | A display name (informal name). |
23
+ | Language | No | No | No | No | The primary language for the glossary. |
24
+ | Description | No | No | No | No | A textual description of this glossary. |
25
+ | Usage | No | No | No | No | How the glossary is meant to be used, and by whom. |
26
+ | Qualified Name | Maybe | No | Yes | Yes | The qualified name can either be provided by the user or generated. If generated, a pattern is followed. |
27
+ | GUID | No | Yes | Yes | Yes | GUIDs are always generated by Egeria. They are meant for automation, not people. |
28
+
29
+ The table above shows us what attributes must be provided and which are optional. Once an object is created, and a qualified name is generated, it is good practice to use it as there can
30
+ be many objects with the same name, and this is a common way to disambiguate them. If you specify an object name (e.g. Glossary Name) and that name already exists, Dr.Egeria will report an error
31
+ and suggest that you provide a **Qualified Name** as well. You will also note that the GUID is generated by Egeria and is read-only. It is possible that some commands
32
+ may require a GUID to be specified, but in general we will use the **Qualified Name** to identify objects.
33
+
34
+ > Comment: In the Egeria and pyegeria APIs, Glossary Name is actually referenced as a **Display Name**. It is perfectly fine for multiple objects to have the same display name.
35
+ > However, it is required that even though the may share the same display name, they must have different qualified names and GUIDs. So if you provide a Glossary Name that already exists,
36
+ > you will get an error message that suggests that you provide a Qualified Name in addition to the Glossary Name.
37
+
38
+ ___
39
+
40
+ # Glossary Categories
41
+
42
+ Sometimes it can be useful to provide more structure to the glossary. The way to do this is through categories.
43
+ In Egeria, a category can have a single parent category and multiple child categories. A term can be assigned to
44
+ multiple categories. When we have a large number of terms, a category structure can be particularly helpful in finding the
45
+ terms that are most relevant to a particular interest. Using categories is optional.
46
+
47
+ Ok, now let's create a couple of glossary categories. They will be:
48
+
49
+ * **Writing Dr.Egeria Markdown** - where we describe elements of the Dr.Egeria language as terms within the category.
50
+ * **Processing Dr.Egeria Markdown** - where we describe the commands for processing Dr.Egeria.
51
+
52
+
53
+ Glossary categories have the following attributes:
54
+
55
+
56
+ | Attribute Name | Input Required? | Read Only | Generated/Default? | Unique? | Notes |
57
+ |:----------------|:----------------|-----------|:-------------------|:--------|:---------------------------------------------------------------------------------------------------------|
58
+ | Category Name | Yes | No | No | No | A display name (informal name). |
59
+ | Owning Glossary | Yes | No | No | Yes | This is the qualified name of the glossary that owns this category. |
60
+ | Description | No | No | No | No | A textual description of this category |
61
+ | Qualified Name | Maybe | No | Yes | Yes | The qualified name can either be provided by the user or generated. If generated, a pattern is followed. |
62
+ | GUID | No | Yes | Yes | Yes | GUIDs are always generated by Egeria. They are meant for automation, not people. |
63
+
64
+ > Note: Qualified Names can either be user specified or generated. If generated the following the form:
65
+ `{local-qualifier}::{type}::{display name}::{version}`. Local-Qualifier is an optional string that can be useful to both disambiguate similar names and to add some local context. Local qualifiers could be set to organization names, functions, business context, etc. The settings for a local qualifier is set either by setting the environment variable `EGERIA_LOCAL_QUALIFIER` or by passing in a parameter when executing one of the Dr.Egeria enabled commands. This could also be set for a team by an Egeria administrator.
66
+
67
+ Ok, here we go:
68
+
69
+ ___
70
+
71
+ # Create Category
72
+
73
+ ## Category Name
74
+
75
+ Writing Dr.Egeria Markdown
76
+
77
+ ## Owning Glossary
78
+
79
+ Glossary::Egeria-Markdown
80
+
81
+ ## Description
82
+
83
+ Terms in this category describe the elements of the Dr.Egeria Markdown language and how to use them.
84
+
85
+
86
+ ___
87
+
88
+ # Create Category
89
+
90
+ ## Category Name
91
+
92
+ Processing Dr.Egeria Markdown
93
+
94
+ ## In Glossary
95
+
96
+ Glossary::Egeria-Markdown
97
+
98
+ ## Description
99
+
100
+ Terms in this category describe commands to process Dr.Egeria Markdown.
101
+
102
+
103
+ ___
104
+
105
+ > Note: If you look at the examples above, you will notice that sometimes we specify **In Glossary** and sometimes we specify **Owning Glossary**.
106
+ > There is no difference. We will have preferred names that we will use when we generate a Dr.Egeria markdown file, but we try
107
+ > to be flexible and allow for common name variations. You will see how we document this as we proceed.
108
+
109
+ Now, let's add categories to the terms. Let's review the attributes of a term:
110
+
111
+
112
+ | Attribute Name | Input Required? | Read Only | Generated/Default? | Unique? | Notes |
113
+ |:-------------------|:----------------|:----------|:-------------------|:--------|:---------------------------------------------------------------------------------------------------------|
114
+ | Term Name | Yes | No | No | No | A display name (informal name). |
115
+ | Owning Glossary | Yes | No | No | Yes | This is the qualified name of the glossary that owns this term. |
116
+ | Aliases | No | No | No | No | Allows us to define aliases for a term name tha can be found with search. |
117
+ | Summary | No | No | No | No | A summary description of a term. |
118
+ | Categories | No | No | No | Yes | This is the name of the category. Multiple categories can be assigned, separated by a `,` or line. |
119
+ | Description | No | No | No | No | A textual description of this term. |
120
+ | Examples | No | No | No | No | Examples demonstrating the term. |
121
+ | Usage | No | No | No | No | Usage details for the term. |
122
+ | Version Identifier | No | No | No | No | A user specified version identifier useed in publishing a term version for usage. |
123
+ | Status | No | No | Yes - DRAFT | No | Valid values are "DRAFT", "PREPARED", "PROPOSED", "APPROVED", "REJECTED", ACTIVE", "DEPRECATED", "OTHER" |
124
+ | Qualified Name | No | No | No | Yes | The qualified name can either be provided by the user or generated. If generated, a pattern is followed. |
125
+ | GUID | No | Yes | Yes | Yes | GUIDs are always generated by Egeria. They are meant for automation, not people. |
126
+ | Update Description | No | No | No | No | Updates can have an update description added to the term's note log. |
127
+
128
+ > When we provide a category name in the `Categories` attribute, We can use either the display name form (Category Name) or the qualified name form. If we find that the display name is not unique,
129
+ > you will need to provide the qualified name. Its safer to use the qualified name, but a little less readable.
130
+
131
+ ___
132
+
133
+ # Update Term
134
+
135
+ ## Term Name
136
+
137
+ Command
138
+
139
+ ## Summary
140
+ Commands are how a user of the Dr.Egeria markdown language requests an action.
141
+
142
+ ## In Glossary
143
+ Glossary::Egeria-Markdown
144
+
145
+ ## Categories
146
+
147
+ Category::Writing Dr.Egeria Markdown, Category::Processing Dr.Egeria Markdown
148
+
149
+ ## Status
150
+ ACTIVE
151
+
152
+ ## Description
153
+ Commands are how a user can request Egeria to take an action such as Create or Update an Egeria element. Freddie
154
+ provides
155
+ a limited (but growing) set of commands. Dr.Egeria commands align with the pyegeria 'hey-egeria' command line interface.
156
+
157
+ ## Examples
158
+ Create Glossary or
159
+ Update Glossary or
160
+ Create Term or
161
+ Update Term
162
+
163
+ ## Usage
164
+ Commands are used in the Dr.Egeria markdown language.
165
+
166
+ ## Published Version
167
+
168
+ 0.2
169
+
170
+ ## Qualified Name
171
+
172
+
173
+
174
+ ___
175
+
176
+ # Update Term
177
+
178
+ ## Term Name
179
+
180
+ Source
181
+
182
+ ## Summary
183
+ Source of the markdown content.
184
+
185
+ ## In Glossary
186
+ Glossary::Egeria-Markdown
187
+
188
+ ## Categories
189
+
190
+ Processing Dr.Egeria Markdown
191
+
192
+ ## Status
193
+ ACTIVE
194
+
195
+ ## Description
196
+ Source of the markdown content - could be jupyter or plain markdown file.
197
+
198
+ ## Examples
199
+
200
+ ## Usage
201
+
202
+
203
+ ## Published Version
204
+
205
+ 0.2
206
+
207
+ ## Qualified Name
208
+ Term::Source::0.1
209
+
210
+
211
+ ___
212
+
213
+ # Update Term
214
+
215
+ ## In Glossary
216
+
217
+ Glossary::Egeria-Markdown
218
+
219
+ ## Term Name
220
+
221
+ Directive
222
+
223
+ ## Categories
224
+
225
+ Processing Dr.Egeria Markdown
226
+
227
+ ## Summary
228
+
229
+ A directive defines how the command is to be processed.
230
+
231
+ ## Description
232
+
233
+ Directives are one of:
234
+
235
+ * display - just display what we've found
236
+ * validate - check the validity of the requested action
237
+ * process - process the requested action
238
+
239
+
240
+
241
+ ## Version
242
+
243
+ 0.2
244
+
245
+ ## Status
246
+
247
+ DRAFT
248
+
249
+ ## Qualified Name
250
+ Term::Directive::0.1
251
+
252
+
253
+ # Inspecting the Glossary
254
+
255
+ Now that we have created a glossary, categories, and terms we can use some new commands to explore the glossary.
256
+ We will start with the `List Glossaries` command. This command will list all the glossaries that are available to us.
257
+
258
+ ___
259
+
260
+ # List Glossaries
261
+
262
+ ___
263
+
264
+ This will return a markdown table of all known glossaries based on the defaults set for the optional attributes. Here
265
+ is a more detailed specification of the attributes:
266
+
267
+ | Attribute Name | Input Required? | Read Only? | Generated/Default? | Unique? | Notes |
268
+ |----------------|-----------------|------------|----------------------------------|---------|-------------------------------------------|
269
+ | Search String | No | No | default is All glossaries | No | |
270
+ | Output Format | No | No | default is Markdown List (table) | No | options are: LIST, DICT, MD, FORM, REPORT |
271
+
272
+ Lets describe the output formats a bit further:
273
+
274
+ * LIST - This is the default format. It returns a markdown table of the glossaries.
275
+ * DICT - This returns a python dictionary (or JSON representation) of the glossaries.
276
+ * MD - This returns markdown text of the glossaries.
277
+ * FORM - This returns a Dr.Egeria markdown form designed to be used as a starting point for updating the glossary definitions.
278
+ * REPORT - This returns markdown text of the glossaries that is designed to be more readable and perhaps suitable to be used in a report.
279
+
280
+ Going further, we can issue similar commands to list categories and terms:
281
+
282
+ The attributes for the `List Categories` command are the same as the `List Glossaries` command.
283
+
284
+ Attributes for the `List Terms` command adds an additional optional attribute, Glossary Name, to allow you to
285
+ restrict the list of terms to a particular glossary.
286
+
287
+
288
+ | Attribute Name | Input Required? | Read Only? | Generated/Default? | Unique? | Notes |
289
+ |----------------|-----------------|------------|----------------------------------|---------|-------------------------------------------|
290
+ | Glossary Name | No | No | Default is All glossaries | No | |
291
+ | Search String | No | No | default is All terms | No | |
292
+ | Output Format | No | No | default is Markdown List (table) | No | options are: LIST, DICT, MD, FORM, REPORT |
293
+
294
+
295
+ Lets go ahead and give these commands a try:
296
+
297
+ ___
298
+
299
+ # List Categories
300
+ ## Output Format
301
+ REPORT
302
+
303
+ ___
304
+ # List Terms
305
+ ## Output Format
306
+ DICT
307
+ ## Glossary Name
308
+ Glossary::Egeria-Markdown
309
+ ___
310
+
311
+ If you now look at the processed document that was created, you can see the results of the commands that we have run.
312
+
313
+ In part 3, we will add more categories and terms to the glossary and create a simple category hierarchy. See you there!