pyMetaModel 0.6.1__tar.gz → 0.6.3__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.1 → pymetamodel-0.6.3}/PKG-INFO +1 -1
- pymetamodel-0.6.3/meta/__init__.py +1 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/metamodel.py +27 -11
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/smw_type.py +8 -1
- pymetamodel-0.6.1/meta/__init__.py +0 -1
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/.github/workflows/build.yml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/.github/workflows/upload-to-pypi.yml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/.gitignore +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/.project +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/.pydevproject +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/LICENSE +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/README.md +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/docs/index.md +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/ceur-ws/ceur-ws_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/city/city_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/family/FamilyContext_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/infrastructure/infrastructure_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/metamodel/metamodel_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/scientific-events/scientific-events_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smartRQM/smartRQM.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smartRQM/smartRQM.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smartRQM/smartRQM.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smartRQM/smartRQM.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smartRQM/smartRQM.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smartRQM/smartRQM_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/smwcon/smwcon_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/teaching/TeachingSchema_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki.mermaid +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki.sidif +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki.xlsx +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki.yaml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/examples/wiki/wiki_puml.txt +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/metamodel_cmd.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/mw.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/profiler.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/sidif2linkml.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/uml.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/meta/version.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/metamodel.puml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/mkdocs.yml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/pyproject.toml +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/scripts/blackisort +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/scripts/doc +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/scripts/genexamples +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/scripts/install +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/scripts/release +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/scripts/test +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/__init__.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/basemwtest.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/basesmwtest.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/basetest.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/test_generators.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/test_linkml.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/test_metamodel.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/test_mw.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/test_plantuml.py +0 -0
- {pymetamodel-0.6.1 → pymetamodel-0.6.3}/tests/test_sidif.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.6.3"
|
|
@@ -17,6 +17,7 @@ from meta.smw_type import SMW_Type
|
|
|
17
17
|
from sidif.sidif import SiDIFParser
|
|
18
18
|
import urllib3
|
|
19
19
|
|
|
20
|
+
# see also https://wiki.bitplan.com/index.php/PyMetaModel
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
@lod_storable
|
|
@@ -355,14 +356,17 @@ class Topic:
|
|
|
355
356
|
A Topic is a Concept/Class/Thing/Entity
|
|
356
357
|
"""
|
|
357
358
|
name: Optional[str] = None
|
|
358
|
-
icon: Optional[str] = None
|
|
359
|
-
context: Optional[str] = None
|
|
360
359
|
_pluralName: Optional[str] = None
|
|
360
|
+
icon: Optional[str] = None
|
|
361
|
+
iconUrl: Optional[str] = None
|
|
361
362
|
documentation: Optional[str] = None
|
|
362
363
|
wikiDocumentation: Optional[str] = None
|
|
363
364
|
defaultstoremode: str = "property"
|
|
364
365
|
extends: Optional[str] = None
|
|
365
366
|
listLimit: int = 200
|
|
367
|
+
cargo:bool=False
|
|
368
|
+
headerTabs:bool=False
|
|
369
|
+
context: Optional[str] = None
|
|
366
370
|
properties: Dict[str, 'Property'] = field(default_factory=dict)
|
|
367
371
|
sourceTopicLinks: Dict[str, 'TopicLink'] = field(default_factory=dict)
|
|
368
372
|
targetTopicLinks: Dict[str, 'TopicLink'] = field(default_factory=dict)
|
|
@@ -632,17 +636,26 @@ class Property:
|
|
|
632
636
|
name: Optional[str] = None
|
|
633
637
|
label: Optional[str] = None
|
|
634
638
|
type: Optional[str] = None
|
|
635
|
-
topic: Optional[str] = None
|
|
636
|
-
documentation: Optional[str] = None
|
|
637
|
-
namespace: str = "Property"
|
|
638
|
-
showInGrid: bool = True
|
|
639
|
-
isLink: bool = False
|
|
640
|
-
topicLink: Optional['TopicLink'] = None
|
|
641
639
|
index: Optional[int] = None
|
|
642
640
|
sortPos: Optional[int] = None
|
|
643
641
|
primaryKey: bool = False
|
|
644
642
|
mandatory: bool = False
|
|
643
|
+
namespace: str = "Property"
|
|
644
|
+
size: Optional[int] = None
|
|
645
|
+
uploadable: bool = False
|
|
646
|
+
defaultValue: Optional[str] = None
|
|
647
|
+
inputType: Optional[str] = None
|
|
648
|
+
allowedValues: Optional[str]=None
|
|
649
|
+
documentation: Optional[str] = None
|
|
650
|
+
values_from: Optional[str]=None
|
|
651
|
+
formatterURI: Optional[str] = None # externalFormatterURI
|
|
652
|
+
showInGrid: bool = True
|
|
653
|
+
isLink: bool = False
|
|
654
|
+
nullable: bool = False
|
|
645
655
|
sortAscending: bool = True
|
|
656
|
+
# Links
|
|
657
|
+
topic: Optional[str] = None
|
|
658
|
+
topicLink: Optional['TopicLink'] = None
|
|
646
659
|
|
|
647
660
|
|
|
648
661
|
@classmethod
|
|
@@ -706,13 +719,16 @@ class TopicLink:
|
|
|
706
719
|
|
|
707
720
|
name: Optional[str] = None
|
|
708
721
|
source: Optional[str] = None
|
|
709
|
-
target: Optional[str] = None
|
|
710
722
|
sourceRole: Optional[str] = None
|
|
711
|
-
targetRole: Optional[str] = None
|
|
712
723
|
sourceMultiple: bool = False
|
|
713
|
-
targetMultiple: bool = False
|
|
714
724
|
sourceDocumentation: Optional[str] = None
|
|
725
|
+
target: Optional[str] = None
|
|
726
|
+
targetRole: Optional[str] = None
|
|
727
|
+
targetMultiple: bool = False
|
|
715
728
|
targetDocumentation: Optional[str] = None
|
|
729
|
+
separator: Optional[str] = None
|
|
730
|
+
|
|
731
|
+
# calculate objects
|
|
716
732
|
sourceTopic: Optional[Topic] = None
|
|
717
733
|
targetTopic: Optional[Topic] = None
|
|
718
734
|
|
|
@@ -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
|
"""
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.6.1"
|
|
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.1 → pymetamodel-0.6.3}/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.1 → pymetamodel-0.6.3}/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
|
|
File without changes
|