pyMetaModel 0.3.4__tar.gz → 0.4.1__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.
Files changed (88) hide show
  1. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/PKG-INFO +1 -1
  2. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure.sidif +29 -12
  3. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events.sidif +158 -366
  4. pymetamodel-0.4.1/meta/__init__.py +1 -0
  5. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/metamodel.py +93 -17
  6. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/sidif2linkml.py +0 -2
  7. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/uml.py +14 -5
  8. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/version.py +1 -1
  9. pymetamodel-0.4.1/scripts/test +132 -0
  10. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/test_generators.py +12 -35
  11. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/test_mw.py +4 -3
  12. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/test_plantuml.py +8 -3
  13. pymetamodel-0.4.1/tests/test_sidif.py +141 -0
  14. pymetamodel-0.3.4/meta/__init__.py +0 -1
  15. pymetamodel-0.3.4/scripts/test +0 -49
  16. pymetamodel-0.3.4/tests/test_sidif.py +0 -31
  17. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/.github/workflows/build.yml +0 -0
  18. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/.github/workflows/upload-to-pypi.yml +0 -0
  19. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/.gitignore +0 -0
  20. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/.project +0 -0
  21. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/.pydevproject +0 -0
  22. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/LICENSE +0 -0
  23. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/README.md +0 -0
  24. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/docs/index.md +0 -0
  25. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws.mermaid +0 -0
  26. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws.puml +0 -0
  27. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws.py +0 -0
  28. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws.sidif +0 -0
  29. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws.xlsx +0 -0
  30. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws.yaml +0 -0
  31. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/ceur-ws/ceur-ws_puml.txt +0 -0
  32. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city.mermaid +0 -0
  33. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city.puml +0 -0
  34. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city.py +0 -0
  35. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city.sidif +0 -0
  36. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city.xlsx +0 -0
  37. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city.yaml +0 -0
  38. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/city/city_puml.txt +0 -0
  39. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext.mermaid +0 -0
  40. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext.puml +0 -0
  41. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext.py +0 -0
  42. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext.sidif +0 -0
  43. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext.xlsx +0 -0
  44. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext.yaml +0 -0
  45. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/family/FamilyContext_puml.txt +0 -0
  46. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure.mermaid +0 -0
  47. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure.puml +0 -0
  48. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure.py +0 -0
  49. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure.xlsx +0 -0
  50. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure.yaml +0 -0
  51. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/infrastructure/infrastructure_puml.txt +0 -0
  52. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel.mermaid +0 -0
  53. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel.puml +0 -0
  54. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel.py +0 -0
  55. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel.sidif +0 -0
  56. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel.xlsx +0 -0
  57. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel.yaml +0 -0
  58. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/metamodel/metamodel_puml.txt +0 -0
  59. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events.mermaid +0 -0
  60. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events.puml +0 -0
  61. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events.py +0 -0
  62. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events.xlsx +0 -0
  63. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events.yaml +0 -0
  64. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/scientific-events/scientific-events_puml.txt +0 -0
  65. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema.mermaid +0 -0
  66. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema.puml +0 -0
  67. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema.py +0 -0
  68. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema.sidif +0 -0
  69. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema.xlsx +0 -0
  70. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema.yaml +0 -0
  71. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/examples/teaching/TeachingSchema_puml.txt +0 -0
  72. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/metamodel_cmd.py +0 -0
  73. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/mw.py +0 -0
  74. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/profiler.py +0 -0
  75. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/meta/smw_type.py +0 -0
  76. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/metamodel.puml +0 -0
  77. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/mkdocs.yml +0 -0
  78. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/pyproject.toml +0 -0
  79. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/scripts/blackisort +0 -0
  80. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/scripts/doc +0 -0
  81. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/scripts/genexamples +0 -0
  82. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/scripts/install +0 -0
  83. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/scripts/release +0 -0
  84. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/__init__.py +0 -0
  85. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/basemwtest.py +0 -0
  86. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/basetest.py +0 -0
  87. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/test_linkml.py +0 -0
  88. {pymetamodel-0.3.4 → pymetamodel-0.4.1}/tests/test_metamodel.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyMetaModel
3
- Version: 0.3.4
3
+ Version: 0.4.1
4
4
  Dynamic: Summary
5
5
  Project-URL: Home, https://github.com/WolfgangFahl/pyMetaModel
6
6
  Project-URL: Documentation, https://wiki.bitplan.com/index.php/PyMetaModel
@@ -1,6 +1,17 @@
1
+ #
2
+ # This is the Inheritance example for the SiDIF based pyMetaModel
3
+ # see https://github.com/WolfgangFahl/pyMetaModel/issues/25
4
+ #
1
5
  Infrastructure isA Context
2
6
  "Infrastructure" is name of it
