pyegeria 5.4.0.dev3__py3-none-any.whl → 5.4.0.dev5__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 (61) hide show
  1. commands/cat/debug_log +227 -0
  2. commands/cat/dr_egeria_md.py +12 -3
  3. commands/cat/list_collections.py +7 -6
  4. commands/cat/list_data_designer.py +19 -8
  5. md_processing/__init__.py +4 -1
  6. md_processing/data/commands.json +142 -17
  7. md_processing/dr_egeria_outbox/processed-2025-06-22 21:06-dr_egeria_data_designer_1.md +134 -0
  8. md_processing/dr_egeria_outbox/processed-2025-06-22 21:13-dr_egeria_data_designer_1.md +133 -0
  9. md_processing/dr_egeria_outbox/processed-2025-06-22 21:19-dr_egeria_data_designer_1.md +141 -0
  10. md_processing/md_commands/data_designer_commands.py +408 -101
  11. md_processing/md_commands/glossary_commands.py +0 -30
  12. md_processing/md_commands/solution_architect_commands.py +1 -1
  13. md_processing/md_processing_utils/common_md_proc_utils.py +16 -4
  14. md_processing/md_processing_utils/md_processing_constants.py +3 -1
  15. pyegeria/collection_manager_omvs.py +120 -72
  16. pyegeria/data_designer_omvs.py +143 -42
  17. pyegeria/output_formatter.py +30 -11
  18. pyegeria/solution_architect_omvs.py +273 -5
  19. {pyegeria-5.4.0.dev3.dist-info → pyegeria-5.4.0.dev5.dist-info}/METADATA +1 -1
  20. {pyegeria-5.4.0.dev3.dist-info → pyegeria-5.4.0.dev5.dist-info}/RECORD +23 -57
  21. commands/cat/.DS_Store +0 -0
  22. commands/cat/debug_log.2025-06-05_20-24-18_123924.log.zip +0 -0
  23. commands/cat/debug_log.2025-06-10_08-45-03_929921.log.zip +0 -0
  24. commands/cat/debug_log.2025-06-11_09-57-21_247890.log.zip +0 -0
  25. commands/cat/debug_log.2025-06-12_16-14-31_212042.log.zip +0 -0
  26. commands/cat/debug_log.log +0 -1267
  27. commands/cat/solution_architect_log.log +0 -0
  28. md_processing/dr_egeria_inbox/archive/dr_egeria_intro.md +0 -254
  29. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_more_terms.md +0 -696
  30. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part1.md +0 -254
  31. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part2.md +0 -298
  32. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part3.md +0 -608
  33. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part4.md +0 -94
  34. md_processing/dr_egeria_inbox/archive/freddie_intro.md +0 -284
  35. md_processing/dr_egeria_inbox/archive/freddie_intro_orig.md +0 -275
  36. md_processing/dr_egeria_inbox/archive/test-term.md +0 -110
  37. md_processing/dr_egeria_inbox/cat_test.md +0 -100
  38. md_processing/dr_egeria_inbox/data_designer_search_test.md +0 -11
  39. md_processing/dr_egeria_inbox/data_field.md +0 -54
  40. md_processing/dr_egeria_inbox/data_spec.md +0 -77
  41. md_processing/dr_egeria_inbox/data_spec_test.md +0 -2406
  42. md_processing/dr_egeria_inbox/data_test.md +0 -179
  43. md_processing/dr_egeria_inbox/data_test2.md +0 -376
  44. md_processing/dr_egeria_inbox/dr_egeria_intro_categories.md +0 -168
  45. md_processing/dr_egeria_inbox/dr_egeria_intro_part1.md +0 -280
  46. md_processing/dr_egeria_inbox/dr_egeria_intro_part2.md +0 -313
  47. md_processing/dr_egeria_inbox/dr_egeria_intro_part3.md +0 -1073
  48. md_processing/dr_egeria_inbox/dr_egeria_isc1.md +0 -44
  49. md_processing/dr_egeria_inbox/glossary_search_test.md +0 -40
  50. md_processing/dr_egeria_inbox/glossary_test1.md +0 -324
  51. md_processing/dr_egeria_inbox/rel.md +0 -8
  52. md_processing/dr_egeria_inbox/sb.md +0 -119
  53. md_processing/dr_egeria_inbox/solution-components.md +0 -129
  54. md_processing/dr_egeria_inbox/solution_blueprints.md +0 -118
  55. md_processing/dr_egeria_inbox/synonym_test.md +0 -42
  56. md_processing/dr_egeria_inbox/t1.md +0 -0
  57. md_processing/dr_egeria_inbox/t2.md +0 -268
  58. pyegeria/.DS_Store +0 -0
  59. {pyegeria-5.4.0.dev3.dist-info → pyegeria-5.4.0.dev5.dist-info}/LICENSE +0 -0
  60. {pyegeria-5.4.0.dev3.dist-info → pyegeria-5.4.0.dev5.dist-info}/WHEEL +0 -0
  61. {pyegeria-5.4.0.dev3.dist-info → pyegeria-5.4.0.dev5.dist-info}/entry_points.txt +0 -0
