pyMetaModel 0.4.4__tar.gz → 0.5.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.
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/PKG-INFO +9 -7
- pymetamodel-0.5.1/meta/__init__.py +1 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/metamodel.py +13 -1
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/version.py +1 -1
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/pyproject.toml +26 -12
- pymetamodel-0.5.1/scripts/install +3 -0
- pymetamodel-0.4.4/meta/__init__.py +0 -1
- pymetamodel-0.4.4/scripts/install +0 -3
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/.github/workflows/build.yml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/.github/workflows/upload-to-pypi.yml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/.gitignore +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/.project +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/.pydevproject +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/LICENSE +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/README.md +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/docs/index.md +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/ceur-ws/ceur-ws_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/city/city_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/family/FamilyContext_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/infrastructure/infrastructure_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/metamodel/metamodel_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/scientific-events/scientific-events_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smartRQM/smartRQM.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smartRQM/smartRQM.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smartRQM/smartRQM.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smartRQM/smartRQM.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smartRQM/smartRQM.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smartRQM/smartRQM_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/smwcon/smwcon_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/teaching/TeachingSchema_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki.mermaid +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki.sidif +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki.xlsx +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki.yaml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/examples/wiki/wiki_puml.txt +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/metamodel_cmd.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/mw.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/profiler.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/sidif2linkml.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/smw_type.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/meta/uml.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/metamodel.puml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/mkdocs.yml +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/scripts/blackisort +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/scripts/doc +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/scripts/genexamples +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/scripts/release +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/scripts/test +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/__init__.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/basemwtest.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/basesmwtest.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/basetest.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/test_generators.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/test_linkml.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/test_metamodel.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/test_mw.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/test_plantuml.py +0 -0
- {pymetamodel-0.4.4 → pymetamodel-0.5.1}/tests/test_sidif.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pyMetaModel
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.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
|
|
@@ -208,7 +208,6 @@ License: Apache License
|
|
|
208
208
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
209
209
|
See the License for the specific language governing permissions and
|
|
210
210
|
limitations under the License.
|
|
211
|
-
License-File: LICENSE
|
|
212
211
|
Classifier: Development Status :: 4 - Beta
|
|
213
212
|
Classifier: Environment :: Web Environment
|
|
214
213
|
Classifier: Intended Audience :: Developers
|
|
@@ -223,13 +222,16 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
223
222
|
Classifier: Topic :: Software Development
|
|
224
223
|
Requires-Python: >=3.9
|
|
225
224
|
Requires-Dist: dacite>=1.8.1
|
|
226
|
-
Requires-Dist: linkml-runtime>=1.4.10
|
|
227
|
-
Requires-Dist: linkml>=1.4.11
|
|
228
|
-
Requires-Dist: mwparserfromhell>=0.6.6
|
|
229
|
-
Requires-Dist: py-3rdparty-mediawiki>=0.11.3
|
|
230
225
|
Requires-Dist: py-sidif>=0.2.0
|
|
231
|
-
Requires-Dist: pylodstorage>=0.11.7
|
|
232
226
|
Requires-Dist: urllib3
|
|
227
|
+
Provides-Extra: linkml
|
|
228
|
+
Requires-Dist: linkml-runtime>=1.8.3; extra == 'linkml'
|
|
229
|
+
Requires-Dist: linkml>=1.8.5; extra == 'linkml'
|
|
230
|
+
Provides-Extra: lodstorage
|
|
231
|
+
Requires-Dist: pylodstorage>=0.13.3; extra == 'lodstorage'
|
|
232
|
+
Provides-Extra: smw
|
|
233
|
+
Requires-Dist: mwparserfromhell>=0.6.6; extra == 'smw'
|
|
234
|
+
Requires-Dist: py-3rdparty-mediawiki>=0.14.0; extra == 'smw'
|
|
233
235
|
Provides-Extra: test
|
|
234
236
|
Requires-Dist: green; extra == 'test'
|
|
235
237
|
Description-Content-Type: text/markdown
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.5.1"
|
|
@@ -249,6 +249,7 @@ class Context(MetaModelElement):
|
|
|
249
249
|
prop = Property()
|
|
250
250
|
prop.isLink = False
|
|
251
251
|
prop.fromDict(record)
|
|
252
|
+
prop.sanitize()
|
|
252
253
|
context.addProperty(prop)
|
|
253
254
|
else: # isA == Topic or in declared topics
|
|
254
255
|
topic = Topic()
|
|
@@ -656,7 +657,8 @@ class Property(MetaModelElement):
|
|
|
656
657
|
"sortPos": 2,
|
|
657
658
|
"primaryKey": False,
|
|
658
659
|
"mandatory": True,
|
|
659
|
-
"namespace": "
|
|
660
|
+
"namespace": "Main",
|
|
661
|
+
"scope": "Global",
|
|
660
662
|
"size": 25,
|
|
661
663
|
"uploadable": False,
|
|
662
664
|
"defaultValue": "Some Title",
|
|
@@ -685,6 +687,16 @@ class Property(MetaModelElement):
|
|
|
685
687
|
return samples
|
|
686
688
|
|
|
687
689
|
|
|
690
|
+
def sanitize(self):
|
|
691
|
+
"""
|
|
692
|
+
make sure attributes such as namespace are set properly
|
|
693
|
+
"""
|
|
694
|
+
self.namespace="Property"
|
|
695
|
+
self.topicLink=None
|
|
696
|
+
if hasattr(self, "scope"):
|
|
697
|
+
pass
|
|
698
|
+
pass
|
|
699
|
+
|
|
688
700
|
class TopicLink(MetaModelElement):
|
|
689
701
|
"""
|
|
690
702
|
A TopicLink links two Concepts/Topics
|
|
@@ -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 = "2024-
|
|
19
|
+
updated = "2024-11-27"
|
|
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"
|
|
@@ -21,17 +21,7 @@ dependencies = [
|
|
|
21
21
|
'py-sidif>=0.2.0',
|
|
22
22
|
# https://github.com/urllib3/urllib3
|
|
23
23
|
'urllib3',
|
|
24
|
-
|
|
25
|
-
'py-3rdparty-mediawiki>=0.11.3',
|
|
26
|
-
# https://pypi.org/project/pylodstorage/
|
|
27
|
-
'pyLodStorage>=0.11.7',
|
|
28
|
-
# https://pypi.org/project/mwparserfromhell/
|
|
29
|
-
'mwparserfromhell>=0.6.6',
|
|
30
|
-
# https://pypi.org/project/linkml/
|
|
31
|
-
'linkml>=1.4.11',
|
|
32
|
-
# https://pypi.org/project/linkml-runtime/
|
|
33
|
-
'linkml-runtime>=1.4.10',
|
|
34
|
-
# https://github.com/konradhalas/dacite
|
|
24
|
+
# https://github.com/konradhalas/dacite
|
|
35
25
|
'dacite>=1.8.1',
|
|
36
26
|
]
|
|
37
27
|
|
|
@@ -61,8 +51,32 @@ Source = "https://github.com/WolfgangFahl/pyMetaModel"
|
|
|
61
51
|
|
|
62
52
|
[project.optional-dependencies]
|
|
63
53
|
test = [
|
|
64
|
-
|
|
54
|
+
"green",
|
|
65
55
|
]
|
|
56
|
+
# python List of Dict (Table) Storage library
|
|
57
|
+
lodstorage = [
|
|
58
|
+
# https://pypi.org/project/pylodstorage/
|
|
59
|
+
'pyLodStorage>=0.13.3',
|
|
60
|
+
]
|
|
61
|
+
# LinkML support
|
|
62
|
+
# https://linkml.io/
|
|
63
|
+
linkml = [
|
|
64
|
+
# https://pypi.org/project/linkml/
|
|
65
|
+
'linkml>=1.8.5',
|
|
66
|
+
# https://pypi.org/project/linkml-runtime/
|
|
67
|
+
'linkml-runtime>=1.8.3',
|
|
68
|
+
]
|
|
69
|
+
# MediaWiki https://www.mediawiki.org/wiki/MediaWiki
|
|
70
|
+
# and
|
|
71
|
+
# SMW - Semantic MediaWiki https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki
|
|
72
|
+
# support
|
|
73
|
+
smw = [
|
|
74
|
+
# https://pypi.org/project/py-3rdparty-mediawiki/
|
|
75
|
+
'py-3rdparty-mediawiki>=0.14.0',
|
|
76
|
+
# https://pypi.org/project/mwparserfromhell/
|
|
77
|
+
'mwparserfromhell>=0.6.6',
|
|
78
|
+
]
|
|
79
|
+
|
|
66
80
|
|
|
67
81
|
[tool.hatch.build.targets.wheel]
|
|
68
82
|
only-include = ["meta"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.4"
|
|
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.4.4 → pymetamodel-0.5.1}/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.4.4 → pymetamodel-0.5.1}/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
|