cognite-neat 0.116.1__py3-none-any.whl → 0.117.0__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.

Potentially problematic release.


This version of cognite-neat might be problematic. Click here for more details.

@@ -23,7 +23,6 @@ from cognite.neat._store._rules_store import RulesEntity
23
23
  from cognite.neat._utils.auxiliary import local_import
24
24
 
25
25
  from ._collector import _COLLECTOR, Collector
26
- from ._create import CreateAPI
27
26
  from ._drop import DropAPI
28
27
  from ._explore import ExploreAPI
29
28
  from ._fix import FixAPI
@@ -35,6 +34,7 @@ from ._set import SetAPI
35
34
  from ._show import ShowAPI
36
35
  from ._state import SessionState
37
36
  from ._subset import SubsetAPI
37
+ from ._template import TemplateAPI
38
38
  from ._to import ToAPI
39
39
  from .engine import load_neat_engine
40
40
  from .exceptions import session_class_wrapper
@@ -104,7 +104,7 @@ class NeatSession:
104
104
  self.mapping = MappingAPI(self._state)
105
105
  self.drop = DropAPI(self._state)
106
106
  self.subset = SubsetAPI(self._state)
107
- self.create = CreateAPI(self._state)
107
+ self.template = TemplateAPI(self._state)
108
108
  self._explore = ExploreAPI(self._state)
109
109
  self.opt = OptAPI()
110
110
  self.opt._display()
@@ -17,9 +17,9 @@ from .exceptions import NeatSessionError, session_class_wrapper
17
17
 
18
18
 
19
19
  @session_class_wrapper
20
- class CreateAPI:
20
+ class TemplateAPI:
21
21
  """
22
- Create new data model based on the given data.
22
+ Create a template for a new data model.
23
23
  """
24
24
 
25
25
  def __init__(self, state: SessionState):
@@ -31,7 +31,10 @@ class CreateAPI:
31
31
  org_name: str = "CopyOf",
32
32
  dummy_property: str = "GUID",
33
33
  ) -> IssueList:
34
- """Uses the current data model as a basis to create enterprise data model
34
+ """Creates a template for an enterprise model based on the current data model in the session.
35
+ An enterprise data model is a model that is used for read and write of instances. In addition,
36
+ it is governed by the organization.
37
+ The basis for an enterprise data model should be a Cognite Data Model.
35
38
 
36
39
  Args:
37
40
  data_model_id: The enterprise data model id that is being created
@@ -76,7 +79,9 @@ class CreateAPI:
76
79
  direct_property: str = "enterprise",
77
80
  view_prefix: str = "Enterprise",
78
81
  ) -> IssueList:
79
- """Uses the current data model as a basis to create solution data model
82
+ """Creates a template for a solution model based on the current data model in the session.
83
+ A solution data model is for read and write of instances.
84
+ The basis for a solution data model should be an enterprise data model.
80
85
 
81
86
  Args:
82
87
  data_model_id: The solution data model id that is being created.
@@ -121,7 +126,9 @@ class CreateAPI:
121
126
  data_model_id: DataModelIdentifier,
122
127
  include: Literal["same-space", "all"] = "same-space",
123
128
  ) -> IssueList:
124
- """Uses the current data model as a basis to create data product data model.
129
+ """Creates a template for a data product model based on the current data model in the session.
130
+ A data product model is only used for reading of instances.
131
+ It can be based on any data model, but typically it is based on an enterprise or solution data model.
125
132
 
126
133
  A data product model is a data model that ONLY maps to containers and do not use implements. This is
127
134
  typically used for defining the data in a data product.
cognite/neat/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.116.1"
1
+ __version__ = "0.117.0"
2
2
  __engine__ = "^2.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cognite-neat
3
- Version: 0.116.1
3
+ Version: 0.117.0
4
4
  Summary: Knowledge graph transformation
5
5
  License: Apache-2.0
6
6
  Author: Nikola Vasiljevic
@@ -135,9 +135,8 @@ cognite/neat/_rules/transformers/_converters.py,sha256=d7EPv9H_zFpCw9CS_qODDE3Ze
135
135
  cognite/neat/_rules/transformers/_mapping.py,sha256=lIMWNnqZoyOfOGlc2k7FgasZJqudBklcHoH1qW5EeAw,18192