@@ -1,280 +0,0 @@
1
- # Introduction to Dr.Egeria - an Egeria Markdown Processor
2
-
3
-
4
- A constant challenge in managing information is gathering enough metadata about the information to
5
- allow us to manage it. A common approach is to build fancy graphical user interfaces hoping that they
6
- will be attractive enough and easy enough to use that people will do so.
7
-
8
- Unfortunately, however, this ignores the fundamental fact that to use one of these nice GUI
9
- applications, you have to step away from the tools and processes that you were in the midst of performing.
10
- You have to leave your world and enter a new, often less familiar one.
11
-
12
- Dr.Egeria, is an experiment in turning this around. Its not that fancy graphical user
13
- interfaces don't have a role - but rather, to look at what we can do to support the
14
- tools and approaches people already use. And maybe even make their day job a little
15
- easier and a little more enjoyable.
16
-
17
- So this is what we are exploring with Dr.Egeria. An Egeria Markdown language that allows
18
- users to intermix requests to Egeria with other text through the use of standard Markdown. The markdown text
19
- that we process can be in standard markdown (.md) files, in Jupyter notebooks, and perhaps other file formats.
20
-
21
- This markdown file is an example. You will see that we intersperse normal narrative text (such as this)
22
- with Commands to Egeria. We introduce a specific vocabulary to make Egeria requests.
23
-
24
- In the example below we will create a new Egeria glossary to hold definitions related to Dr.Egeria.
25
- We will then show how we can process this file which will record the information into Egeria and create a new
26
- output file that acts as both a receipt showing what was processed as well as a starting point for making updates.
27
-
28
- So here we go! First lets define a new Glossary::
29
-
30
- ___
31
-
32
- # Create Glossary
33
-
34
- ## Glossary Name
35
-
36
- Egeria-Markdown
37
-
38
- ## Language
39
-
40
- English
41
-
42
- ## Description
43
-
44
- Glossary to describe the vocabulary of Dr.Egeria - an Egeria Markdown language to support the exchange of metadata in a Markdown form.
45
- Dr.Egeria allows users to create metadata annotations using any text entry system that supports the entry of standard Markdown
46
- notation and, through post-processing
47
- commands, validates the Egeria content and sends the requests to be sent to Egeria.
48
-
49
- ## Usage
50
-
51
- 1. (optional) load an example or template for the type of object from Egeria.
52
-
53
- 2. Create a new document (perhaps from a template) and edit it, adding in the content with the Dr.Egeria controlled Markdown language.
54
- 3. Process the document to validate and display it before you submit it, Validation may annotate your document with recommendations and potential issues.
55
- 4. Submit the document to Egeria using the Dr.Egeria commands.
56
- 5. Review the resulting output document to see what was created and give you a starting point for making updates.
57
-
58
- > Hint: Many of the hey_egeria commands have the option to save their output as Dr.Egeria markdown form.
59
-
60
- ## Version
61
-
62
-
63
- ## Status
64
-
65
- ACTIVE
66
-
67
-
68
-
69
- ___
70
-
71
-
72
- # First Walk-Through
73
- The block of markdown above is a request to create a new Egeria Glossary called `Egeria-Markdown`. Let's briefly walk
74
- through. The command starts when we see `# Create Glossary`. This is a known phrase in Dr.Egeria. When we see this
75
- phrase we recognize that this is an Egeria markdown request block. The request block ends if we encounter another `#` or
76
- `___`, or run out of text. Within this request block we note some **attributes** that begin with a `## `. The first that we encounter is `## Glossary Name`. Not all attributes need to be filled in. Later, we'll process this file and demonstrate how to tell - but first, lets look at the attributes shown:
77
-
78
- * `## Glossary Name` - this is the display name of the glossary. In this case the name is `Egeria-Markdown` As you can see, the value of the attribute is the plain text that follows it.
79
- * `## Language` - what language will the terms of the glossary be in (yes there are ways to have mixed language but Dr.Egeria strives to be as simple as possible).
80
- * `## Description` - a description of the glossary and its purpose.
81
- * `## Usage` - how the glossary is meant to be used, and by whom.
82
- * `## Qualified Name` - every element in Egeria must have a unique qualified name that we use to distinguish it from all other elements. The qualified name is meant to be understandable by humans, although it may follow formatting conventions. This attribute can be left blank for now - it will be automatically generated if empty.
83
- * `## GUID` - same story as qualified name except that this is meant for automation and not people. It is always created for us.
84
-
85
- And that's it. That's all we need to do to specify the creation of a new glossary (well - mostly - we'll reveal a few
86
- more details a bit later).
87
-
88
- ## Great! That was easy!
89
-
90
- We now have a nice, clean, new...and empty...glossary - guess we better start filling it. Lets start filling it with terms.
91
-
92
- ___
93
-
94
- # Create Term
95
-
96
- ## Term Name
97
-
98
- Command
99
-
100
- ## In Glossary
101
-
102
- Glossary::Egeria-Markdown
103
-
104
-
105
- ## Summary
106
-
107
- Commands are how a user of the Dr.Egeria markdown language request an action.
108
-
109
- ## Description
110
-
111
- Commands are how a user can request Egeria to take an action such as Create or Update an Egeria element. Dr.Egeria
112
- provides a limited (but growing) set of commands. Dr.Egeria commands align with the pyegeria 'hey-egeria'
113
- command line interface and, of course, the underlying Egeria REST API.
114
-
115
- The commands currently use the following verbs to act on Egeria elements:
116
-
117
- * Create
118
- * Update
119
- * List
120
- * Provenance
121
-
122
- ## Abbreviation
123
-
124
- ## Examples
125
-
126
- Create Glossary or
127
- Update Glossary or
128
- Create Term or
129
- Update Term
130
-
131
- ## Usage
132
-
133
- Commands are used in the Dr.Egeria markdown language.
134
-
135
- ## Version
136
-
137
- 0.2
138
-
139
- ## Status
140
-
141
- ACTIVE
142
-
143
- ## Qualified Name
144
-
145
- ## GUID
146
-
147
- ___
148
-
149
- # Create Term
150
-
151
- ## In Glossary
152
-
153
- Glossary::Egeria-Markdown
154
-
155
- ## Term Name
156
-
157
- Source
158
-
159
- ## Summary
160
-
161
- Source of the markdown content.
162
-
163
- ## Description
164
-
165
- Source of the markdown content - could be jupter or plain markdown file.
166
-
167
- ## Abbreviation
168
-
169
- ## Examples
170
-
171
- ## Usage
172
-
173
- ## Version
174
-
175
- 0.2
176
-
177
- ## Status
178
-
179
- ACTIVE
180
-
181
- ## Qualified Name
182
-
183
- ## GUID
184
-
185
-
186
- ___
187
-
188
- # Create Term
189
-
190
- ## In Glossary
191
-
192
- Glossary::Egeria-Markdown
193
-
194
- ## Term Name
195
-
196
- Directive
197
-
198
- ## Summary
199
-
200
- A directive defines how the command is to be processed.
201
-
202
- ## Description
203
-
204
- Directives are one of:
205
-
206
- * display - just display what we've found
207
- * validate - check the validity of the requested action
208
- * process - process the requested action
209
-
210
-
211
- ## Version
212
-
213
- 0.1
214
-
215
- ## Status
216
-
217
- ACTIVE
218
-
219
- ## Qualified Name
220
-
221
- ## GUID
222
-
223
- ___
224
-
225
- # Some terms specified - Now what?
226
-
227
- Ok - we've now defined a glossary and three terms to go into the glossary. A few observations.
228
-
229
- * There is a degree of freedom in writing the definitions. The attributes aren't always in the same
230
- order and optional attributes don't need to be specified at all. We try to make things as easy as possible.
231
- * We can run a definition file through a validation process to check our proposed definition and provide feedback.
232
- * When we process a definition we will use the same validation process before trying to update Egeria
233
- with the requested definitions - requests may get rejected or altered - this will be consistent with the feedback we
234
- provide during validation.
235
-
236
- Here is what we'll do next.
237
-
238
- ## Next
239
- > Tip: An easy way to get started is by installing [Egeria Workspaces](https://github.com/odpi/egeria-workspaces) and
240
- > using the hey_egeria command line interface. Tutorials are available at [Egeria-Workspaces](https://youtu.be/Dc5i5EpRusE).
241
-
242
- We will run a small program called `dr_egeria_md.py` to operate on this markdown file.
243
- When we run this program we tell it not just the name of the file to process but also provide a directive on what to do.
244
- Currently we have the choice of:
245
-
246
- 1. Display - just parse the file, breaking it down into request blocks, and display what we find
247
- 2. Validate - parse the file and validate if the commands can be processed - showing information about what we observe.
248
- 3. Process - parse the request blocks and execute the commands - and produce a new output file to simplify further processing.
249
-
250
-
251
- # Great --> let's give it a try!
252
-
253
- Ok - its processed the file and generated output to the console that shows us what it has done.
254
- We also now have a new file in the designated outbox (specified by an Environment Variable).
255
- If we review that file, we see that it has similar content to this original file except that
256
- the **Create** statements have been replaced with **Update** statements and
257
- attributes such as **Qualified Name** and **GUID** now contain the known values.
258
-
259
- This means that if we want to make changes to the definitions that we have
260
- created, all we need to do is to make changes to the updatable attributes in this
261
- new document and resubmit it - pretty simple.
262
-
263
- Here is a diagram of this process from the user perspective:
264
-
265
- ```mermaid
266
- flowchart TD
267
- A[Text Editor or Jupyter Notebook] --> B(dr.egeria content)
268
- B --> C{dr.egeria command}
269
- C -->|display| D[console output]
270
- C -->|validate| E[console validation output and file]
271
- C -->|process| F[console output and processed output file]
272
- F-->|Additional Updates|A
273
- E-->|Additional Updates|A
274
- ```
275
-
276
- In the next section we'll see how we can update and extend what we have done by creating
277
- some glossary categories and then assigning categories to the terms.
278
- To do this we will copy the output document that we just created and call the
279
- copy dr_egeria_intro_part2.md. The text of the document has also been updated
280
- to reflect the purpose. Let's open that now!
@@ -1,313 +0,0 @@
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!