pyMetaModel 0.2.3__tar.gz → 0.2.4__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.2.3 → pymetamodel-0.2.4}/PKG-INFO +1 -1
- pymetamodel-0.2.4/examples/city/city.mermaid +13 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/city/city.py +16 -16
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/city/city.xlsx +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/city/city.yaml +6 -6
- pymetamodel-0.2.4/examples/family/FamilyContext.mermaid +35 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/family/FamilyContext.py +66 -66
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/family/FamilyContext.xlsx +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/family/FamilyContext.yaml +26 -26
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/metamodel/metamodel.mermaid +21 -21
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/metamodel/metamodel.yaml +41 -41
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/scientific-events/scientific-events.mermaid +3 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/scientific-events/scientific-events.puml +3 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/scientific-events/scientific-events.py +25 -4
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/scientific-events/scientific-events.sidif +56 -13
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/scientific-events/scientific-events.xlsx +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/scientific-events/scientific-events.yaml +38 -14
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/teaching/TeachingSchema.mermaid +8 -8
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/teaching/TeachingSchema.py +40 -40
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/teaching/TeachingSchema.xlsx +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/teaching/TeachingSchema.yaml +15 -15
- pymetamodel-0.2.4/meta/__init__.py +1 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/metamodel.py +5 -2
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/metamodel_cmd.py +2 -1
- pymetamodel-0.2.4/tests/__init__.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/test_mw.py +1 -0
- pymetamodel-0.2.3/examples/city/city.mermaid +0 -13
- pymetamodel-0.2.3/examples/family/FamilyContext.mermaid +0 -35
- pymetamodel-0.2.3/examples/metamodel/metamodel.py +0 -870
- pymetamodel-0.2.3/meta/__init__.py +0 -1
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/.github/workflows/build.yml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/.github/workflows/upload-to-pypi.yml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/.gitignore +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/.project +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/.pydevproject +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/LICENSE +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/README.md +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/ceur-ws/ceur-ws.mermaid +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/ceur-ws/ceur-ws.puml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/ceur-ws/ceur-ws.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/ceur-ws/ceur-ws.sidif +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/ceur-ws/ceur-ws.xlsx +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/ceur-ws/ceur-ws.yaml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/city/city.puml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/city/city.sidif +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/family/FamilyContext.puml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/family/FamilyContext.sidif +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/metamodel/metamodel.puml +0 -0
- /pymetamodel-0.2.3/tests/__init__.py → /pymetamodel-0.2.4/examples/metamodel/metamodel.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/metamodel/metamodel.sidif +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/metamodel/metamodel.xlsx +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/teaching/TeachingSchema.puml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/examples/teaching/TeachingSchema.sidif +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/mw.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/profiler.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/sidif2linkml.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/smw_type.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/uml.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/meta/version.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/pyproject.toml +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/scripts/genexamples +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/scripts/install +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/scripts/test +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/basemwtest.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/basetest.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/test_linkml.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/test_metamodel.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/test_plantuml.py +0 -0
- {pymetamodel-0.2.3 → pymetamodel-0.2.4}/tests/test_sidif.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyMetaModel
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Project-URL: Home, https://github.com/WolfgangFahl/pyMetaModel
|
|
5
5
|
Project-URL: Documentation, https://wiki.bitplan.com/index.php/PyMetaModel
|
|
6
6
|
Project-URL: Source, https://github.com/WolfgangFahl/pyMetaModel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Auto generated from city.yaml by pythongen.py version: 0.9.0
|
|
2
|
-
# Generation date: 2023-
|
|
2
|
+
# Generation date: 2023-03-05T16:13:28
|
|
3
3
|
# Schema: GeneralContext
|
|
4
4
|
#
|
|
5
5
|
# id: GeneralContext
|
|
@@ -185,22 +185,22 @@ class City(YAMLRoot):
|
|
|
185
185
|
class_model_uri: ClassVar[URIRef] = GENERALCONTEXT.City
|
|
186
186
|
|
|
187
187
|
name: Optional[str] = None
|
|
188
|
-
webpage: Optional[str] = None
|
|
189
|
-
wikipedia_url: Optional[str] = None
|
|
190
|
-
Population: Optional[
|
|
188
|
+
webpage: Optional[Union[str, URI]] = None
|
|
189
|
+
wikipedia_url: Optional[Union[str, URI]] = None
|
|
190
|
+
Population: Optional[float] = None
|
|
191
191
|
|
|
192
192
|
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
|
|
193
193
|
if self.name is not None and not isinstance(self.name, str):
|
|
194
194
|
self.name = str(self.name)
|
|
195
195
|
|
|
196
|
-
if self.webpage is not None and not isinstance(self.webpage,
|
|
197
|
-
self.webpage =
|
|
196
|
+
if self.webpage is not None and not isinstance(self.webpage, URI):
|
|
197
|
+
self.webpage = URI(self.webpage)
|
|
198
198
|
|
|
199
|
-
if self.wikipedia_url is not None and not isinstance(self.wikipedia_url,
|
|
200
|
-
self.wikipedia_url =
|
|
199
|
+
if self.wikipedia_url is not None and not isinstance(self.wikipedia_url, URI):
|
|
200
|
+
self.wikipedia_url = URI(self.wikipedia_url)
|
|
201
201
|
|
|
202
|
-
if self.Population is not None and not isinstance(self.Population,
|
|
203
|
-
self.Population =
|
|
202
|
+
if self.Population is not None and not isinstance(self.Population, float):
|
|
203
|
+
self.Population = float(self.Population)
|
|
204
204
|
|
|
205
205
|
super().__post_init__(**kwargs)
|
|
206
206
|
|
|
@@ -216,22 +216,22 @@ slots.name = Slot(uri=GENERALCONTEXT.name, name="name", curie=GENERALCONTEXT.cur
|
|
|
216
216
|
model_uri=GENERALCONTEXT.name, domain=None, range=Optional[str])
|
|
217
217
|
|
|
218
218
|
slots.webpage = Slot(uri=GENERALCONTEXT.webpage, name="webpage", curie=GENERALCONTEXT.curie('webpage'),
|
|
219
|
-
model_uri=GENERALCONTEXT.webpage, domain=None, range=Optional[str])
|
|
219
|
+
model_uri=GENERALCONTEXT.webpage, domain=None, range=Optional[Union[str, URI]])
|
|
220
220
|
|
|
221
221
|
slots.wikipedia_url = Slot(uri=GENERALCONTEXT.wikipedia_url, name="wikipedia_url", curie=GENERALCONTEXT.curie('wikipedia_url'),
|
|
222
|
-
model_uri=GENERALCONTEXT.wikipedia_url, domain=None, range=Optional[str])
|
|
222
|
+
model_uri=GENERALCONTEXT.wikipedia_url, domain=None, range=Optional[Union[str, URI]])
|
|
223
223
|
|
|
224
224
|
slots.Population = Slot(uri=GENERALCONTEXT.Population, name="Population", curie=GENERALCONTEXT.curie('Population'),
|
|
225
|
-
model_uri=GENERALCONTEXT.Population, domain=None, range=Optional[
|
|
225
|
+
model_uri=GENERALCONTEXT.Population, domain=None, range=Optional[float])
|
|
226
226
|
|
|
227
227
|
slots.city__name = Slot(uri=GENERALCONTEXT.name, name="city__name", curie=GENERALCONTEXT.curie('name'),
|
|
228
228
|
model_uri=GENERALCONTEXT.city__name, domain=None, range=Optional[str])
|
|
229
229
|
|
|
230
230
|
slots.city__webpage = Slot(uri=GENERALCONTEXT.webpage, name="city__webpage", curie=GENERALCONTEXT.curie('webpage'),
|
|
231
|
-
model_uri=GENERALCONTEXT.city__webpage, domain=None, range=Optional[str])
|
|
231
|
+
model_uri=GENERALCONTEXT.city__webpage, domain=None, range=Optional[Union[str, URI]])
|
|
232
232
|
|
|
233
233
|
slots.city__wikipedia_url = Slot(uri=GENERALCONTEXT.wikipedia_url, name="city__wikipedia_url", curie=GENERALCONTEXT.curie('wikipedia_url'),
|
|
234
|
-
model_uri=GENERALCONTEXT.city__wikipedia_url, domain=None, range=Optional[str])
|
|
234
|
+
model_uri=GENERALCONTEXT.city__wikipedia_url, domain=None, range=Optional[Union[str, URI]])
|
|
235
235
|
|
|
236
236
|
slots.city__Population = Slot(uri=GENERALCONTEXT.Population, name="city__Population", curie=GENERALCONTEXT.curie('Population'),
|
|
237
|
-
model_uri=GENERALCONTEXT.city__Population, domain=None, range=Optional[
|
|
237
|
+
model_uri=GENERALCONTEXT.city__Population, domain=None, range=Optional[float])
|
|
Binary file
|
|
@@ -171,15 +171,15 @@ slots:
|
|
|
171
171
|
webpage:
|
|
172
172
|
name: webpage
|
|
173
173
|
from_schema: GeneralContext
|
|
174
|
-
range:
|
|
174
|
+
range: uri
|
|
175
175
|
wikipedia_url:
|
|
176
176
|
name: wikipedia_url
|
|
177
177
|
from_schema: GeneralContext
|
|
178
|
-
range:
|
|
178
|
+
range: uri
|
|
179
179
|
Population:
|
|
180
180
|
name: Population
|
|
181
181
|
from_schema: GeneralContext
|
|
182
|
-
range:
|
|
182
|
+
range: double
|
|
183
183
|
classes:
|
|
184
184
|
City:
|
|
185
185
|
name: City
|
|
@@ -193,13 +193,13 @@ classes:
|
|
|
193
193
|
webpage:
|
|
194
194
|
name: webpage
|
|
195
195
|
from_schema: GeneralContext
|
|
196
|
-
range:
|
|
196
|
+
range: uri
|
|
197
197
|
wikipedia_url:
|
|
198
198
|
name: wikipedia_url
|
|
199
199
|
from_schema: GeneralContext
|
|
200
|
-
range:
|
|
200
|
+
range: uri
|
|
201
201
|
Population:
|
|
202
202
|
name: Population
|
|
203
203
|
from_schema: GeneralContext
|
|
204
|
-
range:
|
|
204
|
+
range: double
|
|
205
205
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
```mermaid
|
|
2
|
+
erDiagram
|
|
3
|
+
Family {
|
|
4
|
+
string name
|
|
5
|
+
date weddingDate
|
|
6
|
+
string weddingPlace
|
|
7
|
+
double yearMarried
|
|
8
|
+
double monthMarried
|
|
9
|
+
date divorced
|
|
10
|
+
string husbandOf
|
|
11
|
+
string wifeOf
|
|
12
|
+
}
|
|
13
|
+
Person {
|
|
14
|
+
string qid
|
|
15
|
+
string royal92id
|
|
16
|
+
string name
|
|
17
|
+
string nobleTitle
|
|
18
|
+
uri picture
|
|
19
|
+
string sex
|
|
20
|
+
date born
|
|
21
|
+
double yearBorn
|
|
22
|
+
double monthBorn
|
|
23
|
+
string birthPlace
|
|
24
|
+
date died
|
|
25
|
+
string diedAt
|
|
26
|
+
double yearDied
|
|
27
|
+
double monthDied
|
|
28
|
+
double noInLine
|
|
29
|
+
uri wikiPedia
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Auto generated from FamilyContext.yaml by pythongen.py version: 0.9.0
|
|
2
|
-
# Generation date: 2023-
|
|
2
|
+
# Generation date: 2023-03-05T16:13:35
|
|
3
3
|
# Schema: FamilyContext
|
|
4
4
|
#
|
|
5
5
|
# id: FamilyContext
|
|
@@ -185,11 +185,11 @@ class Family(YAMLRoot):
|
|
|
185
185
|
class_model_uri: ClassVar[URIRef] = FAMILYCONTEXT.Family
|
|
186
186
|
|
|
187
187
|
name: Optional[str] = None
|
|
188
|
-
weddingDate: Optional[str] = None
|
|
188
|
+
weddingDate: Optional[Union[str, XSDDate]] = None
|
|
189
189
|
weddingPlace: Optional[str] = None
|
|
190
|
-
yearMarried: Optional[
|
|
191
|
-
monthMarried: Optional[
|
|
192
|
-
divorced: Optional[str] = None
|
|
190
|
+
yearMarried: Optional[float] = None
|
|
191
|
+
monthMarried: Optional[float] = None
|
|
192
|
+
divorced: Optional[Union[str, XSDDate]] = None
|
|
193
193
|
husbandOf: Optional[str] = None
|
|
194
194
|
wifeOf: Optional[str] = None
|
|
195
195
|
|
|
@@ -197,20 +197,20 @@ class Family(YAMLRoot):
|
|
|
197
197
|
if self.name is not None and not isinstance(self.name, str):
|
|
198
198
|
self.name = str(self.name)
|
|
199
199
|
|
|
200
|
-
if self.weddingDate is not None and not isinstance(self.weddingDate,
|
|
201
|
-
self.weddingDate =
|
|
200
|
+
if self.weddingDate is not None and not isinstance(self.weddingDate, XSDDate):
|
|
201
|
+
self.weddingDate = XSDDate(self.weddingDate)
|
|
202
202
|
|
|
203
203
|
if self.weddingPlace is not None and not isinstance(self.weddingPlace, str):
|
|
204
204
|
self.weddingPlace = str(self.weddingPlace)
|
|
205
205
|
|
|
206
|
-
if self.yearMarried is not None and not isinstance(self.yearMarried,
|
|
207
|
-
self.yearMarried =
|
|
206
|
+
if self.yearMarried is not None and not isinstance(self.yearMarried, float):
|
|
207
|
+
self.yearMarried = float(self.yearMarried)
|
|
208
208
|
|
|
209
|
-
if self.monthMarried is not None and not isinstance(self.monthMarried,
|
|
210
|
-
self.monthMarried =
|
|
209
|
+
if self.monthMarried is not None and not isinstance(self.monthMarried, float):
|
|
210
|
+
self.monthMarried = float(self.monthMarried)
|
|
211
211
|
|
|
212
|
-
if self.divorced is not None and not isinstance(self.divorced,
|
|
213
|
-
self.divorced =
|
|
212
|
+
if self.divorced is not None and not isinstance(self.divorced, XSDDate):
|
|
213
|
+
self.divorced = XSDDate(self.divorced)
|
|
214
214
|
|
|
215
215
|
if self.husbandOf is not None and not isinstance(self.husbandOf, str):
|
|
216
216
|
self.husbandOf = str(self.husbandOf)
|
|
@@ -237,18 +237,18 @@ class Person(YAMLRoot):
|
|
|
237
237
|
royal92id: Optional[str] = None
|
|
238
238
|
name: Optional[str] = None
|
|
239
239
|
nobleTitle: Optional[str] = None
|
|
240
|
-
picture: Optional[str] = None
|
|
240
|
+
picture: Optional[Union[str, URI]] = None
|
|
241
241
|
sex: Optional[str] = None
|
|
242
|
-
born: Optional[str] = None
|
|
243
|
-
yearBorn: Optional[
|
|
244
|
-
monthBorn: Optional[
|
|
242
|
+
born: Optional[Union[str, XSDDate]] = None
|
|
243
|
+
yearBorn: Optional[float] = None
|
|
244
|
+
monthBorn: Optional[float] = None
|
|
245
245
|
birthPlace: Optional[str] = None
|
|
246
|
-
died: Optional[str] = None
|
|
246
|
+
died: Optional[Union[str, XSDDate]] = None
|
|
247
247
|
diedAt: Optional[str] = None
|
|
248
|
-
yearDied: Optional[
|
|
249
|
-
monthDied: Optional[
|
|
250
|
-
noInLine: Optional[
|
|
251
|
-
wikiPedia: Optional[str] = None
|
|
248
|
+
yearDied: Optional[float] = None
|
|
249
|
+
monthDied: Optional[float] = None
|
|
250
|
+
noInLine: Optional[float] = None
|
|
251
|
+
wikiPedia: Optional[Union[str, URI]] = None
|
|
252
252
|
|
|
253
253
|
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
|
|
254
254
|
if self.qid is not None and not isinstance(self.qid, str):
|
|
@@ -263,41 +263,41 @@ class Person(YAMLRoot):
|
|
|
263
263
|
if self.nobleTitle is not None and not isinstance(self.nobleTitle, str):
|
|
264
264
|
self.nobleTitle = str(self.nobleTitle)
|
|
265
265
|
|
|
266
|
-
if self.picture is not None and not isinstance(self.picture,
|
|
267
|
-
self.picture =
|
|
266
|
+
if self.picture is not None and not isinstance(self.picture, URI):
|
|
267
|
+
self.picture = URI(self.picture)
|
|
268
268
|
|
|
269
269
|
if self.sex is not None and not isinstance(self.sex, str):
|
|
270
270
|
self.sex = str(self.sex)
|
|
271
271
|
|
|
272
|
-
if self.born is not None and not isinstance(self.born,
|
|
273
|
-
self.born =
|
|
272
|
+
if self.born is not None and not isinstance(self.born, XSDDate):
|
|
273
|
+
self.born = XSDDate(self.born)
|
|
274
274
|
|
|
275
|
-
if self.yearBorn is not None and not isinstance(self.yearBorn,
|
|
276
|
-
self.yearBorn =
|
|
275
|
+
if self.yearBorn is not None and not isinstance(self.yearBorn, float):
|
|
276
|
+
self.yearBorn = float(self.yearBorn)
|
|
277
277
|
|
|
278
|
-
if self.monthBorn is not None and not isinstance(self.monthBorn,
|
|
279
|
-
self.monthBorn =
|
|
278
|
+
if self.monthBorn is not None and not isinstance(self.monthBorn, float):
|
|
279
|
+
self.monthBorn = float(self.monthBorn)
|
|
280
280
|
|
|
281
281
|
if self.birthPlace is not None and not isinstance(self.birthPlace, str):
|
|
282
282
|
self.birthPlace = str(self.birthPlace)
|
|
283
283
|
|
|
284
|
-
if self.died is not None and not isinstance(self.died,
|
|
285
|
-
self.died =
|
|
284
|
+
if self.died is not None and not isinstance(self.died, XSDDate):
|
|
285
|
+
self.died = XSDDate(self.died)
|
|
286
286
|
|
|
287
287
|
if self.diedAt is not None and not isinstance(self.diedAt, str):
|
|
288
288
|
self.diedAt = str(self.diedAt)
|
|
289
289
|
|
|
290
|
-
if self.yearDied is not None and not isinstance(self.yearDied,
|
|
291
|
-
self.yearDied =
|
|
290
|
+
if self.yearDied is not None and not isinstance(self.yearDied, float):
|
|
291
|
+
self.yearDied = float(self.yearDied)
|
|
292
292
|
|
|
293
|
-
if self.monthDied is not None and not isinstance(self.monthDied,
|
|
294
|
-
self.monthDied =
|
|
293
|
+
if self.monthDied is not None and not isinstance(self.monthDied, float):
|
|
294
|
+
self.monthDied = float(self.monthDied)
|
|
295
295
|
|
|
296
|
-
if self.noInLine is not None and not isinstance(self.noInLine,
|
|
297
|
-
self.noInLine =
|
|
296
|
+
if self.noInLine is not None and not isinstance(self.noInLine, float):
|
|
297
|
+
self.noInLine = float(self.noInLine)
|
|
298
298
|
|
|
299
|
-
if self.wikiPedia is not None and not isinstance(self.wikiPedia,
|
|
300
|
-
self.wikiPedia =
|
|
299
|
+
if self.wikiPedia is not None and not isinstance(self.wikiPedia, URI):
|
|
300
|
+
self.wikiPedia = URI(self.wikiPedia)
|
|
301
301
|
|
|
302
302
|
super().__post_init__(**kwargs)
|
|
303
303
|
|
|
@@ -313,19 +313,19 @@ slots.name = Slot(uri=FAMILYCONTEXT.name, name="name", curie=FAMILYCONTEXT.curie
|
|
|
313
313
|
model_uri=FAMILYCONTEXT.name, domain=None, range=Optional[str])
|
|
314
314
|
|
|
315
315
|
slots.weddingDate = Slot(uri=FAMILYCONTEXT.weddingDate, name="weddingDate", curie=FAMILYCONTEXT.curie('weddingDate'),
|
|
316
|
-
model_uri=FAMILYCONTEXT.weddingDate, domain=None, range=Optional[str])
|
|
316
|
+
model_uri=FAMILYCONTEXT.weddingDate, domain=None, range=Optional[Union[str, XSDDate]])
|
|
317
317
|
|
|
318
318
|
slots.weddingPlace = Slot(uri=FAMILYCONTEXT.weddingPlace, name="weddingPlace", curie=FAMILYCONTEXT.curie('weddingPlace'),
|
|
319
319
|
model_uri=FAMILYCONTEXT.weddingPlace, domain=None, range=Optional[str])
|
|
320
320
|
|
|
321
321
|
slots.yearMarried = Slot(uri=FAMILYCONTEXT.yearMarried, name="yearMarried", curie=FAMILYCONTEXT.curie('yearMarried'),
|
|
322
|
-
model_uri=FAMILYCONTEXT.yearMarried, domain=None, range=Optional[
|
|
322
|
+
model_uri=FAMILYCONTEXT.yearMarried, domain=None, range=Optional[float])
|
|
323
323
|
|
|
324
324
|
slots.monthMarried = Slot(uri=FAMILYCONTEXT.monthMarried, name="monthMarried", curie=FAMILYCONTEXT.curie('monthMarried'),
|
|
325
|
-
model_uri=FAMILYCONTEXT.monthMarried, domain=None, range=Optional[
|
|
325
|
+
model_uri=FAMILYCONTEXT.monthMarried, domain=None, range=Optional[float])
|
|
326
326
|
|
|
327
327
|
slots.divorced = Slot(uri=FAMILYCONTEXT.divorced, name="divorced", curie=FAMILYCONTEXT.curie('divorced'),
|
|
328
|
-
model_uri=FAMILYCONTEXT.divorced, domain=None, range=Optional[str])
|
|
328
|
+
model_uri=FAMILYCONTEXT.divorced, domain=None, range=Optional[Union[str, XSDDate]])
|
|
329
329
|
|
|
330
330
|
slots.husbandOf = Slot(uri=FAMILYCONTEXT.husbandOf, name="husbandOf", curie=FAMILYCONTEXT.curie('husbandOf'),
|
|
331
331
|
model_uri=FAMILYCONTEXT.husbandOf, domain=None, range=Optional[str])
|
|
@@ -343,58 +343,58 @@ slots.nobleTitle = Slot(uri=FAMILYCONTEXT.nobleTitle, name="nobleTitle", curie=F
|
|
|
343
343
|
model_uri=FAMILYCONTEXT.nobleTitle, domain=None, range=Optional[str])
|
|
344
344
|
|
|
345
345
|
slots.picture = Slot(uri=FAMILYCONTEXT.picture, name="picture", curie=FAMILYCONTEXT.curie('picture'),
|
|
346
|
-
model_uri=FAMILYCONTEXT.picture, domain=None, range=Optional[str])
|
|
346
|
+
model_uri=FAMILYCONTEXT.picture, domain=None, range=Optional[Union[str, URI]])
|
|
347
347
|
|
|
348
348
|
slots.sex = Slot(uri=FAMILYCONTEXT.sex, name="sex", curie=FAMILYCONTEXT.curie('sex'),
|
|
349
349
|
model_uri=FAMILYCONTEXT.sex, domain=None, range=Optional[str])
|
|
350
350
|
|
|
351
351
|
slots.born = Slot(uri=FAMILYCONTEXT.born, name="born", curie=FAMILYCONTEXT.curie('born'),
|
|
352
|
-
model_uri=FAMILYCONTEXT.born, domain=None, range=Optional[str])
|
|
352
|
+
model_uri=FAMILYCONTEXT.born, domain=None, range=Optional[Union[str, XSDDate]])
|
|
353
353
|
|
|
354
354
|
slots.yearBorn = Slot(uri=FAMILYCONTEXT.yearBorn, name="yearBorn", curie=FAMILYCONTEXT.curie('yearBorn'),
|
|
355
|
-
model_uri=FAMILYCONTEXT.yearBorn, domain=None, range=Optional[
|
|
355
|
+
model_uri=FAMILYCONTEXT.yearBorn, domain=None, range=Optional[float])
|
|
356
356
|
|
|
357
357
|
slots.monthBorn = Slot(uri=FAMILYCONTEXT.monthBorn, name="monthBorn", curie=FAMILYCONTEXT.curie('monthBorn'),
|
|
358
|
-
model_uri=FAMILYCONTEXT.monthBorn, domain=None, range=Optional[
|
|
358
|
+
model_uri=FAMILYCONTEXT.monthBorn, domain=None, range=Optional[float])
|
|
359
359
|
|
|
360
360
|
slots.birthPlace = Slot(uri=FAMILYCONTEXT.birthPlace, name="birthPlace", curie=FAMILYCONTEXT.curie('birthPlace'),
|
|
361
361
|
model_uri=FAMILYCONTEXT.birthPlace, domain=None, range=Optional[str])
|
|
362
362
|
|
|
363
363
|
slots.died = Slot(uri=FAMILYCONTEXT.died, name="died", curie=FAMILYCONTEXT.curie('died'),
|
|
364
|
-
model_uri=FAMILYCONTEXT.died, domain=None, range=Optional[str])
|
|
364
|
+
model_uri=FAMILYCONTEXT.died, domain=None, range=Optional[Union[str, XSDDate]])
|
|
365
365
|
|
|
366
366
|
slots.diedAt = Slot(uri=FAMILYCONTEXT.diedAt, name="diedAt", curie=FAMILYCONTEXT.curie('diedAt'),
|
|
367
367
|
model_uri=FAMILYCONTEXT.diedAt, domain=None, range=Optional[str])
|
|
368
368
|
|
|
369
369
|
slots.yearDied = Slot(uri=FAMILYCONTEXT.yearDied, name="yearDied", curie=FAMILYCONTEXT.curie('yearDied'),
|
|
370
|
-
model_uri=FAMILYCONTEXT.yearDied, domain=None, range=Optional[
|
|
370
|
+
model_uri=FAMILYCONTEXT.yearDied, domain=None, range=Optional[float])
|
|
371
371
|
|
|
372
372
|
slots.monthDied = Slot(uri=FAMILYCONTEXT.monthDied, name="monthDied", curie=FAMILYCONTEXT.curie('monthDied'),
|
|
373
|
-
model_uri=FAMILYCONTEXT.monthDied, domain=None, range=Optional[
|
|
373
|
+
model_uri=FAMILYCONTEXT.monthDied, domain=None, range=Optional[float])
|
|
374
374
|
|
|
375
375
|
slots.noInLine = Slot(uri=FAMILYCONTEXT.noInLine, name="noInLine", curie=FAMILYCONTEXT.curie('noInLine'),
|
|
376
|
-
model_uri=FAMILYCONTEXT.noInLine, domain=None, range=Optional[
|
|
376
|
+
model_uri=FAMILYCONTEXT.noInLine, domain=None, range=Optional[float])
|
|
377
377
|
|
|
378
378
|
slots.wikiPedia = Slot(uri=FAMILYCONTEXT.wikiPedia, name="wikiPedia", curie=FAMILYCONTEXT.curie('wikiPedia'),
|
|
379
|
-
model_uri=FAMILYCONTEXT.wikiPedia, domain=None, range=Optional[str])
|
|
379
|
+
model_uri=FAMILYCONTEXT.wikiPedia, domain=None, range=Optional[Union[str, URI]])
|
|
380
380
|
|
|
381
381
|
slots.family__name = Slot(uri=FAMILYCONTEXT.name, name="family__name", curie=FAMILYCONTEXT.curie('name'),
|
|
382
382
|
model_uri=FAMILYCONTEXT.family__name, domain=None, range=Optional[str])
|
|
383
383
|
|
|
384
384
|
slots.family__weddingDate = Slot(uri=FAMILYCONTEXT.weddingDate, name="family__weddingDate", curie=FAMILYCONTEXT.curie('weddingDate'),
|
|
385
|
-
model_uri=FAMILYCONTEXT.family__weddingDate, domain=None, range=Optional[str])
|
|
385
|
+
model_uri=FAMILYCONTEXT.family__weddingDate, domain=None, range=Optional[Union[str, XSDDate]])
|
|
386
386
|
|
|
387
387
|
slots.family__weddingPlace = Slot(uri=FAMILYCONTEXT.weddingPlace, name="family__weddingPlace", curie=FAMILYCONTEXT.curie('weddingPlace'),
|
|
388
388
|
model_uri=FAMILYCONTEXT.family__weddingPlace, domain=None, range=Optional[str])
|
|
389
389
|
|
|
390
390
|
slots.family__yearMarried = Slot(uri=FAMILYCONTEXT.yearMarried, name="family__yearMarried", curie=FAMILYCONTEXT.curie('yearMarried'),
|
|
391
|
-
model_uri=FAMILYCONTEXT.family__yearMarried, domain=None, range=Optional[
|
|
391
|
+
model_uri=FAMILYCONTEXT.family__yearMarried, domain=None, range=Optional[float])
|
|
392
392
|
|
|
393
393
|
slots.family__monthMarried = Slot(uri=FAMILYCONTEXT.monthMarried, name="family__monthMarried", curie=FAMILYCONTEXT.curie('monthMarried'),
|
|
394
|
-
model_uri=FAMILYCONTEXT.family__monthMarried, domain=None, range=Optional[
|
|
394
|
+
model_uri=FAMILYCONTEXT.family__monthMarried, domain=None, range=Optional[float])
|
|
395
395
|
|
|
396
396
|
slots.family__divorced = Slot(uri=FAMILYCONTEXT.divorced, name="family__divorced", curie=FAMILYCONTEXT.curie('divorced'),
|
|
397
|
-
model_uri=FAMILYCONTEXT.family__divorced, domain=None, range=Optional[str])
|
|
397
|
+
model_uri=FAMILYCONTEXT.family__divorced, domain=None, range=Optional[Union[str, XSDDate]])
|
|
398
398
|
|
|
399
399
|
slots.family__husbandOf = Slot(uri=FAMILYCONTEXT.husbandOf, name="family__husbandOf", curie=FAMILYCONTEXT.curie('husbandOf'),
|
|
400
400
|
model_uri=FAMILYCONTEXT.family__husbandOf, domain=None, range=Optional[str])
|
|
@@ -415,37 +415,37 @@ slots.person__nobleTitle = Slot(uri=FAMILYCONTEXT.nobleTitle, name="person__nobl
|
|
|
415
415
|
model_uri=FAMILYCONTEXT.person__nobleTitle, domain=None, range=Optional[str])
|
|
416
416
|
|
|
417
417
|
slots.person__picture = Slot(uri=FAMILYCONTEXT.picture, name="person__picture", curie=FAMILYCONTEXT.curie('picture'),
|
|
418
|
-
model_uri=FAMILYCONTEXT.person__picture, domain=None, range=Optional[str])
|
|
418
|
+
model_uri=FAMILYCONTEXT.person__picture, domain=None, range=Optional[Union[str, URI]])
|
|
419
419
|
|
|
420
420
|
slots.person__sex = Slot(uri=FAMILYCONTEXT.sex, name="person__sex", curie=FAMILYCONTEXT.curie('sex'),
|
|
421
421
|
model_uri=FAMILYCONTEXT.person__sex, domain=None, range=Optional[str])
|
|
422
422
|
|
|
423
423
|
slots.person__born = Slot(uri=FAMILYCONTEXT.born, name="person__born", curie=FAMILYCONTEXT.curie('born'),
|
|
424
|
-
model_uri=FAMILYCONTEXT.person__born, domain=None, range=Optional[str])
|
|
424
|
+
model_uri=FAMILYCONTEXT.person__born, domain=None, range=Optional[Union[str, XSDDate]])
|
|
425
425
|
|
|
426
426
|
slots.person__yearBorn = Slot(uri=FAMILYCONTEXT.yearBorn, name="person__yearBorn", curie=FAMILYCONTEXT.curie('yearBorn'),
|
|
427
|
-
model_uri=FAMILYCONTEXT.person__yearBorn, domain=None, range=Optional[
|
|
427
|
+
model_uri=FAMILYCONTEXT.person__yearBorn, domain=None, range=Optional[float])
|
|
428
428
|
|
|
429
429
|
slots.person__monthBorn = Slot(uri=FAMILYCONTEXT.monthBorn, name="person__monthBorn", curie=FAMILYCONTEXT.curie('monthBorn'),
|
|
430
|
-
model_uri=FAMILYCONTEXT.person__monthBorn, domain=None, range=Optional[
|
|
430
|
+
model_uri=FAMILYCONTEXT.person__monthBorn, domain=None, range=Optional[float])
|
|
431
431
|
|
|
432
432
|
slots.person__birthPlace = Slot(uri=FAMILYCONTEXT.birthPlace, name="person__birthPlace", curie=FAMILYCONTEXT.curie('birthPlace'),
|
|
433
433
|
model_uri=FAMILYCONTEXT.person__birthPlace, domain=None, range=Optional[str])
|
|
434
434
|
|
|
435
435
|
slots.person__died = Slot(uri=FAMILYCONTEXT.died, name="person__died", curie=FAMILYCONTEXT.curie('died'),
|
|
436
|
-
model_uri=FAMILYCONTEXT.person__died, domain=None, range=Optional[str])
|
|
436
|
+
model_uri=FAMILYCONTEXT.person__died, domain=None, range=Optional[Union[str, XSDDate]])
|
|
437
437
|
|
|
438
438
|
slots.person__diedAt = Slot(uri=FAMILYCONTEXT.diedAt, name="person__diedAt", curie=FAMILYCONTEXT.curie('diedAt'),
|
|
439
439
|
model_uri=FAMILYCONTEXT.person__diedAt, domain=None, range=Optional[str])
|
|
440
440
|
|
|
441
441
|
slots.person__yearDied = Slot(uri=FAMILYCONTEXT.yearDied, name="person__yearDied", curie=FAMILYCONTEXT.curie('yearDied'),
|
|
442
|
-
model_uri=FAMILYCONTEXT.person__yearDied, domain=None, range=Optional[
|
|
442
|
+
model_uri=FAMILYCONTEXT.person__yearDied, domain=None, range=Optional[float])
|
|
443
443
|
|
|
444
444
|
slots.person__monthDied = Slot(uri=FAMILYCONTEXT.monthDied, name="person__monthDied", curie=FAMILYCONTEXT.curie('monthDied'),
|
|
445
|
-
model_uri=FAMILYCONTEXT.person__monthDied, domain=None, range=Optional[
|
|
445
|
+
model_uri=FAMILYCONTEXT.person__monthDied, domain=None, range=Optional[float])
|
|
446
446
|
|
|
447
447
|
slots.person__noInLine = Slot(uri=FAMILYCONTEXT.noInLine, name="person__noInLine", curie=FAMILYCONTEXT.curie('noInLine'),
|
|
448
|
-
model_uri=FAMILYCONTEXT.person__noInLine, domain=None, range=Optional[
|
|
448
|
+
model_uri=FAMILYCONTEXT.person__noInLine, domain=None, range=Optional[float])
|
|
449
449
|
|
|
450
450
|
slots.person__wikiPedia = Slot(uri=FAMILYCONTEXT.wikiPedia, name="person__wikiPedia", curie=FAMILYCONTEXT.curie('wikiPedia'),
|
|
451
|
-
model_uri=FAMILYCONTEXT.person__wikiPedia, domain=None, range=Optional[str])
|
|
451
|
+
model_uri=FAMILYCONTEXT.person__wikiPedia, domain=None, range=Optional[Union[str, URI]])
|
|
Binary file
|
|
@@ -173,7 +173,7 @@ slots:
|
|
|
173
173
|
name: weddingDate
|
|
174
174
|
description: The date of the wedding
|
|
175
175
|
from_schema: FamilyContext
|
|
176
|
-
range:
|
|
176
|
+
range: date
|
|
177
177
|
weddingPlace:
|
|
178
178
|
name: weddingPlace
|
|
179
179
|
from_schema: FamilyContext
|
|
@@ -181,15 +181,15 @@ slots:
|
|
|
181
181
|
yearMarried:
|
|
182
182
|
name: yearMarried
|
|
183
183
|
from_schema: FamilyContext
|
|
184
|
-
range:
|
|
184
|
+
range: double
|
|
185
185
|
monthMarried:
|
|
186
186
|
name: monthMarried
|
|
187
187
|
from_schema: FamilyContext
|
|
188
|
-
range:
|
|
188
|
+
range: double
|
|
189
189
|
divorced:
|
|
190
190
|
name: divorced
|
|
191
191
|
from_schema: FamilyContext
|
|
192
|
-
range:
|
|
192
|
+
range: date
|
|
193
193
|
husbandOf:
|
|
194
194
|
name: husbandOf
|
|
195
195
|
description: the male head of family/ father
|
|
@@ -219,7 +219,7 @@ slots:
|
|
|
219
219
|
name: picture
|
|
220
220
|
description: The URL of a picture of the person
|
|
221
221
|
from_schema: FamilyContext
|
|
222
|
-
range:
|
|
222
|
+
range: uri
|
|
223
223
|
sex:
|
|
224
224
|
name: sex
|
|
225
225
|
description: the gender of a person - female or male
|
|
@@ -229,17 +229,17 @@ slots:
|
|
|
229
229
|
name: born
|
|
230
230
|
description: The date the person was born
|
|
231
231
|
from_schema: FamilyContext
|
|
232
|
-
range:
|
|
232
|
+
range: date
|
|
233
233
|
yearBorn:
|
|
234
234
|
name: yearBorn
|
|
235
235
|
description: The year the person was born
|
|
236
236
|
from_schema: FamilyContext
|
|
237
|
-
range:
|
|
237
|
+
range: double
|
|
238
238
|
monthBorn:
|
|
239
239
|
name: monthBorn
|
|
240
240
|
description: The month the person was born
|
|
241
241
|
from_schema: FamilyContext
|
|
242
|
-
range:
|
|
242
|
+
range: double
|
|
243
243
|
birthPlace:
|
|
244
244
|
name: birthPlace
|
|
245
245
|
description: The location where the person was born
|
|
@@ -249,7 +249,7 @@ slots:
|
|
|
249
249
|
name: died
|
|
250
250
|
description: the date the person died
|
|
251
251
|
from_schema: FamilyContext
|
|
252
|
-
range:
|
|
252
|
+
range: date
|
|
253
253
|
diedAt:
|
|
254
254
|
name: diedAt
|
|
255
255
|
description: The location where the person died
|
|
@@ -259,22 +259,22 @@ slots:
|
|
|
259
259
|
name: yearDied
|
|
260
260
|
description: The year the person died
|
|
261
261
|
from_schema: FamilyContext
|
|
262
|
-
range:
|
|
262
|
+
range: double
|
|
263
263
|
monthDied:
|
|
264
264
|
name: monthDied
|
|
265
265
|
description: The month the person died
|
|
266
266
|
from_schema: FamilyContext
|
|
267
|
-
range:
|
|
267
|
+
range: double
|
|
268
268
|
noInLine:
|
|
269
269
|
name: noInLine
|
|
270
270
|
description: the number in Line to the Throne of this person
|
|
271
271
|
from_schema: FamilyContext
|
|
272
|
-
range:
|
|
272
|
+
range: double
|
|
273
273
|
wikiPedia:
|
|
274
274
|
name: wikiPedia
|
|
275
275
|
description: the wikiPedia link of the Person
|
|
276
276
|
from_schema: FamilyContext
|
|
277
|
-
range:
|
|
277
|
+
range: uri
|
|
278
278
|
classes:
|
|
279
279
|
Family:
|
|
280
280
|
name: Family
|
|
@@ -291,7 +291,7 @@ classes:
|
|
|
291
291
|
name: weddingDate
|
|
292
292
|
description: The date of the wedding
|
|
293
293
|
from_schema: FamilyContext
|
|
294
|
-
range:
|
|
294
|
+
range: date
|
|
295
295
|
weddingPlace:
|
|
296
296
|
name: weddingPlace
|
|
297
297
|
from_schema: FamilyContext
|
|
@@ -299,15 +299,15 @@ classes:
|
|
|
299
299
|
yearMarried:
|
|
300
300
|
name: yearMarried
|
|
301
301
|
from_schema: FamilyContext
|
|
302
|
-
range:
|
|
302
|
+
range: double
|
|
303
303
|
monthMarried:
|
|
304
304
|
name: monthMarried
|
|
305
305
|
from_schema: FamilyContext
|
|
306
|
-
range:
|
|
306
|
+
range: double
|
|
307
307
|
divorced:
|
|
308
308
|
name: divorced
|
|
309
309
|
from_schema: FamilyContext
|
|
310
|
-
range:
|
|
310
|
+
range: date
|
|
311
311
|
husbandOf:
|
|
312
312
|
name: husbandOf
|
|
313
313
|
description: the male head of family/ father
|
|
@@ -347,7 +347,7 @@ classes:
|
|
|
347
347
|
name: picture
|
|
348
348
|
description: The URL of a picture of the person
|
|
349
349
|
from_schema: FamilyContext
|
|
350
|
-
range:
|
|
350
|
+
range: uri
|
|
351
351
|
sex:
|
|
352
352
|
name: sex
|
|
353
353
|
description: the gender of a person - female or male
|
|
@@ -357,17 +357,17 @@ classes:
|
|
|
357
357
|
name: born
|
|
358
358
|
description: The date the person was born
|
|
359
359
|
from_schema: FamilyContext
|
|
360
|
-
range:
|
|
360
|
+
range: date
|
|
361
361
|
yearBorn:
|
|
362
362
|
name: yearBorn
|
|
363
363
|
description: The year the person was born
|
|
364
364
|
from_schema: FamilyContext
|
|
365
|
-
range:
|
|
365
|
+
range: double
|
|
366
366
|
monthBorn:
|
|
367
367
|
name: monthBorn
|
|
368
368
|
description: The month the person was born
|
|
369
369
|
from_schema: FamilyContext
|
|
370
|
-
range:
|
|
370
|
+
range: double
|
|
371
371
|
birthPlace:
|
|
372
372
|
name: birthPlace
|
|
373
373
|
description: The location where the person was born
|
|
@@ -377,7 +377,7 @@ classes:
|
|
|
377
377
|
name: died
|
|
378
378
|
description: the date the person died
|
|
379
379
|
from_schema: FamilyContext
|
|
380
|
-
range:
|
|
380
|
+
range: date
|
|
381
381
|
diedAt:
|
|
382
382
|
name: diedAt
|
|
383
383
|
description: The location where the person died
|
|
@@ -387,20 +387,20 @@ classes:
|
|
|
387
387
|
name: yearDied
|
|
388
388
|
description: The year the person died
|
|
389
389
|
from_schema: FamilyContext
|
|
390
|
-
range:
|
|
390
|
+
range: double
|
|
391
391
|
monthDied:
|
|
392
392
|
name: monthDied
|
|
393
393
|
description: The month the person died
|
|
394
394
|
from_schema: FamilyContext
|
|
395
|
-
range:
|
|
395
|
+
range: double
|
|
396
396
|
noInLine:
|
|
397
397
|
name: noInLine
|
|
398
398
|
description: the number in Line to the Throne of this person
|
|
399
399
|
from_schema: FamilyContext
|
|
400
|
-
range:
|
|
400
|
+
range: double
|
|
401
401
|
wikiPedia:
|
|
402
402
|
name: wikiPedia
|
|
403
403
|
description: the wikiPedia link of the Person
|
|
404
404
|
from_schema: FamilyContext
|
|
405
|
-
range:
|
|
405
|
+
range: uri
|
|
406
406
|
|