7
+ "2024-07-27" is since of it
8
+ "2024-08-02" is updated of it
9
+ "© 2024 Wolfgang Fahl" is copyright of it
10
+ "http://master.bitplan.com" is master of it
3
11
 
12
+ #
13
+ # a generic computer device
14
+ #
4
15
  Device isA Topic
5
16
  "Device" is name of it
6
17
  "Devices" is pluralName of it
@@ -9,6 +20,7 @@ Device isA Topic
9
20
  "/images/4/40/Component.png" is iconUrl of it
10
21
  "property" is defaultstoremode of it
11
22
  "Infrastructure" is context of it
23
+ # Properties of Device
12
24
  Device_name addsTo it
13
25
  Device_type addsTo it
14
26
  Device_since addsTo it
@@ -25,7 +37,6 @@ Device_website addsTo it
25
37
  Device_driver addsTo it
26
38
  Device_support addsTo it
27
39
  Device_comment addsTo it
28
-
29
40
  # properties of Device
30
41
  # property name
31
42
  Device_name isA Property
@@ -186,7 +197,7 @@ Device_comment isA Property
186
197
  #
187
198
  #Computer
188
199
  #
189
- Computer isA Device
200
+ Computer extends Device
190
201
  "Computer" is name of it
191
202
  "Computers" is pluralName of it
192
203
  "A computer runs software to automate tasks" is documentation of it
@@ -204,7 +215,7 @@ Computer_os isA Property
204
215
  "os" is name of it
205
216
  "os" is label of it
206
217
  "Text" is type of it
207
- 9 is index of it
218
+ 1 is index of it
208
219
  "The operating system of the computer" is documentation of it
209
220
  false is isLink of it
210
221
  "Computer" is topic of it
@@ -214,7 +225,7 @@ Computer_osversion isA Property
214
225
  "osversion" is name of it
215
226
  "osversion" is label of it
216
227
  "Text" is type of it
217
- 10 is index of it
228
+ 2 is index of it
218
229
  false is primaryKey of it
219
230
  false is mandatory of it
220
231
  false is uploadable of it
@@ -228,7 +239,7 @@ Computer_vm isA Property
228
239
  "vm" is name of it
229
240
  "vm" is label of it
230
241
  "Text" is type of it
231
- 12 is index of it
242
+ 3 is index of it
232
243
  false is primaryKey of it
233
244
  false is mandatory of it
234
245
  false is uploadable of it
@@ -242,7 +253,7 @@ false is isLink of it
242
253
  #
243
254
  #Harddisk
244
255
  #
245
- Harddisk isA Device
256
+ Harddisk extends Device
246
257
  "Harddisk" is name of it
247
258
  "Harddisks" is pluralName of it
248
259
  "A harddisk stores data on magnetic media or using SSD technology" is documentation of it
@@ -259,7 +270,7 @@ Harddisk_size isA Property
259
270
  "size" is name of it
260
271
  "size" is label of it
261
272
  "Number" is type of it
262
- 9 is index of it
273
+ 1 is index of it
263
274
  false is primaryKey of it
264
275
  false is mandatory of it
265
276
  false is uploadable of it
@@ -273,7 +284,7 @@ Harddisk_formfactor isA Property
273
284
  "formfactor" is name of it
274
285
  "formfactor" is label of it
275
286
  "Text" is type of it
276
- 10 is index of it
287
+ 2 is index of it
277
288
  false is primaryKey of it
278
289
  false is mandatory of it
279
290
  false is uploadable of it
@@ -289,7 +300,7 @@ Harddisk_rpm isA Property
289
300
  "rpm" is name of it
290
301
  "rpm" is label of it
291
302
  "Text" is type of it
292
- 11 is index of it
303
+ 3 is index of it
293
304
  false is primaryKey of it
294
305
  false is mandatory of it
295
306
  false is uploadable of it
@@ -300,7 +311,10 @@ false is showInGrid of it
300
311
  false is isLink of it
301
312
  "Harddisk" is topic of it
302
313
 
303
- Monitor isA Device
314
+ #
315
+ # Monitor
316
+ #
317
+ Monitor extends Device
304
318
  "Monitor" is name of it
305
319
  "Monitors" is pluralName of it
306
320
  "A display device for computers" is documentation of it
@@ -315,14 +329,17 @@ Monitor_resolution isA Property
315
329
  "resolution" is name of it
316
330
  "resolution" is label of it
317
331
  "Text" is type of it
318
- 16 is index of it
332
+ 1 is index of it
319
333
  true is mandatory of it
320
334
  "The display resolution of the monitor (e.g., 1920x1080)" is documentation of it
321
335
  true is showInGrid of it
322
336
  false is isLink of it
323
337
  "Monitor" is topic of it
324
338
 
325
- Printer isA Device
339
+ #
340
+ # Printer
341
+ #
342
+ Printer extends Device
326
343
  "Printer" is name of it
327
344
  "Printers" is pluralName of it
328
345
  "Paper printer" is documentation of it