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

cognite/neat/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.90.0"
1
+ __version__ = "0.90.1"
@@ -1,5 +1,4 @@
1
1
  import json
2
- import logging
3
2
  from pathlib import Path
4
3
  from typing import ClassVar, cast
5
4
 
@@ -42,7 +41,7 @@ class GraphFromMockData(Step):
42
41
  ]
43
42
 
44
43
  def run( # type: ignore[override, syntax]
45
- self, rules: MultiRuleData, graph_store: NeatGraph
44
+ self, rules: MultiRuleData, store: NeatGraph
46
45
  ) -> FlowMessage:
47
46
  if self.configs is None:
48
47
  raise WorkflowStepNotInitializedError(type(self).__name__)
@@ -53,9 +52,6 @@ class GraphFromMockData(Step):
53
52
  step_execution_status=StepExecutionStatus.ABORT_AND_FAIL,
54
53
  )
55
54
 
56
- logging.info(50 * "#")
57
- logging.info(50 * "#")
58
- logging.info(self.configs["Class count"])
59
55
  try:
60
56
  class_count = json.loads(self.configs["Class count"]) if self.configs["Class count"] else {}
61
57
  except Exception:
@@ -69,9 +65,9 @@ class GraphFromMockData(Step):
69
65
  class_count,
70
66
  )
71
67
 
72
- NeatGraph.graph.write(extractor)
68
+ store.graph.write(extractor)
73
69
 
74
- return FlowMessage(output_text=f"Instances loaded to the {graph_store.__class__.__name__}")
70
+ return FlowMessage(output_text=f"Instances loaded to the {store.__class__.__name__}")
75
71
 
76
72
 
77
73
  class GraphFromRdfFile(Step):
@@ -108,12 +104,12 @@ class GraphFromRdfFile(Step):
108
104
  ),
109
105
  ]
110
106
 
111
- def run(self, graph_store: NeatGraph) -> FlowMessage: # type: ignore[override, syntax]
107
+ def run(self, store: NeatGraph) -> FlowMessage: # type: ignore[override, syntax]
112
108
  if self.configs is None or self.data_store_path is None:
113
109
  raise WorkflowStepNotInitializedError(type(self).__name__)
114
110
 
115
111
  if source_file := self.configs["File path"]:
116
- NeatGraph.graph.write(
112
+ store.graph.write(
117
113
  RdfFileExtractor( # type: ignore[abstract]
118
114
  filepath=self.data_store_path / Path(source_file),
119
115
  mime_type=self.configs["MIME type"], # type: ignore[arg-type]
@@ -31,7 +31,7 @@ class GraphToRdfFile(Step):
31
31
  ]
32
32
 
33
33
  def run( # type: ignore[override, syntax]
34
- self, graph: NeatGraph
34
+ self, store: NeatGraph
35
35
  ) -> FlowMessage: # type: ignore[syntax]
36
36
  if self.configs is None or self.data_store_path is None:
37
37
  raise WorkflowStepNotInitializedError(type(self).__name__)
@@ -39,7 +39,7 @@ class GraphToRdfFile(Step):
39
39
  storage_path = self.data_store_path / Path(self.configs["File path"])
40
40
  relative_graph_file_path = str(storage_path).split("/data/")[1]
41
41
 
42
- graph.graph.graph.serialize(str(storage_path), format="turtle")
42
+ store.graph.graph.serialize(str(storage_path), format="turtle")
43
43
 
44
44
  output_text = (
45
45
  "<p></p>"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cognite-neat
3
- Version: 0.90.0
3
+ Version: 0.90.1
4
4
  Summary: Knowledge graph transformation
5
5
  Home-page: https://cognite-neat.readthedocs-hosted.com/
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  cognite/neat/__init__.py,sha256=AiexNcHdAHFbrrbo9c65gtil1dqx_SGraDH1PSsXjKE,126
2
2
  cognite/neat/_shared.py,sha256=RSaHm2eJceTlvb-hMMe4nHgoHdPYDfN3XcxDXo24k3A,1530
3
- cognite/neat/_version.py,sha256=FvxNqJMDVJIASnIcUVgFB9VPINXWP_qWXCWjSsjUHO8,23
3
+ cognite/neat/_version.py,sha256=araU2bbf8DwRBsZfRETG4oRqnPYvWai2WeyP-zS9jUM,23
4
4
  cognite/neat/app/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  cognite/neat/app/api/asgi/metrics.py,sha256=nxFy7L5cChTI0a-zkCiJ59Aq8yLuIJp5c9Dg0wRXtV0,152
6
6
  cognite/neat/app/api/configuration.py,sha256=L1DCtLZ1HZku8I2z-JWd5RDsXhIsboFsKwAMhkrm-bY,3600
@@ -204,8 +204,8 @@ cognite/neat/workflows/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
204
204
  cognite/neat/workflows/steps/data_contracts.py,sha256=RobxctwAOxdOYdPf6jEkMj9KSTJjj4Cf__oOr5Ge2rs,2467
205
205
  cognite/neat/workflows/steps/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
206
206
  cognite/neat/workflows/steps/lib/current/__init__.py,sha256=c22IznGdCSNCpXCi_yonlbbywJE1uj6bfVCv0X2LYeE,225
207
- cognite/neat/workflows/steps/lib/current/graph_extractor.py,sha256=VHZpeo-QB_qSJu2QuU9uISFgw8LgQGeMVvSc1KORw3c,4738
208
- cognite/neat/workflows/steps/lib/current/graph_loader.py,sha256=4FxE7A0ZCSwGmVP-dcWISwupBQo6TZzUr_1GMQ0klIM,1689
207
+ cognite/neat/workflows/steps/lib/current/graph_extractor.py,sha256=3nP-BoXbDA8oobVak7KLvMg8-0-5sQrXrPQNIXNGI1U,4585
208
+ cognite/neat/workflows/steps/lib/current/graph_loader.py,sha256=TUgLPExa9OuaDboGFBTRReigkhwFturMoJTMwkDT4s4,1689
209
209
  cognite/neat/workflows/steps/lib/current/graph_store.py,sha256=UydcYMoF2d2m8gOKAtlul8yCfKS3jFJJCTF2psM2flg,1582
210
210
  cognite/neat/workflows/steps/lib/current/rules_exporter.py,sha256=qLMlB3MqTZhD5q9A8YypksUQ7kOhwi6qGnNXdky_G9w,27752
211
211
  cognite/neat/workflows/steps/lib/current/rules_importer.py,sha256=ytyIDg9_2AZWxMvH1rE044QI8jab5kdHNR-FKyKBaXE,17978
@@ -217,8 +217,8 @@ cognite/neat/workflows/steps_registry.py,sha256=FjMsFBlFFy82ABUzDnWoFidYODV3pp3c
217
217
  cognite/neat/workflows/tasks.py,sha256=dqlJwKAb0jlkl7abbY8RRz3m7MT4SK8-7cntMWkOYjw,788
218
218
  cognite/neat/workflows/triggers.py,sha256=_BLNplzoz0iic367u1mhHMHiUrCwP-SLK6_CZzfODX0,7071
219
219
  cognite/neat/workflows/utils.py,sha256=gKdy3RLG7ctRhbCRwaDIWpL9Mi98zm56-d4jfHDqP1E,453
220
- cognite_neat-0.90.0.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
221
- cognite_neat-0.90.0.dist-info/METADATA,sha256=a6RmI8e8zGcHtk6RhHErdW-QGwuzSD3T6du_pzBBQhM,9441
222
- cognite_neat-0.90.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
223
- cognite_neat-0.90.0.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
224
- cognite_neat-0.90.0.dist-info/RECORD,,
220
+ cognite_neat-0.90.1.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
221
+ cognite_neat-0.90.1.dist-info/METADATA,sha256=fesf1bMUebWMM4l-lPzQ92ZLM67NPT-Xdyb0y1AKNVU,9441
222
+ cognite_neat-0.90.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
223
+ cognite_neat-0.90.1.dist-info/entry_points.txt,sha256=61FPqiWb25vbqB0KI7znG8nsg_ibLHBvTjYnkPvNFso,50
224
+ cognite_neat-0.90.1.dist-info/RECORD,,