cognite-neat 1.0.34__py3-none-any.whl → 1.0.36__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.
- cognite/neat/_data_model/_analysis.py +1 -1
- cognite/neat/_data_model/models/conceptual/_concept.py +1 -1
- cognite/neat/_data_model/rules/dms/_containers.py +1 -1
- cognite/neat/_data_model/rules/dms/_performance.py +7 -4
- cognite/neat/_version.py +1 -1
- {cognite_neat-1.0.34.dist-info → cognite_neat-1.0.36.dist-info}/METADATA +1 -1
- {cognite_neat-1.0.34.dist-info → cognite_neat-1.0.36.dist-info}/RECORD +8 -8
- {cognite_neat-1.0.34.dist-info → cognite_neat-1.0.36.dist-info}/WHEEL +1 -1
|
@@ -2,11 +2,11 @@ import math
|
|
|
2
2
|
from collections import defaultdict
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
from enum import Enum
|
|
5
|
+
from functools import cached_property
|
|
5
6
|
from itertools import chain, combinations
|
|
6
7
|
from typing import Literal, TypeAlias, TypeVar
|
|
7
8
|
|
|
8
9
|
import networkx as nx
|
|
9
|
-
from pyparsing import cached_property
|
|
10
10
|
|
|
11
11
|
from cognite.neat._client.data_classes import SpaceStatisticsResponse
|
|
12
12
|
from cognite.neat._data_model._constants import COGNITE_SPACES
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from collections import Counter
|
|
2
|
+
from typing import cast
|
|
2
3
|
|
|
3
4
|
from pydantic import Field, ValidationInfo, field_validator
|
|
4
|
-
from pyparsing import cast
|
|
5
5
|
|
|
6
6
|
from cognite.neat._data_model.models.entities import ConceptEntity
|
|
7
7
|
from cognite.neat._data_model.models.entities._constants import PREFIX_PATTERN, SUFFIX_PATTERN, VERSION_PATTERN
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Validators for checking containers in the data model."""
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from typing import cast
|
|
4
4
|
|
|
5
5
|
from cognite.neat._data_model.models.dms._constraints import Constraint, RequiresConstraintDefinition
|
|
6
6
|
from cognite.neat._data_model.models.dms._view_property import ViewCorePropertyRequest
|
|
@@ -236,6 +236,10 @@ class MissingReverseDirectRelationTargetIndex(DataModelRule):
|
|
|
236
236
|
if not resolved.container or not resolved.container_property:
|
|
237
237
|
continue
|
|
238
238
|
|
|
239
|
+
# Skip CDM containers - we can't modify these
|
|
240
|
+
if resolved.container_ref.space in COGNITE_SPACES:
|
|
241
|
+
continue
|
|
242
|
+
|
|
239
243
|
# Must be a DirectNodeRelation type (other types handled by ReverseConnectionContainerPropertyWrongType)
|
|
240
244
|
if not isinstance(resolved.container_property.type, DirectNodeRelation):
|
|
241
245
|
continue
|
|
@@ -257,10 +261,9 @@ class MissingReverseDirectRelationTargetIndex(DataModelRule):
|
|
|
257
261
|
Recommendation(
|
|
258
262
|
message=(
|
|
259
263
|
f"View '{resolved.reverse_view_ref!s}' has a reverse direct relation "
|
|
260
|
-
f"'{resolved.reverse_property_id}' that
|
|
261
|
-
f"
|
|
262
|
-
f"
|
|
263
|
-
f"to enable efficient query traversal."
|
|
264
|
+
f"'{resolved.reverse_property_id}' that cannot be efficently traversed through queries, "
|
|
265
|
+
f"since it points to container {resolved.container_ref!s}' "
|
|
266
|
+
f"property '{resolved.container_property_id}' that is unindexed. "
|
|
264
267
|
),
|
|
265
268
|
fix="Add a cursorable B-tree index on the target direct relation property",
|
|
266
269
|
code=self.code,
|
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.36"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.36
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Author: Nikola Vasiljevic, Anders Albert
|
|
6
6
|
Author-email: Nikola Vasiljevic <nikola.vasiljevic@cognite.com>, Anders Albert <anders.albert@cognite.com>
|
|
@@ -17,7 +17,7 @@ cognite/neat/_client/statistics_api.py,sha256=3KNVsD2OV-EDFb1eqIrCXfYwjvyCDO80bP
|
|
|
17
17
|
cognite/neat/_client/views_api.py,sha256=YMaw7IaxU4gmixpd_t1u9JK9BHfNerf5DMNinGPCAa0,3692
|
|
18
18
|
cognite/neat/_config.py,sha256=IJS_R-86M4SLxdo644LZ0dE9h0jg2XBL1A4QKWJj0TQ,10160
|
|
19
19
|
cognite/neat/_data_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
-
cognite/neat/_data_model/_analysis.py,sha256=
|
|
20
|
+
cognite/neat/_data_model/_analysis.py,sha256=VUheUE1xZcfXxOzF9wW6iOmsbWWIg_GB6X6HoD0PYbU,47799
|
|
21
21
|
cognite/neat/_data_model/_constants.py,sha256=pPDtRwBsOq80IkYXRJ0XaRfFOb7CPvxz81IQzcPgAuc,1889
|
|
22
22
|
cognite/neat/_data_model/_identifiers.py,sha256=lDLvMvYDgRNFgk5GmxWzOUunG7M3synAciNjzJI0m_o,1913
|
|
23
23
|
cognite/neat/_data_model/_shared.py,sha256=H0gFqa8tKFNWuvdat5jL6OwySjCw3aQkLPY3wtb9Wrw,1302
|
|
@@ -48,7 +48,7 @@ cognite/neat/_data_model/importers/_table_importer/source.py,sha256=h7u5ur5oetmv
|
|
|
48
48
|
cognite/neat/_data_model/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
49
|
cognite/neat/_data_model/models/conceptual/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
50
|
cognite/neat/_data_model/models/conceptual/_base.py,sha256=SFkoBJDM51pqew_isHFJoB20OgfofpwVRnTrg-rKkNY,710
|
|
51
|
-
cognite/neat/_data_model/models/conceptual/_concept.py,sha256=
|
|
51
|
+
cognite/neat/_data_model/models/conceptual/_concept.py,sha256=eQMOb3tJJHvopr3QqP3XkP5GjBO4UXTKoVy_eSEwzEk,2245
|
|
52
52
|
cognite/neat/_data_model/models/conceptual/_data_model.py,sha256=zvJZi0OqOFMviwY84Am3Oz_RmF1g3tOzANFHlrldBuU,1673
|
|
53
53
|
cognite/neat/_data_model/models/conceptual/_properties.py,sha256=CpF37vJYBTLT4DH4ZOu2U-JyWtkb_27V8fw52qiaE_k,4007
|
|
54
54
|
cognite/neat/_data_model/models/conceptual/_property.py,sha256=blSZQxX52zaILAtjUkldPzPeysz7wnG-UGSNU5tacI8,4138
|
|
@@ -86,10 +86,10 @@ cognite/neat/_data_model/rules/dms/_ai_readiness.py,sha256=1KvOk3Q8aQkE8G6oHml7O
|
|
|
86
86
|
cognite/neat/_data_model/rules/dms/_base.py,sha256=BnzBELon389lEXJi7dlb9t3SPjiXgVquiI445I7-APU,134
|
|
87
87
|
cognite/neat/_data_model/rules/dms/_connections.py,sha256=yvlcb_-lBILZpMZ9Zcp8R1sC-G6DhCdyqjffwOnlmUI,23416
|
|
88
88
|
cognite/neat/_data_model/rules/dms/_consistency.py,sha256=7u-EDQk08eV4CJoY5nRbrYXs2cbkQkH6TQCcPOyUGI8,2425
|
|
89
|
-
cognite/neat/_data_model/rules/dms/_containers.py,sha256=
|
|
89
|
+
cognite/neat/_data_model/rules/dms/_containers.py,sha256=R67rAlA2V9oMbp0bQEpHu8VF1Yr3f8xXgox7NkQtWk8,10539
|
|
90
90
|
cognite/neat/_data_model/rules/dms/_limits.py,sha256=L6dAsLWVBEpfVFZgw3SvJk1PnEGf4lhJ3SOXjDUsY2Q,14820
|
|
91
91
|
cognite/neat/_data_model/rules/dms/_orchestrator.py,sha256=tTXxLH1yThAeTW_GdDeD-to19faK72c_z8QL9kzgGJc,3069
|
|
92
|
-
cognite/neat/_data_model/rules/dms/_performance.py,sha256=
|
|
92
|
+
cognite/neat/_data_model/rules/dms/_performance.py,sha256=FlrkePUQ0MIzC1YJciiABS-FcNhnRfJSYZzJbEWeIJQ,12322
|
|
93
93
|
cognite/neat/_data_model/rules/dms/_views.py,sha256=Tp4VW2512eGSGgeMRoUFh7hqK2vsZD8ryN_EJ7QJoEg,6335
|
|
94
94
|
cognite/neat/_exceptions.py,sha256=hOjPL1vFNNAZzqAHFB9l9ek-XJEBKcqiaPk0onwLPns,2540
|
|
95
95
|
cognite/neat/_issues.py,sha256=wH1mnkrpBsHUkQMGUHFLUIQWQlfJ_qMfdF7q0d9wNhY,1871
|
|
@@ -333,9 +333,9 @@ cognite/neat/_v0/session/_template.py,sha256=BNcvrW5y7LWzRM1XFxZkfR1Nc7e8UgjBClH
|
|
|
333
333
|
cognite/neat/_v0/session/_to.py,sha256=AnsRSDDdfFyYwSgi0Z-904X7WdLtPfLlR0x1xsu_jAo,19447
|
|
334
334
|
cognite/neat/_v0/session/_wizard.py,sha256=baPJgXAAF3d1bn4nbIzon1gWfJOeS5T43UXRDJEnD3c,1490
|
|
335
335
|
cognite/neat/_v0/session/exceptions.py,sha256=jv52D-SjxGfgqaHR8vnpzo0SOJETIuwbyffSWAxSDJw,3495
|
|
336
|
-
cognite/neat/_version.py,sha256=
|
|
336
|
+
cognite/neat/_version.py,sha256=4o1XuHvwEjF7KiSdB7hr63IImWZB4eeRXgVJ49uZOfA,45
|
|
337
337
|
cognite/neat/legacy.py,sha256=DMFeLCSBLT2enk-nm1KfX1rKR2DQDpxY-w6ThY0y9c8,421
|
|
338
338
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
339
|
-
cognite_neat-1.0.
|
|
340
|
-
cognite_neat-1.0.
|
|
341
|
-
cognite_neat-1.0.
|
|
339
|
+
cognite_neat-1.0.36.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
|
|
340
|
+
cognite_neat-1.0.36.dist-info/METADATA,sha256=YYDQNfGgqXLb5T8R-sbIihiaPFMVfA41JSmlxmo4Duc,6872
|
|
341
|
+
cognite_neat-1.0.36.dist-info/RECORD,,
|