pyMetaModel 0.6.0__tar.gz → 0.6.2__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.
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/PKG-INFO +1 -1
- pymetamodel-0.6.2/meta/__init__.py +1 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/metamodel.py +7 -2
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/smw_type.py +8 -1
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/version.py +1 -1
- pymetamodel-0.6.0/meta/__init__.py +0 -1
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/.github/workflows/build.yml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/.github/workflows/upload-to-pypi.yml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/.gitignore +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/.project +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/.pydevproject +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/LICENSE +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/README.md +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/docs/index.md +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/ceur-ws/ceur-ws_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/city/city_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/family/FamilyContext_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/infrastructure/infrastructure_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/metamodel/metamodel_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smartRQM/smartRQM.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smartRQM/smartRQM.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smartRQM/smartRQM.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smartRQM/smartRQM.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smartRQM/smartRQM.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smartRQM/smartRQM_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/smwcon/smwcon_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/teaching/TeachingSchema_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki.mermaid +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki.sidif +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki.xlsx +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki.yaml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/wiki/wiki_puml.txt +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/metamodel_cmd.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/mw.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/profiler.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/sidif2linkml.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/meta/uml.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/metamodel.puml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/mkdocs.yml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/pyproject.toml +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/scripts/blackisort +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/scripts/doc +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/scripts/genexamples +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/scripts/install +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/scripts/release +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/scripts/test +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/__init__.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/basemwtest.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/basesmwtest.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/basetest.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/test_generators.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/test_linkml.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/test_metamodel.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/test_mw.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/test_plantuml.py +0 -0
- {pymetamodel-0.6.0 → pymetamodel-0.6.2}/tests/test_sidif.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.6.2"
|
|
@@ -355,17 +355,20 @@ class Topic:
|
|
|
355
355
|
A Topic is a Concept/Class/Thing/Entity
|
|
356
356
|
"""
|
|
357
357
|
name: Optional[str] = None
|
|
358
|
+
icon: Optional[str] = None
|
|
359
|
+
context: Optional[str] = None
|
|
358
360
|
_pluralName: Optional[str] = None
|
|
359
361
|
documentation: Optional[str] = None
|
|
360
362
|
wikiDocumentation: Optional[str] = None
|
|
361
363
|
defaultstoremode: str = "property"
|
|
362
364
|
extends: Optional[str] = None
|
|
363
|
-
context_obj: Optional[Context] = None
|
|
364
|
-
conceptProperty: Optional['Property'] = None
|
|
365
365
|
listLimit: int = 200
|
|
366
366
|
properties: Dict[str, 'Property'] = field(default_factory=dict)
|
|
367
367
|
sourceTopicLinks: Dict[str, 'TopicLink'] = field(default_factory=dict)
|
|
368
368
|
targetTopicLinks: Dict[str, 'TopicLink'] = field(default_factory=dict)
|
|
369
|
+
# object references
|
|
370
|
+
context_obj: Optional[Context] = None
|
|
371
|
+
conceptProperty: Optional['Property'] = None
|
|
369
372
|
|
|
370
373
|
|
|
371
374
|
def get_extends_topics(self, l: List['Topic'] = None) -> List['Topic']:
|
|
@@ -423,6 +426,7 @@ class Topic:
|
|
|
423
426
|
self.wikiDocumentation=doc
|
|
424
427
|
if not hasattr(self,"defaultstoremode"):
|
|
425
428
|
self.defaultstoremode="property"
|
|
429
|
+
pass
|
|
426
430
|
|
|
427
431
|
@classmethod
|
|
428
432
|
def getSamples(cls):
|
|
@@ -703,6 +707,7 @@ class TopicLink:
|
|
|
703
707
|
name: Optional[str] = None
|
|
704
708
|
source: Optional[str] = None
|
|
705
709
|
target: Optional[str] = None
|
|
710
|
+
separator: Optional[str] = None
|
|
706
711
|
sourceRole: Optional[str] = None
|
|
707
712
|
targetRole: Optional[str] = None
|
|
708
713
|
sourceMultiple: bool = False
|
|
@@ -8,7 +8,7 @@ class SMW_Type:
|
|
|
8
8
|
an SMW_Type is a data type which determines the possible values for that type e.g. a Boolean can hold true/false values while a Number can hold 3.1459 or 20. A Page can hold the name of a Wiki page see https://semantic-mediawiki.org/wiki/Help:List_of_datatypes
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
|
-
pageTitle: str
|
|
11
|
+
pageTitle: Optional[str]
|
|
12
12
|
type: Optional[
|
|
13
13
|
str
|
|
14
14
|
] # The Semantic MediaWiki type without the prefix e.g. Text, Number, Boolean
|
|
@@ -20,6 +20,13 @@ class SMW_Type:
|
|
|
20
20
|
] # The Semantic Media Wiki Special page for this specific type e.g. Special:Types/Text, Special:Types/Boolean, Special:Types/Date, Special:Types/Number, Special:Types/Page
|
|
21
21
|
javaType: Optional[str] # Java mapping of this type
|
|
22
22
|
|
|
23
|
+
def __post_init__(self):
|
|
24
|
+
if self.pageTitle is None:
|
|
25
|
+
self.pageTitle=self.typepage
|
|
26
|
+
if self.pageTitle is not None and self.id is None:
|
|
27
|
+
self.id = self.pageTitle.split("Special:Types/")[-1]
|
|
28
|
+
pass
|
|
29
|
+
|
|
23
30
|
@classmethod
|
|
24
31
|
def askQuery(cls)->str:
|
|
25
32
|
"""
|
|
@@ -16,7 +16,7 @@ class Version(object):
|
|
|
16
16
|
description = "pyMetaModel: MetaModel for Knowledge Graphs"
|
|
17
17
|
version = meta.__version__
|
|
18
18
|
date = "2022-11-30"
|
|
19
|
-
updated = "2025-
|
|
19
|
+
updated = "2025-08-20"
|
|
20
20
|
authors = "Wolfgang Fahl"
|
|
21
21
|
doc_url = "https://wiki.bitplan.com/index.php/pyMetaModel"
|
|
22
22
|
chat_url = "https://github.com/WolfgangFahl/pyMetaModel/discussions"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.6.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events.mermaid
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymetamodel-0.6.0 → pymetamodel-0.6.2}/examples/scientific-events/scientific-events_puml.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|