linkml 1.9.2rc1__py3-none-any.whl → 1.9.3__py3-none-any.whl
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.
- linkml/generators/PythonGenNotes.md +49 -49
- linkml/generators/README.md +2 -2
- linkml/generators/dbmlgen.py +0 -1
- linkml/generators/docgen/class.md.jinja2 +35 -11
- linkml/generators/docgen/class_diagram.md.jinja2 +15 -15
- linkml/generators/docgen/common_metadata.md.jinja2 +3 -5
- linkml/generators/docgen/enum.md.jinja2 +5 -6
- linkml/generators/docgen/index.md.jinja2 +5 -5
- linkml/generators/docgen/index.tex.jinja2 +1 -1
- linkml/generators/docgen/schema.md.jinja2 +1 -3
- linkml/generators/docgen/slot.md.jinja2 +6 -8
- linkml/generators/docgen/subset.md.jinja2 +4 -7
- linkml/generators/docgen/type.md.jinja2 +2 -3
- linkml/generators/docgen.py +94 -7
- linkml/generators/erdiagramgen.py +1 -1
- linkml/generators/graphqlgen.py +1 -1
- linkml/generators/javagen/example_template.java.jinja2 +0 -1
- linkml/generators/jsonldcontextgen.py +0 -1
- linkml/generators/jsonldgen.py +3 -1
- linkml/generators/jsonschemagen.py +2 -2
- linkml/generators/linkmlgen.py +1 -1
- linkml/generators/markdowngen.py +20 -9
- linkml/generators/mermaidclassdiagramgen.py +4 -0
- linkml/generators/projectgen.py +17 -20
- linkml/generators/pydanticgen/includes.py +5 -5
- linkml/generators/pydanticgen/pydanticgen.py +2 -3
- linkml/generators/pydanticgen/template.py +1 -1
- linkml/generators/pydanticgen/templates/base_model.py.jinja +1 -1
- linkml/generators/pydanticgen/templates/class.py.jinja +1 -1
- linkml/generators/pydanticgen/templates/conditional_import.py.jinja +1 -1
- linkml/generators/pydanticgen/templates/footer.py.jinja +1 -1
- linkml/generators/pydanticgen/templates/imports.py.jinja +1 -1
- linkml/generators/python/python_ifabsent_processor.py +1 -1
- linkml/generators/pythongen.py +9 -8
- linkml/generators/shacl/shacl_ifabsent_processor.py +0 -1
- linkml/generators/shaclgen.py +1 -1
- linkml/generators/sparqlgen.py +1 -1
- linkml/generators/sqlalchemy/__init__.py +0 -4
- linkml/generators/sqlalchemygen.py +9 -15
- linkml/generators/sqltablegen.py +70 -4
- linkml/generators/string_template.md +3 -4
- linkml/generators/terminusdbgen.py +1 -2
- linkml/linter/cli.py +3 -4
- linkml/linter/config/datamodel/config.py +286 -135
- linkml/linter/config/datamodel/config.yaml +26 -11
- linkml/linter/config/default.yaml +6 -0
- linkml/linter/config/recommended.yaml +6 -0
- linkml/linter/linter.py +10 -6
- linkml/linter/rules.py +144 -46
- linkml/transformers/relmodel_transformer.py +2 -1
- linkml/utils/generator.py +3 -0
- linkml/utils/logictools.py +5 -5
- linkml/utils/schemaloader.py +4 -4
- linkml/utils/schemasynopsis.py +11 -7
- linkml/workspaces/datamodel/workspaces.yaml +0 -5
- {linkml-1.9.2rc1.dist-info → linkml-1.9.3.dist-info}/LICENSE +1 -1
- {linkml-1.9.2rc1.dist-info → linkml-1.9.3.dist-info}/METADATA +2 -2
- {linkml-1.9.2rc1.dist-info → linkml-1.9.3.dist-info}/RECORD +60 -60
- {linkml-1.9.2rc1.dist-info → linkml-1.9.3.dist-info}/WHEEL +0 -0
- {linkml-1.9.2rc1.dist-info → linkml-1.9.3.dist-info}/entry_points.txt +0 -0
@@ -1,70 +1,31 @@
|
|
1
1
|
# Auto generated from config.yaml by pythongen.py version: 0.0.1
|
2
|
-
# Generation date: 2025-
|
2
|
+
# Generation date: 2025-07-01T09:27:27
|
3
3
|
# Schema: linter-config
|
4
4
|
#
|
5
5
|
# id: https://w3id.org/linkml/linter/config
|
6
6
|
# description: A datamodel describing the configuration file accepted by the linkml-lint command
|
7
7
|
# license: https://creativecommons.org/publicdomain/zero/1.0/
|
8
8
|
|
9
|
-
import dataclasses
|
10
|
-
import re
|
11
9
|
from dataclasses import dataclass
|
12
|
-
from
|
13
|
-
date,
|
14
|
-
datetime,
|
15
|
-
time
|
16
|
-
)
|
17
|
-
from typing import (
|
18
|
-
Any,
|
19
|
-
ClassVar,
|
20
|
-
|
21
|
-
Optional,
|
22
|
-
Union
|
23
|
-
)
|
10
|
+
from typing import Any, ClassVar, Optional, Union
|
24
11
|
|
25
|
-
from jsonasobj2 import
|
26
|
-
|
27
|
-
as_dict
|
28
|
-
)
|
29
|
-
from linkml_runtime.linkml_model.meta import (
|
30
|
-
EnumDefinition,
|
31
|
-
PermissibleValue,
|
32
|
-
PvFormulaOptions
|
33
|
-
)
|
12
|
+
from jsonasobj2 import as_dict
|
13
|
+
from linkml_runtime.linkml_model.meta import EnumDefinition, PermissibleValue
|
34
14
|
from linkml_runtime.utils.curienamespace import CurieNamespace
|
35
15
|
from linkml_runtime.utils.enumerations import EnumDefinitionImpl
|
36
|
-
from linkml_runtime.utils.
|
37
|
-
camelcase,
|
38
|
-
sfx,
|
39
|
-
underscore
|
40
|
-
)
|
41
|
-
from linkml_runtime.utils.metamodelcore import (
|
42
|
-
bnode,
|
43
|
-
empty_dict,
|
44
|
-
empty_list
|
45
|
-
)
|
16
|
+
from linkml_runtime.utils.metamodelcore import empty_list
|
46
17
|
from linkml_runtime.utils.slot import Slot
|
47
|
-
from linkml_runtime.utils.yamlutils import
|
48
|
-
|
49
|
-
extended_float,
|
50
|
-
extended_int,
|
51
|
-
extended_str
|
52
|
-
)
|
53
|
-
from rdflib import (
|
54
|
-
Namespace,
|
55
|
-
URIRef
|
56
|
-
)
|
18
|
+
from linkml_runtime.utils.yamlutils import YAMLRoot
|
19
|
+
from rdflib import URIRef
|
57
20
|
|
58
|
-
from linkml_runtime.linkml_model.types import Boolean, String
|
59
21
|
from linkml_runtime.utils.metamodelcore import Bool
|
60
22
|
|
61
23
|
metamodel_version = "1.7.0"
|
62
24
|
version = None
|
63
25
|
|
64
|
-
|
65
26
|
# Namespaces
|
66
|
-
LINKML = CurieNamespace(
|
67
|
-
LINTCFG = CurieNamespace(
|
27
|
+
LINKML = CurieNamespace("linkml", "https://w3id.org/linkml/")
|
28
|
+
LINTCFG = CurieNamespace("lintcfg", "https://w3id.org/linkml/linter/config")
|
68
29
|
DEFAULT_ = LINTCFG
|
69
30
|
|
70
31
|
|
@@ -73,7 +34,6 @@ DEFAULT_ = LINTCFG
|
|
73
34
|
# Class references
|
74
35
|
|
75
36
|
|
76
|
-
|
77
37
|
@dataclass(repr=False)
|
78
38
|
class Config(YAMLRoot):
|
79
39
|
"""
|
@@ -91,7 +51,7 @@ class Config(YAMLRoot):
|
|
91
51
|
extends: Optional[Union[str, "ExtendableConfigs"]] = None
|
92
52
|
rules: Optional[Union[dict, "Rules"]] = None
|
93
53
|
|
94
|
-
def __post_init__(self, *_:
|
54
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
95
55
|
if self.extends is not None and not isinstance(self.extends, ExtendableConfigs):
|
96
56
|
self.extends = ExtendableConfigs(self.extends)
|
97
57
|
|
@@ -104,9 +64,9 @@ class Config(YAMLRoot):
|
|
104
64
|
@dataclass(repr=False)
|
105
65
|
class Rules(YAMLRoot):
|
106
66
|
"""
|
107
|
-
Each attribute of this class represents a rule that can be enabled and possibly configured by a configuration
|
108
|
-
file.
|
67
|
+
Each attribute of this class represents a rule that can be enabled and possibly configured by a configuration file.
|
109
68
|
"""
|
69
|
+
|
110
70
|
_inherited_slots: ClassVar[list[str]] = []
|
111
71
|
|
112
72
|
class_class_uri: ClassVar[URIRef] = LINTCFG["Rules"]
|
@@ -120,15 +80,22 @@ class Rules(YAMLRoot):
|
|
120
80
|
recommended: Optional[Union[dict, "RecommendedRuleConfig"]] = None
|
121
81
|
no_xsd_int_type: Optional[Union[dict, "RuleConfig"]] = None
|
122
82
|
no_invalid_slot_usage: Optional[Union[dict, "RuleConfig"]] = None
|
83
|
+
no_undeclared_slots: Optional[Union[dict, "RuleConfig"]] = None
|
84
|
+
no_undeclared_ranges: Optional[Union[dict, "RuleConfig"]] = None
|
85
|
+
root_type_checks: Optional[Union[dict, "RuleConfig"]] = None
|
123
86
|
standard_naming: Optional[Union[dict, "StandardNamingConfig"]] = None
|
124
87
|
canonical_prefixes: Optional[Union[dict, "CanonicalPrefixesConfig"]] = None
|
125
88
|
|
126
|
-
def __post_init__(self, *_:
|
89
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
127
90
|
if self.no_empty_title is not None and not isinstance(self.no_empty_title, NoEmptyTitleConfig):
|
128
91
|
self.no_empty_title = NoEmptyTitleConfig(**as_dict(self.no_empty_title))
|
129
92
|
|
130
|
-
if self.permissible_values_format is not None and not isinstance(
|
131
|
-
self.permissible_values_format
|
93
|
+
if self.permissible_values_format is not None and not isinstance(
|
94
|
+
self.permissible_values_format, PermissibleValuesFormatRuleConfig
|
95
|
+
):
|
96
|
+
self.permissible_values_format = PermissibleValuesFormatRuleConfig(
|
97
|
+
**as_dict(self.permissible_values_format)
|
98
|
+
)
|
132
99
|
|
133
100
|
if self.tree_root_class is not None and not isinstance(self.tree_root_class, TreeRootClassRuleConfig):
|
134
101
|
self.tree_root_class = TreeRootClassRuleConfig(**as_dict(self.tree_root_class))
|
@@ -142,6 +109,15 @@ class Rules(YAMLRoot):
|
|
142
109
|
if self.no_invalid_slot_usage is not None and not isinstance(self.no_invalid_slot_usage, RuleConfig):
|
143
110
|
self.no_invalid_slot_usage = RuleConfig(**as_dict(self.no_invalid_slot_usage))
|
144
111
|
|
112
|
+
if self.no_undeclared_slots is not None and not isinstance(self.no_undeclared_slots, RuleConfig):
|
113
|
+
self.no_undeclared_slots = RuleConfig(**as_dict(self.no_undeclared_slots))
|
114
|
+
|
115
|
+
if self.no_undeclared_ranges is not None and not isinstance(self.no_undeclared_ranges, RuleConfig):
|
116
|
+
self.no_undeclared_ranges = RuleConfig(**as_dict(self.no_undeclared_ranges))
|
117
|
+
|
118
|
+
if self.root_type_checks is not None and not isinstance(self.root_type_checks, RuleConfig):
|
119
|
+
self.root_type_checks = RuleConfig(**as_dict(self.root_type_checks))
|
120
|
+
|
145
121
|
if self.standard_naming is not None and not isinstance(self.standard_naming, StandardNamingConfig):
|
146
122
|
self.standard_naming = StandardNamingConfig(**as_dict(self.standard_naming))
|
147
123
|
|
@@ -154,7 +130,7 @@ class Rules(YAMLRoot):
|
|
154
130
|
@dataclass(repr=False)
|
155
131
|
class RuleConfig(YAMLRoot):
|
156
132
|
"""
|
157
|
-
This is the base class for linter rules. It contains configuration options that are
|
133
|
+
This is the base class for linter rules. It contains configuration options that are common to all rules.
|
158
134
|
"""
|
159
135
|
|
160
136
|
_inherited_slots: ClassVar[list[str]] = []
|
@@ -166,7 +142,7 @@ class RuleConfig(YAMLRoot):
|
|
166
142
|
|
167
143
|
level: Union[str, "RuleLevel"] = None
|
168
144
|
|
169
|
-
def __post_init__(self, *_:
|
145
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
170
146
|
if self._is_empty(self.level):
|
171
147
|
self.MissingRequiredField("level")
|
172
148
|
if not isinstance(self.level, RuleLevel):
|
@@ -191,7 +167,7 @@ class PermissibleValuesFormatRuleConfig(RuleConfig):
|
|
191
167
|
level: Union[str, "RuleLevel"] = None
|
192
168
|
format: Optional[str] = None
|
193
169
|
|
194
|
-
def __post_init__(self, *_:
|
170
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
195
171
|
if self.format is not None and not isinstance(self.format, str):
|
196
172
|
self.format = str(self.format)
|
197
173
|
|
@@ -215,7 +191,7 @@ class TreeRootClassRuleConfig(RuleConfig):
|
|
215
191
|
root_class_name: Optional[str] = None
|
216
192
|
validate_existing_class_name: Optional[Union[bool, Bool]] = None
|
217
193
|
|
218
|
-
def __post_init__(self, *_:
|
194
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
219
195
|
if self.root_class_name is not None and not isinstance(self.root_class_name, str):
|
220
196
|
self.root_class_name = str(self.root_class_name)
|
221
197
|
|
@@ -241,9 +217,11 @@ class RecommendedRuleConfig(RuleConfig):
|
|
241
217
|
level: Union[str, "RuleLevel"] = None
|
242
218
|
include: Optional[Union[str, list[str]]] = empty_list()
|
243
219
|
exclude: Optional[Union[str, list[str]]] = empty_list()
|
244
|
-
exclude_type: Optional[
|
220
|
+
exclude_type: Optional[
|
221
|
+
Union[Union[str, "MetamodelElementTypeEnum"], list[Union[str, "MetamodelElementTypeEnum"]]]
|
222
|
+
] = empty_list()
|
245
223
|
|
246
|
-
def __post_init__(self, *_:
|
224
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
247
225
|
if not isinstance(self.include, list):
|
248
226
|
self.include = [self.include] if self.include is not None else []
|
249
227
|
self.include = [v if isinstance(v, str) else str(v) for v in self.include]
|
@@ -254,7 +232,9 @@ class RecommendedRuleConfig(RuleConfig):
|
|
254
232
|
|
255
233
|
if not isinstance(self.exclude_type, list):
|
256
234
|
self.exclude_type = [self.exclude_type] if self.exclude_type is not None else []
|
257
|
-
self.exclude_type = [
|
235
|
+
self.exclude_type = [
|
236
|
+
v if isinstance(v, MetamodelElementTypeEnum) else MetamodelElementTypeEnum(v) for v in self.exclude_type
|
237
|
+
]
|
258
238
|
|
259
239
|
super().__post_init__(**kwargs)
|
260
240
|
|
@@ -274,17 +254,21 @@ class StandardNamingConfig(RuleConfig):
|
|
274
254
|
|
275
255
|
level: Union[str, "RuleLevel"] = None
|
276
256
|
permissible_values_upper_case: Optional[Union[bool, Bool]] = None
|
277
|
-
exclude_type: Optional[
|
257
|
+
exclude_type: Optional[
|
258
|
+
Union[Union[str, "MetamodelElementTypeEnum"], list[Union[str, "MetamodelElementTypeEnum"]]]
|
259
|
+
] = empty_list()
|
278
260
|
class_pattern: Optional[str] = None
|
279
261
|
slot_pattern: Optional[str] = None
|
280
262
|
|
281
|
-
def __post_init__(self, *_:
|
263
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
282
264
|
if self.permissible_values_upper_case is not None and not isinstance(self.permissible_values_upper_case, Bool):
|
283
265
|
self.permissible_values_upper_case = Bool(self.permissible_values_upper_case)
|
284
266
|
|
285
267
|
if not isinstance(self.exclude_type, list):
|
286
268
|
self.exclude_type = [self.exclude_type] if self.exclude_type is not None else []
|
287
|
-
self.exclude_type = [
|
269
|
+
self.exclude_type = [
|
270
|
+
v if isinstance(v, MetamodelElementTypeEnum) else MetamodelElementTypeEnum(v) for v in self.exclude_type
|
271
|
+
]
|
288
272
|
|
289
273
|
if self.class_pattern is not None and not isinstance(self.class_pattern, str):
|
290
274
|
self.class_pattern = str(self.class_pattern)
|
@@ -311,7 +295,7 @@ class CanonicalPrefixesConfig(RuleConfig):
|
|
311
295
|
level: Union[str, "RuleLevel"] = None
|
312
296
|
prefixmaps_contexts: Optional[Union[str, list[str]]] = empty_list()
|
313
297
|
|
314
|
-
def __post_init__(self, *_:
|
298
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
315
299
|
if not isinstance(self.prefixmaps_contexts, list):
|
316
300
|
self.prefixmaps_contexts = [self.prefixmaps_contexts] if self.prefixmaps_contexts is not None else []
|
317
301
|
self.prefixmaps_contexts = [v if isinstance(v, str) else str(v) for v in self.prefixmaps_contexts]
|
@@ -324,6 +308,7 @@ class NoEmptyTitleConfig(RuleConfig):
|
|
324
308
|
"""
|
325
309
|
Additional configuration options for the no_empty_title rule
|
326
310
|
"""
|
311
|
+
|
327
312
|
_inherited_slots: ClassVar[list[str]] = []
|
328
313
|
|
329
314
|
class_class_uri: ClassVar[URIRef] = LINTCFG["NoEmptyTitleConfig"]
|
@@ -332,12 +317,16 @@ class NoEmptyTitleConfig(RuleConfig):
|
|
332
317
|
class_model_uri: ClassVar[URIRef] = LINTCFG.NoEmptyTitleConfig
|
333
318
|
|
334
319
|
level: Union[str, "RuleLevel"] = None
|
335
|
-
exclude_type: Optional[
|
320
|
+
exclude_type: Optional[
|
321
|
+
Union[Union[str, "MetamodelElementTypeEnum"], list[Union[str, "MetamodelElementTypeEnum"]]]
|
322
|
+
] = empty_list()
|
336
323
|
|
337
|
-
def __post_init__(self, *_:
|
324
|
+
def __post_init__(self, *_: str, **kwargs: Any):
|
338
325
|
if not isinstance(self.exclude_type, list):
|
339
326
|
self.exclude_type = [self.exclude_type] if self.exclude_type is not None else []
|
340
|
-
self.exclude_type = [
|
327
|
+
self.exclude_type = [
|
328
|
+
v if isinstance(v, MetamodelElementTypeEnum) else MetamodelElementTypeEnum(v) for v in self.exclude_type
|
329
|
+
]
|
341
330
|
|
342
331
|
super().__post_init__(**kwargs)
|
343
332
|
|
@@ -347,123 +336,285 @@ class ExtendableConfigs(EnumDefinitionImpl):
|
|
347
336
|
"""
|
348
337
|
The permissible values for the `extends` field of a config file
|
349
338
|
"""
|
350
|
-
|
351
|
-
|
352
|
-
description="Extend the recommended rule set")
|
339
|
+
|
340
|
+
recommended = PermissibleValue(text="recommended", description="Extend the recommended rule set")
|
353
341
|
|
354
342
|
_defn = EnumDefinition(
|
355
343
|
name="ExtendableConfigs",
|
356
344
|
description="The permissible values for the `extends` field of a config file",
|
357
345
|
)
|
358
346
|
|
347
|
+
|
359
348
|
class RuleLevel(EnumDefinitionImpl):
|
360
349
|
"""
|
361
350
|
The permissible values for the `level` option of all rules
|
362
351
|
"""
|
363
|
-
|
364
|
-
|
365
|
-
description="The rule will not be checked")
|
352
|
+
|
353
|
+
disabled = PermissibleValue(text="disabled", description="The rule will not be checked")
|
366
354
|
warning = PermissibleValue(
|
367
|
-
text="warning",
|
368
|
-
|
355
|
+
text="warning", description="A violation of a rule at this level is a minor issue that should be fixed"
|
356
|
+
)
|
369
357
|
error = PermissibleValue(
|
370
|
-
text="error",
|
371
|
-
|
358
|
+
text="error", description="A violation of a rule at this level is a major issue that must be fixed"
|
359
|
+
)
|
372
360
|
|
373
361
|
_defn = EnumDefinition(
|
374
362
|
name="RuleLevel",
|
375
363
|
description="The permissible values for the `level` option of all rules",
|
376
364
|
)
|
377
365
|
|
366
|
+
|
378
367
|
class MetamodelElementTypeEnum(EnumDefinitionImpl):
|
379
368
|
"""
|
380
369
|
The permissible values for the exclude_type slot
|
381
370
|
"""
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
meaning=LINKML["EnumDefinition"])
|
388
|
-
permissible_value = PermissibleValue(
|
389
|
-
text="permissible_value",
|
390
|
-
meaning=LINKML["PermissibleValue"])
|
391
|
-
slot_definition = PermissibleValue(text="slot_definition")
|
371
|
+
|
372
|
+
class_definition = PermissibleValue(text="class_definition", meaning=LINKML["ClassDefinition"])
|
373
|
+
enum_definition = PermissibleValue(text="enum_definition", meaning=LINKML["EnumDefinition"])
|
374
|
+
permissible_value = PermissibleValue(text="permissible_value", meaning=LINKML["PermissibleValue"])
|
375
|
+
slot_definition = PermissibleValue(text="slot_definition", meaning=LINKML["SlotDefinition"])
|
392
376
|
|
393
377
|
_defn = EnumDefinition(
|
394
378
|
name="MetamodelElementTypeEnum",
|
395
379
|
description="The permissible values for the exclude_type slot",
|
396
380
|
)
|
397
381
|
|
382
|
+
|
398
383
|
# Slots
|
399
384
|
class slots:
|
400
385
|
pass
|
401
386
|
|
402
|
-
slots.config__extends = Slot(uri=LINTCFG.extends, name="config__extends", curie=LINTCFG.curie('extends'),
|
403
|
-
model_uri=LINTCFG.config__extends, domain=None, range=Optional[Union[str, "ExtendableConfigs"]])
|
404
387
|
|
405
|
-
slots.
|
406
|
-
|
388
|
+
slots.config__extends = Slot(
|
389
|
+
uri=LINTCFG.extends,
|
390
|
+
name="config__extends",
|
391
|
+
curie=LINTCFG.curie("extends"),
|
392
|
+
model_uri=LINTCFG.config__extends,
|
393
|
+
domain=None,
|
394
|
+
range=Optional[Union[str, "ExtendableConfigs"]],
|
395
|
+
)
|
396
|
+
|
397
|
+
slots.config__rules = Slot(
|
398
|
+
uri=LINTCFG.rules,
|
399
|
+
name="config__rules",
|
400
|
+
curie=LINTCFG.curie("rules"),
|
401
|
+
model_uri=LINTCFG.config__rules,
|
402
|
+
domain=None,
|
403
|
+
range=Optional[Union[dict, Rules]],
|
404
|
+
)
|
405
|
+
|
406
|
+
slots.rules__no_empty_title = Slot(
|
407
|
+
uri=LINTCFG.no_empty_title,
|
408
|
+
name="rules__no_empty_title",
|
409
|
+
curie=LINTCFG.curie("no_empty_title"),
|
410
|
+
model_uri=LINTCFG.rules__no_empty_title,
|
411
|
+
domain=None,
|
412
|
+
range=Optional[Union[dict, NoEmptyTitleConfig]],
|
413
|
+
)
|
407
414
|
|
408
|
-
slots.
|
409
|
-
|
415
|
+
slots.rules__permissible_values_format = Slot(
|
416
|
+
uri=LINTCFG.permissible_values_format,
|
417
|
+
name="rules__permissible_values_format",
|
418
|
+
curie=LINTCFG.curie("permissible_values_format"),
|
419
|
+
model_uri=LINTCFG.rules__permissible_values_format,
|
420
|
+
domain=None,
|
421
|
+
range=Optional[Union[dict, PermissibleValuesFormatRuleConfig]],
|
422
|
+
)
|
410
423
|
|
411
|
-
slots.
|
412
|
-
|
424
|
+
slots.rules__tree_root_class = Slot(
|
425
|
+
uri=LINTCFG.tree_root_class,
|
426
|
+
name="rules__tree_root_class",
|
427
|
+
curie=LINTCFG.curie("tree_root_class"),
|
428
|
+
model_uri=LINTCFG.rules__tree_root_class,
|
429
|
+
domain=None,
|
430
|
+
range=Optional[Union[dict, TreeRootClassRuleConfig]],
|
431
|
+
)
|
413
432
|
|
414
|
-
slots.
|
415
|
-
|
433
|
+
slots.rules__recommended = Slot(
|
434
|
+
uri=LINTCFG.recommended,
|
435
|
+
name="rules__recommended",
|
436
|
+
curie=LINTCFG.curie("recommended"),
|
437
|
+
model_uri=LINTCFG.rules__recommended,
|
438
|
+
domain=None,
|
439
|
+
range=Optional[Union[dict, RecommendedRuleConfig]],
|
440
|
+
)
|
416
441
|
|
417
|
-
slots.
|
418
|
-
|
442
|
+
slots.rules__no_xsd_int_type = Slot(
|
443
|
+
uri=LINTCFG.no_xsd_int_type,
|
444
|
+
name="rules__no_xsd_int_type",
|
445
|
+
curie=LINTCFG.curie("no_xsd_int_type"),
|
446
|
+
model_uri=LINTCFG.rules__no_xsd_int_type,
|
447
|
+
domain=None,
|
448
|
+
range=Optional[Union[dict, RuleConfig]],
|
449
|
+
)
|
419
450
|
|
420
|
-
slots.
|
421
|
-
|
451
|
+
slots.rules__no_invalid_slot_usage = Slot(
|
452
|
+
uri=LINTCFG.no_invalid_slot_usage,
|
453
|
+
name="rules__no_invalid_slot_usage",
|
454
|
+
curie=LINTCFG.curie("no_invalid_slot_usage"),
|
455
|
+
model_uri=LINTCFG.rules__no_invalid_slot_usage,
|
456
|
+
domain=None,
|
457
|
+
range=Optional[Union[dict, RuleConfig]],
|
458
|
+
)
|
422
459
|
|
423
|
-
slots.
|
424
|
-
|
460
|
+
slots.rules__no_undeclared_slots = Slot(
|
461
|
+
uri=LINTCFG.no_undeclared_slots,
|
462
|
+
name="rules__no_undeclared_slots",
|
463
|
+
curie=LINTCFG.curie("no_undeclared_slots"),
|
464
|
+
model_uri=LINTCFG.rules__no_undeclared_slots,
|
465
|
+
domain=None,
|
466
|
+
range=Optional[Union[dict, RuleConfig]],
|
467
|
+
)
|
425
468
|
|
426
|
-
slots.
|
427
|
-
|
469
|
+
slots.rules__no_undeclared_ranges = Slot(
|
470
|
+
uri=LINTCFG.no_undeclared_ranges,
|
471
|
+
name="rules__no_undeclared_ranges",
|
472
|
+
curie=LINTCFG.curie("no_undeclared_ranges"),
|
473
|
+
model_uri=LINTCFG.rules__no_undeclared_ranges,
|
474
|
+
domain=None,
|
475
|
+
range=Optional[Union[dict, RuleConfig]],
|
476
|
+
)
|
428
477
|
|
429
|
-
slots.
|
430
|
-
|
478
|
+
slots.rules__root_type_checks = Slot(
|
479
|
+
uri=LINTCFG.root_type_checks,
|
480
|
+
name="rules__root_type_checks",
|
481
|
+
curie=LINTCFG.curie("root_type_checks"),
|
482
|
+
model_uri=LINTCFG.rules__root_type_checks,
|
483
|
+
domain=None,
|
484
|
+
range=Optional[Union[dict, RuleConfig]],
|
485
|
+
)
|
431
486
|
|
432
|
-
slots.
|
433
|
-
|
487
|
+
slots.rules__standard_naming = Slot(
|
488
|
+
uri=LINTCFG.standard_naming,
|
489
|
+
name="rules__standard_naming",
|
490
|
+
curie=LINTCFG.curie("standard_naming"),
|
491
|
+
model_uri=LINTCFG.rules__standard_naming,
|
492
|
+
domain=None,
|
493
|
+
range=Optional[Union[dict, StandardNamingConfig]],
|
494
|
+
)
|
434
495
|
|
435
|
-
slots.
|
436
|
-
|
496
|
+
slots.rules__canonical_prefixes = Slot(
|
497
|
+
uri=LINTCFG.canonical_prefixes,
|
498
|
+
name="rules__canonical_prefixes",
|
499
|
+
curie=LINTCFG.curie("canonical_prefixes"),
|
500
|
+
model_uri=LINTCFG.rules__canonical_prefixes,
|
501
|
+
domain=None,
|
502
|
+
range=Optional[Union[dict, CanonicalPrefixesConfig]],
|
503
|
+
)
|
437
504
|
|
438
|
-
slots.
|
439
|
-
|
505
|
+
slots.ruleConfig__level = Slot(
|
506
|
+
uri=LINTCFG.level,
|
507
|
+
name="ruleConfig__level",
|
508
|
+
curie=LINTCFG.curie("level"),
|
509
|
+
model_uri=LINTCFG.ruleConfig__level,
|
510
|
+
domain=None,
|
511
|
+
range=Union[str, "RuleLevel"],
|
512
|
+
)
|
440
513
|
|
441
|
-
slots.
|
442
|
-
|
514
|
+
slots.permissibleValuesFormatRuleConfig__format = Slot(
|
515
|
+
uri=LINTCFG.format,
|
516
|
+
name="permissibleValuesFormatRuleConfig__format",
|
517
|
+
curie=LINTCFG.curie("format"),
|
518
|
+
model_uri=LINTCFG.permissibleValuesFormatRuleConfig__format,
|
519
|
+
domain=None,
|
520
|
+
range=Optional[str],
|
521
|
+
)
|
443
522
|
|
444
|
-
slots.
|
445
|
-
|
523
|
+
slots.treeRootClassRuleConfig__root_class_name = Slot(
|
524
|
+
uri=LINTCFG.root_class_name,
|
525
|
+
name="treeRootClassRuleConfig__root_class_name",
|
526
|
+
curie=LINTCFG.curie("root_class_name"),
|
527
|
+
model_uri=LINTCFG.treeRootClassRuleConfig__root_class_name,
|
528
|
+
domain=None,
|
529
|
+
range=Optional[str],
|
530
|
+
)
|
446
531
|
|
447
|
-
slots.
|
448
|
-
|
532
|
+
slots.treeRootClassRuleConfig__validate_existing_class_name = Slot(
|
533
|
+
uri=LINTCFG.validate_existing_class_name,
|
534
|
+
name="treeRootClassRuleConfig__validate_existing_class_name",
|
535
|
+
curie=LINTCFG.curie("validate_existing_class_name"),
|
536
|
+
model_uri=LINTCFG.treeRootClassRuleConfig__validate_existing_class_name,
|
537
|
+
domain=None,
|
538
|
+
range=Optional[Union[bool, Bool]],
|
539
|
+
)
|
449
540
|
|
450
|
-
slots.
|
451
|
-
|
541
|
+
slots.recommendedRuleConfig__include = Slot(
|
542
|
+
uri=LINTCFG.include,
|
543
|
+
name="recommendedRuleConfig__include",
|
544
|
+
curie=LINTCFG.curie("include"),
|
545
|
+
model_uri=LINTCFG.recommendedRuleConfig__include,
|
546
|
+
domain=None,
|
547
|
+
range=Optional[Union[str, list[str]]],
|
548
|
+
)
|
452
549
|
|
453
|
-
slots.
|
454
|
-
|
550
|
+
slots.recommendedRuleConfig__exclude = Slot(
|
551
|
+
uri=LINTCFG.exclude,
|
552
|
+
name="recommendedRuleConfig__exclude",
|
553
|
+
curie=LINTCFG.curie("exclude"),
|
554
|
+
model_uri=LINTCFG.recommendedRuleConfig__exclude,
|
555
|
+
domain=None,
|
556
|
+
range=Optional[Union[str, list[str]]],
|
557
|
+
)
|
455
558
|
|
456
|
-
slots.
|
457
|
-
|
559
|
+
slots.recommendedRuleConfig__exclude_type = Slot(
|
560
|
+
uri=LINTCFG.exclude_type,
|
561
|
+
name="recommendedRuleConfig__exclude_type",
|
562
|
+
curie=LINTCFG.curie("exclude_type"),
|
563
|
+
model_uri=LINTCFG.recommendedRuleConfig__exclude_type,
|
564
|
+
domain=None,
|
565
|
+
range=Optional[Union[Union[str, "MetamodelElementTypeEnum"], list[Union[str, "MetamodelElementTypeEnum"]]]],
|
566
|
+
)
|
458
567
|
|
459
|
-
slots.
|
460
|
-
|
568
|
+
slots.standardNamingConfig__permissible_values_upper_case = Slot(
|
569
|
+
uri=LINTCFG.permissible_values_upper_case,
|
570
|
+
name="standardNamingConfig__permissible_values_upper_case",
|
571
|
+
curie=LINTCFG.curie("permissible_values_upper_case"),
|
572
|
+
model_uri=LINTCFG.standardNamingConfig__permissible_values_upper_case,
|
573
|
+
domain=None,
|
574
|
+
range=Optional[Union[bool, Bool]],
|
575
|
+
)
|
461
576
|
|
462
|
-
slots.
|
463
|
-
|
577
|
+
slots.standardNamingConfig__exclude_type = Slot(
|
578
|
+
uri=LINTCFG.exclude_type,
|
579
|
+
name="standardNamingConfig__exclude_type",
|
580
|
+
curie=LINTCFG.curie("exclude_type"),
|
581
|
+
model_uri=LINTCFG.standardNamingConfig__exclude_type,
|
582
|
+
domain=None,
|
583
|
+
range=Optional[Union[Union[str, "MetamodelElementTypeEnum"], list[Union[str, "MetamodelElementTypeEnum"]]]],
|
584
|
+
)
|
464
585
|
|
465
|
-
slots.
|
466
|
-
|
586
|
+
slots.standardNamingConfig__class_pattern = Slot(
|
587
|
+
uri=LINTCFG.class_pattern,
|
588
|
+
name="standardNamingConfig__class_pattern",
|
589
|
+
curie=LINTCFG.curie("class_pattern"),
|
590
|
+
model_uri=LINTCFG.standardNamingConfig__class_pattern,
|
591
|
+
domain=None,
|
592
|
+
range=Optional[str],
|
593
|
+
)
|
594
|
+
|
595
|
+
slots.standardNamingConfig__slot_pattern = Slot(
|
596
|
+
uri=LINTCFG.slot_pattern,
|
597
|
+
name="standardNamingConfig__slot_pattern",
|
598
|
+
curie=LINTCFG.curie("slot_pattern"),
|
599
|
+
model_uri=LINTCFG.standardNamingConfig__slot_pattern,
|
600
|
+
domain=None,
|
601
|
+
range=Optional[str],
|
602
|
+
)
|
467
603
|
|
468
|
-
slots.
|
469
|
-
|
604
|
+
slots.canonicalPrefixesConfig__prefixmaps_contexts = Slot(
|
605
|
+
uri=LINTCFG.prefixmaps_contexts,
|
606
|
+
name="canonicalPrefixesConfig__prefixmaps_contexts",
|
607
|
+
curie=LINTCFG.curie("prefixmaps_contexts"),
|
608
|
+
model_uri=LINTCFG.canonicalPrefixesConfig__prefixmaps_contexts,
|
609
|
+
domain=None,
|
610
|
+
range=Optional[Union[str, list[str]]],
|
611
|
+
)
|
612
|
+
|
613
|
+
slots.noEmptyTitleConfig__exclude_type = Slot(
|
614
|
+
uri=LINTCFG.exclude_type,
|
615
|
+
name="noEmptyTitleConfig__exclude_type",
|
616
|
+
curie=LINTCFG.curie("exclude_type"),
|
617
|
+
model_uri=LINTCFG.noEmptyTitleConfig__exclude_type,
|
618
|
+
domain=None,
|
619
|
+
range=Optional[Union[Union[str, "MetamodelElementTypeEnum"], list[Union[str, "MetamodelElementTypeEnum"]]]],
|
620
|
+
)
|