136
136
  cognite/neat/_rules/transformers/_verification.py,sha256=coZjoLqdfS8yrPP62T_xEKrDZc9ETbPWrLuwEVBSLZQ,4370
137
137
  cognite/neat/_session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
138
- cognite/neat/_session/_base.py,sha256=doFh7HqUXVMXPxoCNsL20TUEo30wYlQzHbjx9sAxm8k,12309
138
+ cognite/neat/_session/_base.py,sha256=7NRswQdQOdB-2Cb-WavzzKZDyEOpJBCcO18KTCGu9Tw,12317
139
139
  cognite/neat/_session/_collector.py,sha256=RcOGY0DjTCCKJt9j_p0gnQXn4omhsIX2G8Aq3ZFHIt4,4218
140
- cognite/neat/_session/_create.py,sha256=g93pdYnk7WkZeheGD73F3Y_KBmODuqqSUKcIgF2x4ME,6936
141
140
  cognite/neat/_session/_drop.py,sha256=gOkDAnddASpFxYxkPjlTyhkpNfnmDEj94GRI8tnHFR0,4167
142
141
  cognite/neat/_session/_explore.py,sha256=hrL0ASLtEXLlZn0dgDsKNySO10qEMBT8cE8mti2lOws,1561
143
142
  cognite/neat/_session/_fix.py,sha256=wYXIIHKmWTNmOLr9RvDSkBJllKoomP2mCnMdB9x2ojw,898
@@ -149,6 +148,7 @@ cognite/neat/_session/_set.py,sha256=dCZ5zEmNAw8tiqOGT7-EigSXOIGlfVP2ldA7nmC8LJ8
149
148
  cognite/neat/_session/_show.py,sha256=2lnkud996ouwf6-aKGvU0cU0ttfMeQ3vcb__g_7Yko4,10539
150
149
  cognite/neat/_session/_state.py,sha256=6b0BSXm7m5-OcsF_O0A_7ec9tt8oPqH8zHImyEhVQQA,6313
151
150
  cognite/neat/_session/_subset.py,sha256=4RFGC8apNLnRSKcoDh95ksXA7zLy8vGLxEV5U0H3Hoc,2687
151
+ cognite/neat/_session/_template.py,sha256=A0mx65fs-07eJcRk46LklRBmTUtO181EvOwsz74G4go,7538
152
152
  cognite/neat/_session/_to.py,sha256=S7209afgOlLWbsKOA0Z4lAwT57gzLmSDaUWpUaWjJJY,19118
153
153
  cognite/neat/_session/_wizard.py,sha256=9idlzhZy54h2Iwupe9iXKX3RDb5jJQuBZFEouni50L0,1476
154
154
  cognite/neat/_session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvca6n48bu_bI,120
@@ -176,10 +176,10 @@ cognite/neat/_utils/text.py,sha256=BFJoEOQBFgpelysL92FdF0OVRVFl0q9tRNoz-oRanNc,7
176
176
  cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
177
177
  cognite/neat/_utils/upload.py,sha256=xWtM6mFuD2QYQHaZ7zCAuGptbEpPIxcH-raWQu93-Ug,5845
178
178
  cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
179
- cognite/neat/_version.py,sha256=rkqNp51SbRmkNZ6BnKHVsD9AQiv5ZdKk96VgwLRgb-I,46
179
+ cognite/neat/_version.py,sha256=C9qzdODt-2zi4-5C5m1c2mxs_KJtDJI6ixlRUp_E_Aw,46
180
180
  cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
181
- cognite_neat-0.116.1.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
182
- cognite_neat-0.116.1.dist-info/METADATA,sha256=OaMqzA2KOp5r_i5O03ysQFCK6juEukV4yvXxVEkl9qM,5361
183
- cognite_neat-0.116.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
184
- cognite_neat-0.116.1.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
185
- cognite_neat-0.116.1.dist-info/RECORD,,
181
+ cognite_neat-0.117.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
182
+ cognite_neat-0.117.0.dist-info/METADATA,sha256=TMJflUGnb6D5Y712Ju8AVVptD4ttoNCyEB-57IY8f7M,5361
183
+ cognite_neat-0.117.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
184
+ cognite_neat-0.117.0.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
185
+ cognite_neat-0.117.0.dist-info/RECORD,,