cognite-neat 0.128.0__py3-none-any.whl → 1.0.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.
- cognite/neat/__init__.py +4 -3
- cognite/neat/_config.py +53 -6
- cognite/neat/_data_model/_identifiers.py +1 -1
- cognite/neat/_data_model/importers/_table_importer/data_classes.py +1 -1
- cognite/neat/_data_model/models/conceptual/_data_model.py +1 -1
- cognite/neat/_data_model/models/dms/_space.py +1 -1
- cognite/neat/_data_model/models/entities/_identifiers.py +1 -1
- cognite/neat/_session/_session.py +7 -14
- cognite/neat/{v0 → _v0}/core/_client/_api/data_modeling_loaders.py +6 -6
- cognite/neat/{v0 → _v0}/core/_client/_api/neat_instances.py +5 -5
- cognite/neat/{v0 → _v0}/core/_client/_api/schema.py +5 -5
- cognite/neat/{v0 → _v0}/core/_client/_api/statistics.py +3 -3
- cognite/neat/{v0 → _v0}/core/_client/_api_client.py +1 -1
- cognite/neat/{v0 → _v0}/core/_client/data_classes/schema.py +4 -4
- cognite/neat/{v0 → _v0}/core/_client/testing.py +1 -1
- cognite/neat/{v0 → _v0}/core/_constants.py +3 -3
- cognite/neat/{v0 → _v0}/core/_data_model/_shared.py +4 -4
- cognite/neat/{v0 → _v0}/core/_data_model/analysis/_base.py +8 -8
- cognite/neat/{v0 → _v0}/core/_data_model/exporters/_base.py +7 -7
- cognite/neat/{v0 → _v0}/core/_data_model/exporters/_data_model2dms.py +9 -9
- cognite/neat/{v0 → _v0}/core/_data_model/exporters/_data_model2excel.py +9 -9
- cognite/neat/{v0 → _v0}/core/_data_model/exporters/_data_model2instance_template.py +4 -4
- cognite/neat/{v0 → _v0}/core/_data_model/exporters/_data_model2semantic_model.py +9 -9
- cognite/neat/{v0 → _v0}/core/_data_model/exporters/_data_model2yaml.py +1 -1
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_base.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_base_file_reader.py +2 -2
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_dict2data_model.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_dms2data_model.py +13 -13
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_graph2data_model.py +12 -12
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_rdf/_base.py +12 -12
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_rdf/_inference2rdata_model.py +14 -14
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_rdf/_owl2data_model.py +2 -2
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_rdf/_shared.py +7 -7
- cognite/neat/{v0 → _v0}/core/_data_model/importers/_spreadsheet2data_model.py +10 -10
- cognite/neat/{v0 → _v0}/core/_data_model/models/__init__.py +3 -3
- cognite/neat/{v0 → _v0}/core/_data_model/models/_base_verified.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/models/_import_contexts.py +1 -1
- cognite/neat/{v0 → _v0}/core/_data_model/models/_types.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/models/conceptual/_unverified.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/models/conceptual/_validation.py +12 -12
- cognite/neat/{v0 → _v0}/core/_data_model/models/conceptual/_verified.py +9 -9
- cognite/neat/{v0 → _v0}/core/_data_model/models/data_types.py +3 -3
- cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_loaders.py +2 -2
- cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_multi_value.py +2 -2
- cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_restrictions.py +6 -6
- cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_single_value.py +3 -3
- cognite/neat/{v0 → _v0}/core/_data_model/models/mapping/_classic2core.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/models/physical/__init__.py +1 -1
- cognite/neat/{v0 → _v0}/core/_data_model/models/physical/_exporter.py +8 -8
- cognite/neat/{v0 → _v0}/core/_data_model/models/physical/_unverified.py +8 -8
- cognite/neat/{v0 → _v0}/core/_data_model/models/physical/_validation.py +16 -16
- cognite/neat/{v0 → _v0}/core/_data_model/models/physical/_verified.py +11 -11
- cognite/neat/{v0 → _v0}/core/_data_model/transformers/_base.py +4 -4
- cognite/neat/{v0 → _v0}/core/_data_model/transformers/_converters.py +26 -26
- cognite/neat/{v0 → _v0}/core/_data_model/transformers/_mapping.py +7 -7
- cognite/neat/{v0 → _v0}/core/_data_model/transformers/_union_conceptual.py +5 -5
- cognite/neat/{v0 → _v0}/core/_data_model/transformers/_verification.py +7 -7
- cognite/neat/{v0 → _v0}/core/_instances/_tracking/base.py +1 -1
- cognite/neat/{v0 → _v0}/core/_instances/_tracking/log.py +1 -1
- cognite/neat/{v0 → _v0}/core/_instances/extractors/__init__.py +3 -2
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_base.py +6 -6
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_base.py +7 -7
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_classic.py +12 -12
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_relationships.py +3 -3
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_sequences.py +2 -2
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_dict.py +2 -2
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_dms.py +6 -6
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_dms_graph.py +11 -11
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_mock_graph_generator.py +10 -10
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_raw.py +3 -3
- cognite/neat/{v0 → _v0}/core/_instances/extractors/_rdf_file.py +7 -7
- cognite/neat/{v0 → _v0}/core/_instances/loaders/_base.py +5 -5
- cognite/neat/{v0 → _v0}/core/_instances/loaders/_rdf2dms.py +17 -17
- cognite/neat/{v0 → _v0}/core/_instances/loaders/_rdf_to_instance_space.py +11 -11
- cognite/neat/{v0 → _v0}/core/_instances/queries/_select.py +3 -3
- cognite/neat/{v0 → _v0}/core/_instances/queries/_update.py +1 -1
- cognite/neat/{v0 → _v0}/core/_instances/transformers/_base.py +4 -4
- cognite/neat/{v0 → _v0}/core/_instances/transformers/_classic_cdf.py +6 -6
- cognite/neat/{v0 → _v0}/core/_instances/transformers/_prune_graph.py +4 -4
- cognite/neat/{v0 → _v0}/core/_instances/transformers/_rdfpath.py +1 -1
- cognite/neat/{v0 → _v0}/core/_instances/transformers/_value_type.py +4 -4
- cognite/neat/{v0 → _v0}/core/_issues/_base.py +5 -5
- cognite/neat/{v0 → _v0}/core/_issues/_contextmanagers.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/_factory.py +3 -3
- cognite/neat/{v0 → _v0}/core/_issues/errors/__init__.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/errors/_external.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/errors/_general.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/errors/_properties.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/errors/_resources.py +2 -2
- cognite/neat/{v0 → _v0}/core/_issues/errors/_wrapper.py +2 -2
- cognite/neat/{v0 → _v0}/core/_issues/warnings/__init__.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/warnings/_external.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/warnings/_general.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/warnings/_models.py +2 -2
- cognite/neat/{v0 → _v0}/core/_issues/warnings/_properties.py +2 -2
- cognite/neat/{v0 → _v0}/core/_issues/warnings/_resources.py +1 -1
- cognite/neat/{v0 → _v0}/core/_issues/warnings/user_modeling.py +1 -1
- cognite/neat/{v0 → _v0}/core/_store/_data_model.py +12 -12
- cognite/neat/{v0 → _v0}/core/_store/_instance.py +11 -11
- cognite/neat/{v0 → _v0}/core/_store/_provenance.py +3 -3
- cognite/neat/{v0 → _v0}/core/_store/exceptions.py +4 -4
- cognite/neat/{v0 → _v0}/core/_utils/auth.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/auxiliary.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/collection_.py +2 -2
- cognite/neat/{v0 → _v0}/core/_utils/graph_transformations_report.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/rdf_.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/reader/_base.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/spreadsheet.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/text.py +1 -1
- cognite/neat/{v0 → _v0}/core/_utils/upload.py +3 -3
- cognite/neat/{v0/session → _v0}/engine/_load.py +1 -1
- cognite/neat/{v0 → _v0}/plugins/_data_model.py +2 -2
- cognite/neat/{v0 → _v0}/plugins/_issues.py +1 -1
- cognite/neat/{v0 → _v0}/plugins/_manager.py +2 -2
- cognite/neat/{v0 → _v0}/session/_base.py +11 -11
- cognite/neat/{v0 → _v0}/session/_collector.py +1 -1
- cognite/neat/{v0 → _v0}/session/_diff.py +1 -1
- cognite/neat/{v0 → _v0}/session/_drop.py +3 -3
- cognite/neat/{v0 → _v0}/session/_explore.py +2 -2
- cognite/neat/{v0 → _v0}/session/_fix.py +2 -2
- cognite/neat/{v0 → _v0}/session/_inspect.py +3 -3
- cognite/neat/{v0 → _v0}/session/_mapping.py +3 -3
- cognite/neat/{v0 → _v0}/session/_plugin.py +4 -4
- cognite/neat/{v0 → _v0}/session/_prepare.py +8 -8
- cognite/neat/{v0 → _v0}/session/_read.py +19 -19
- cognite/neat/{v0 → _v0}/session/_set.py +8 -8
- cognite/neat/{v0 → _v0}/session/_show.py +5 -5
- cognite/neat/{v0 → _v0}/session/_state.py +10 -10
- cognite/neat/{v0 → _v0}/session/_subset.py +4 -4
- cognite/neat/{v0 → _v0}/session/_template.py +11 -11
- cognite/neat/{v0 → _v0}/session/_to.py +12 -12
- cognite/neat/{v0 → _v0}/session/_wizard.py +1 -1
- cognite/neat/{v0 → _v0}/session/exceptions.py +5 -5
- cognite/neat/_version.py +1 -1
- cognite/neat/legacy.py +6 -0
- {cognite_neat-0.128.0.dist-info → cognite_neat-1.0.0.dist-info}/METADATA +1 -1
- cognite_neat-1.0.0.dist-info/RECORD +319 -0
- cognite/neat/v1.py +0 -3
- cognite_neat-0.128.0.dist-info/RECORD +0 -319
- /cognite/neat/{v0 → _v0}/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_client/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_client/_api/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_client/data_classes/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_client/data_classes/data_modeling.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_client/data_classes/neat_sequence.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_client/data_classes/statistics.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_config.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/_constants.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/analysis/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/catalog/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/catalog/classic_model.xlsx +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/catalog/conceptual-imf-data-model.xlsx +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/catalog/hello_world_pump.xlsx +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/exporters/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/importers/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/importers/_rdf/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/_base_unverified.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/conceptual/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/entities/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_constants.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_types.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/entities/_wrapped.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/mapping/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/models/mapping/_classic2core.yaml +0 -0
- /cognite/neat/{v0 → _v0}/core/_data_model/transformers/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/_shared.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/_tracking/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/examples/Knowledge-Graph-Nordic44.xml +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/examples/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_assets.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_data_sets.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_events.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_files.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_labels.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/extractors/_classic_cdf/_timeseries.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/loaders/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/queries/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/queries/_base.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/queries/_queries.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_instances/transformers/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_issues/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_issues/formatters.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_shared.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_store/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_utils/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_utils/io_.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_utils/reader/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_utils/tarjan.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_utils/time_.py +0 -0
- /cognite/neat/{v0 → _v0}/core/_utils/xml_.py +0 -0
- /cognite/neat/{v0/session → _v0}/engine/__init__.py +0 -0
- /cognite/neat/{v0/session → _v0}/engine/_import.py +0 -0
- /cognite/neat/{v0/session → _v0}/engine/_interface.py +0 -0
- /cognite/neat/{v0 → _v0}/plugins/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/plugins/_base.py +0 -0
- /cognite/neat/{v0 → _v0}/session/__init__.py +0 -0
- /cognite/neat/{v0 → _v0}/session/_experimental.py +0 -0
- /cognite/neat/{v0 → _v0}/session/_state/README.md +0 -0
- {cognite_neat-0.128.0.dist-info → cognite_neat-1.0.0.dist-info}/WHEEL +0 -0
- {cognite_neat-0.128.0.dist-info → cognite_neat-1.0.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -24,9 +24,9 @@ from typing import Any, Generic, TypeVar
|
|
|
24
24
|
|
|
25
25
|
from rdflib import PROV, RDF, Literal, URIRef
|
|
26
26
|
|
|
27
|
-
from cognite.neat.
|
|
28
|
-
from cognite.neat.
|
|
29
|
-
from cognite.neat.
|
|
27
|
+
from cognite.neat._v0.core._constants import CDF_NAMESPACE, DEFAULT_NAMESPACE
|
|
28
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
29
|
+
from cognite.neat._v0.core._shared import FrozenNeatObject, NeatList, Triple
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
@dataclass(frozen=True)
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
|
|
5
|
-
from cognite.neat.
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
5
|
+
from cognite.neat._v0.core._data_model.importers import BaseImporter
|
|
6
|
+
from cognite.neat._v0.core._data_model.transformers import VerifiedDataModelTransformer
|
|
7
|
+
from cognite.neat._v0.core._instances.extractors import KnowledgeGraphExtractor
|
|
8
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
9
9
|
|
|
10
10
|
from ._provenance import Activity
|
|
11
11
|
|
|
@@ -11,7 +11,7 @@ from cognite.client.config import global_config
|
|
|
11
11
|
from cognite.client.credentials import CredentialProvider, OAuthClientCredentials, OAuthInteractive, Token
|
|
12
12
|
|
|
13
13
|
from cognite.neat import _version
|
|
14
|
-
from cognite.neat.
|
|
14
|
+
from cognite.neat._v0.core._utils.auxiliary import local_import
|
|
15
15
|
|
|
16
16
|
__all__ = ["EnvironmentVariables", "get_cognite_client"]
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ from typing import Any
|
|
|
11
11
|
|
|
12
12
|
from cognite.client.exceptions import CogniteDuplicatedError, CogniteReadTimeout
|
|
13
13
|
|
|
14
|
-
from cognite.neat.
|
|
14
|
+
from cognite.neat._v0.core._issues.errors._general import NeatImportError
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def local_import(module: str, extra: str) -> ModuleType:
|
|
@@ -2,8 +2,8 @@ from collections import Counter
|
|
|
2
2
|
from collections.abc import Iterable, Sequence
|
|
3
3
|
from typing import TypeVar
|
|
4
4
|
|
|
5
|
-
from cognite.neat.
|
|
6
|
-
from cognite.neat.
|
|
5
|
+
from cognite.neat._v0.core._config import GLOBAL_CONFIG
|
|
6
|
+
from cognite.neat._v0.core._constants import IN_PYODIDE
|
|
7
7
|
|
|
8
8
|
T_Element = TypeVar("T_Element")
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@ from pydantic import HttpUrl, TypeAdapter, ValidationError
|
|
|
8
8
|
from rdflib import Graph, Namespace, URIRef
|
|
9
9
|
from rdflib import Literal as RdfLiteral
|
|
10
10
|
|
|
11
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._constants import SPACE_URI_PATTERN
|
|
12
12
|
|
|
13
13
|
Triple: TypeAlias = tuple[URIRef, URIRef, RdfLiteral | URIRef]
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ from openpyxl import load_workbook
|
|
|
8
8
|
from openpyxl.worksheet.datavalidation import DataValidation
|
|
9
9
|
from openpyxl.worksheet.worksheet import Worksheet
|
|
10
10
|
|
|
11
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._data_model._constants import get_internal_properties
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
@dataclass
|
|
@@ -4,7 +4,7 @@ from collections.abc import Collection, Set
|
|
|
4
4
|
from re import Pattern
|
|
5
5
|
from typing import Any
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._data_model._constants import get_reserved_words
|
|
8
8
|
|
|
9
9
|
PREPOSITIONS = frozenset(
|
|
10
10
|
{
|
|
@@ -3,9 +3,9 @@ from dataclasses import dataclass, field
|
|
|
3
3
|
from functools import total_ordering
|
|
4
4
|
from typing import Any, Generic
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
7
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
8
|
+
from cognite.neat._v0.core._shared import T_ID, NeatList, NeatObject
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@total_ordering
|
|
@@ -12,8 +12,8 @@ from cognite.client import CogniteClient
|
|
|
12
12
|
from packaging.version import Version
|
|
13
13
|
from packaging.version import parse as parse_version
|
|
14
14
|
|
|
15
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
15
16
|
from cognite.neat._version import __engine__
|
|
16
|
-
from cognite.neat.v0.core._issues.errors import NeatValueError
|
|
17
17
|
|
|
18
18
|
ENVIRONMENT_VARIABLE = "NEATENGINE"
|
|
19
19
|
PACKAGE_NAME = "neatengine"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
from typing import Any
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
5
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._data_model.importers._base import BaseImporter
|
|
5
|
+
from cognite.neat._v0.core._data_model.transformers._base import VerifiedDataModelTransformer
|
|
6
6
|
|
|
7
7
|
from ._base import NeatPlugin
|
|
8
8
|
|
|
@@ -37,8 +37,8 @@ class PluginManager:
|
|
|
37
37
|
"""Plugin manager for external plugins."""
|
|
38
38
|
|
|
39
39
|
_plugins_entry_points: ClassVar[dict[str, type[NeatPlugin]]] = {
|
|
40
|
-
"cognite.neat.
|
|
41
|
-
"cognite.neat.
|
|
40
|
+
"cognite.neat._v0.plugins.data_model.importers": DataModelImporterPlugin,
|
|
41
|
+
"cognite.neat._v0.plugins.data_model.transformers": DataModelTransformerPlugin,
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
def __init__(self, plugins: dict[tuple[str, type[NeatPlugin]], Any]) -> None:
|
|
@@ -5,24 +5,25 @@ from cognite.client import CogniteClient
|
|
|
5
5
|
from cognite.client import data_modeling as dm
|
|
6
6
|
|
|
7
7
|
from cognite.neat import _version
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
8
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
9
|
+
from cognite.neat._v0.core._data_model import importers
|
|
10
|
+
from cognite.neat._v0.core._data_model.models import PhysicalDataModel
|
|
11
|
+
from cognite.neat._v0.core._data_model.models.conceptual._verified import (
|
|
12
12
|
ConceptualDataModel,
|
|
13
13
|
)
|
|
14
|
-
from cognite.neat.
|
|
14
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
15
15
|
ConceptualToPhysical,
|
|
16
16
|
MergeConceptualDataModels,
|
|
17
17
|
MergePhysicalDataModels,
|
|
18
18
|
ToDMSCompliantEntities,
|
|
19
19
|
VerifyConceptualDataModel,
|
|
20
20
|
)
|
|
21
|
-
from cognite.neat.
|
|
22
|
-
from cognite.neat.
|
|
23
|
-
from cognite.neat.
|
|
24
|
-
from cognite.neat.
|
|
25
|
-
from cognite.neat.
|
|
21
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
22
|
+
from cognite.neat._v0.core._issues.errors import RegexViolationError
|
|
23
|
+
from cognite.neat._v0.core._issues.errors._general import NeatImportError
|
|
24
|
+
from cognite.neat._v0.core._store._data_model import DataModelEntity
|
|
25
|
+
from cognite.neat._v0.core._utils.auxiliary import local_import
|
|
26
|
+
from cognite.neat._v0.engine import load_neat_engine
|
|
26
27
|
|
|
27
28
|
from ._collector import _COLLECTOR, Collector
|
|
28
29
|
from ._diff import DiffAPI
|
|
@@ -40,7 +41,6 @@ from ._state import SessionState
|
|
|
40
41
|
from ._subset import SubsetAPI
|
|
41
42
|
from ._template import TemplateAPI
|
|
42
43
|
from ._to import ToAPI
|
|
43
|
-
from .engine import load_neat_engine
|
|
44
44
|
from .exceptions import session_class_wrapper
|
|
45
45
|
|
|
46
46
|
|
|
@@ -10,8 +10,8 @@ from typing import Any
|
|
|
10
10
|
|
|
11
11
|
from mixpanel import Consumer, Mixpanel # type: ignore[import-untyped]
|
|
12
12
|
|
|
13
|
+
from cognite.neat._v0.core._constants import IN_NOTEBOOK, IN_PYODIDE
|
|
13
14
|
from cognite.neat._version import __version__
|
|
14
|
-
from cognite.neat.v0.core._constants import IN_NOTEBOOK, IN_PYODIDE
|
|
15
15
|
|
|
16
16
|
_NEAT_MIXPANEL_TOKEN: str = "bd630ad149d19999df3989c3a3750c4f"
|
|
17
17
|
|
|
@@ -5,9 +5,9 @@ from typing import Literal
|
|
|
5
5
|
from cognite.client.utils.useful_types import SequenceNotStr
|
|
6
6
|
from rdflib import URIRef
|
|
7
7
|
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
8
|
+
from cognite.neat._v0.core._constants import COGNITE_MODELS
|
|
9
|
+
from cognite.neat._v0.core._data_model.transformers import DropModelViews
|
|
10
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
11
11
|
|
|
12
12
|
from ._state import SessionState
|
|
13
13
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -3,8 +3,8 @@ from typing import cast
|
|
|
3
3
|
import pandas as pd
|
|
4
4
|
from rdflib import URIRef
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._utils.rdf_ import remove_namespace_from_uri
|
|
7
|
+
from cognite.neat._v0.core._utils.text import humanize_collection
|
|
8
8
|
|
|
9
9
|
from ._state import SessionState
|
|
10
10
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from cognite.neat.
|
|
1
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
2
2
|
ToCompliantEntities,
|
|
3
3
|
)
|
|
4
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._issues._base import IssueList
|
|
5
5
|
|
|
6
6
|
from ._state import SessionState
|
|
7
7
|
from .exceptions import session_class_wrapper
|
|
@@ -4,9 +4,9 @@ from typing import Literal, overload
|
|
|
4
4
|
|
|
5
5
|
import pandas as pd
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._constants import IN_NOTEBOOK
|
|
8
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
9
|
+
from cognite.neat._v0.core._utils.upload import (
|
|
10
10
|
UploadResult,
|
|
11
11
|
UploadResultCore,
|
|
12
12
|
UploadResultList,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from cognite.neat.
|
|
2
|
-
from cognite.neat.
|
|
1
|
+
from cognite.neat._v0.core._data_model.models.mapping import load_classic_to_core_mapping
|
|
2
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
3
3
|
AsParentPropertyId,
|
|
4
4
|
ChangeViewPrefix,
|
|
5
5
|
IncludeReferenced,
|
|
6
6
|
PhysicalDataModelMapper,
|
|
7
7
|
VerifiedDataModelTransformer,
|
|
8
8
|
)
|
|
9
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
10
10
|
|
|
11
11
|
from ._state import SessionState
|
|
12
12
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -2,10 +2,10 @@ import warnings
|
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
-
from cognite.neat.
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
5
|
+
from cognite.neat._v0.core._issues._base import IssueList
|
|
6
|
+
from cognite.neat._v0.core._utils.reader._base import NeatReader
|
|
7
|
+
from cognite.neat._v0.plugins import DataModelImporterPlugin, get_plugin_manager
|
|
8
|
+
from cognite.neat._v0.session._experimental import ExperimentalFlags
|
|
9
9
|
|
|
10
10
|
from ._state import SessionState
|
|
11
11
|
from .exceptions import session_class_wrapper
|
|
@@ -4,19 +4,19 @@ from typing import Any
|
|
|
4
4
|
|
|
5
5
|
from rdflib import URIRef
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._data_model.transformers import PrefixEntities, StandardizeNaming
|
|
8
|
+
from cognite.neat._v0.core._data_model.transformers._converters import StandardizeSpaceAndVersion
|
|
9
|
+
from cognite.neat._v0.core._instances.transformers import (
|
|
10
10
|
ConnectionToLiteral,
|
|
11
11
|
ConvertLiteral,
|
|
12
12
|
LiteralToEntity,
|
|
13
13
|
RelationshipAsEdgeTransformer,
|
|
14
14
|
)
|
|
15
|
-
from cognite.neat.
|
|
16
|
-
from cognite.neat.
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
15
|
+
from cognite.neat._v0.core._instances.transformers._rdfpath import MakeConnectionOnExactMatch
|
|
16
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
17
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
18
|
+
from cognite.neat._v0.core._utils.text import humanize_collection
|
|
19
|
+
from cognite.neat._v0.session._experimental import ExperimentalFlags
|
|
20
20
|
|
|
21
21
|
from ._state import SessionState
|
|
22
22
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -6,44 +6,44 @@ from cognite.client.data_classes.data_modeling import DataModelId, DataModelIden
|
|
|
6
6
|
from cognite.client.utils.useful_types import SequenceNotStr
|
|
7
7
|
from rdflib import URIRef
|
|
8
8
|
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
10
|
+
from cognite.neat._v0.core._constants import (
|
|
11
11
|
CLASSIC_CDF_NAMESPACE,
|
|
12
12
|
NAMED_GRAPH_NAMESPACE,
|
|
13
13
|
get_default_prefixes_and_namespaces,
|
|
14
14
|
)
|
|
15
|
-
from cognite.neat.
|
|
16
|
-
from cognite.neat.
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
from cognite.neat.
|
|
15
|
+
from cognite.neat._v0.core._data_model import catalog, importers
|
|
16
|
+
from cognite.neat._v0.core._data_model._constants import SPACE_COMPLIANCE_REGEX
|
|
17
|
+
from cognite.neat._v0.core._data_model.importers import BaseImporter
|
|
18
|
+
from cognite.neat._v0.core._data_model.models.entities._single_value import ViewEntity
|
|
19
|
+
from cognite.neat._v0.core._data_model.transformers import ClassicPrepareCore
|
|
20
|
+
from cognite.neat._v0.core._data_model.transformers._converters import (
|
|
21
21
|
ToEnterpriseModel,
|
|
22
22
|
_SubsetEditableCDMPhysicalDataModel,
|
|
23
23
|
)
|
|
24
|
-
from cognite.neat.
|
|
25
|
-
from cognite.neat.
|
|
26
|
-
from cognite.neat.
|
|
27
|
-
from cognite.neat.
|
|
24
|
+
from cognite.neat._v0.core._instances import examples as instances_examples
|
|
25
|
+
from cognite.neat._v0.core._instances import extractors
|
|
26
|
+
from cognite.neat._v0.core._instances.extractors._classic_cdf._base import InstanceIdPrefix
|
|
27
|
+
from cognite.neat._v0.core._instances.transformers import (
|
|
28
28
|
ConvertLiteral,
|
|
29
29
|
LiteralToEntity,
|
|
30
30
|
Transformers,
|
|
31
31
|
)
|
|
32
|
-
from cognite.neat.
|
|
32
|
+
from cognite.neat._v0.core._instances.transformers._prune_graph import (
|
|
33
33
|
AttachPropertyFromTargetToSource,
|
|
34
34
|
PruneDeadEndEdges,
|
|
35
35
|
PruneInstancesOfUnknownType,
|
|
36
36
|
PruneTypes,
|
|
37
37
|
)
|
|
38
|
-
from cognite.neat.
|
|
39
|
-
from cognite.neat.
|
|
40
|
-
from cognite.neat.
|
|
41
|
-
from cognite.neat.
|
|
42
|
-
from cognite.neat.
|
|
38
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
39
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
40
|
+
from cognite.neat._v0.core._issues.warnings import MissingCogniteClientWarning
|
|
41
|
+
from cognite.neat._v0.core._utils.reader import NeatReader
|
|
42
|
+
from cognite.neat._v0.engine import import_engine
|
|
43
|
+
from cognite.neat._v0.session._experimental import ExperimentalFlags
|
|
43
44
|
|
|
44
45
|
from ._state import SessionState
|
|
45
46
|
from ._wizard import NeatObjectType, RDFFileType, XMLFileType, object_wizard, rdf_dm_wizard, xml_format_wizard
|
|
46
|
-
from .engine import import_engine
|
|
47
47
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
48
48
|
|
|
49
49
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
from cognite.client import CogniteClient
|
|
2
2
|
from cognite.client import data_modeling as dm
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
5
|
-
from cognite.neat.
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
5
|
+
from cognite.neat._v0.core._constants import COGNITE_MODELS
|
|
6
|
+
from cognite.neat._v0.core._data_model.models import PhysicalDataModel
|
|
7
|
+
from cognite.neat._v0.core._data_model.transformers import SetIDDMSModel
|
|
8
|
+
from cognite.neat._v0.core._instances.transformers import SetType
|
|
9
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
10
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
11
|
+
from cognite.neat._v0.core._utils.text import humanize_collection
|
|
12
12
|
|
|
13
13
|
from ._state import SessionState
|
|
14
14
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -6,11 +6,11 @@ import networkx as nx
|
|
|
6
6
|
from IPython.display import HTML, display
|
|
7
7
|
from pyvis.network import Network as PyVisNetwork # type: ignore
|
|
8
8
|
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat._v0.core._constants import IN_NOTEBOOK, IN_PYODIDE
|
|
10
|
+
from cognite.neat._v0.core._data_model.analysis._base import DataModelAnalysis
|
|
11
|
+
from cognite.neat._v0.core._utils.io_ import to_directory_compatible
|
|
12
|
+
from cognite.neat._v0.core._utils.rdf_ import remove_namespace_from_uri, uri_display_name
|
|
13
|
+
from cognite.neat._v0.session.exceptions import NeatSessionError
|
|
14
14
|
|
|
15
15
|
from ._state import SessionState
|
|
16
16
|
from .exceptions import session_class_wrapper
|
|
@@ -3,18 +3,18 @@ from typing import Literal, cast
|
|
|
3
3
|
|
|
4
4
|
from rdflib import URIRef
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
7
|
+
from cognite.neat._v0.core._data_model.importers import BaseImporter, InferenceImporter
|
|
8
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel, PhysicalDataModel
|
|
9
|
+
from cognite.neat._v0.core._data_model.models.conceptual._validation import ConceptualValidation
|
|
10
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
11
11
|
VerifiedDataModelTransformer,
|
|
12
12
|
)
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
15
|
-
from cognite.neat.
|
|
16
|
-
from cognite.neat.
|
|
17
|
-
from cognite.neat.
|
|
13
|
+
from cognite.neat._v0.core._instances.extractors import KnowledgeGraphExtractor
|
|
14
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
15
|
+
from cognite.neat._v0.core._issues.warnings._models import ConversionToPhysicalModelImpossibleWarning
|
|
16
|
+
from cognite.neat._v0.core._store import NeatDataModelStore, NeatInstanceStore
|
|
17
|
+
from cognite.neat._v0.core._utils.upload import UploadResultList
|
|
18
18
|
|
|
19
19
|
from .exceptions import NeatSessionError, _session_method_wrapper
|
|
20
20
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import warnings
|
|
2
2
|
|
|
3
|
-
from cognite.neat.
|
|
3
|
+
from cognite.neat._v0.core._data_model.models.entities._single_value import (
|
|
4
4
|
ConceptEntity,
|
|
5
5
|
ViewEntity,
|
|
6
6
|
)
|
|
7
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
8
8
|
SubsetConceptualDataModel,
|
|
9
9
|
SubsetPhysicalDataModel,
|
|
10
10
|
)
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._issues._base import IssueList
|
|
12
|
+
from cognite.neat._v0.session._experimental import ExperimentalFlags
|
|
13
13
|
|
|
14
14
|
from ._state import SessionState
|
|
15
15
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -3,23 +3,23 @@ from typing import Any, Literal
|
|
|
3
3
|
|
|
4
4
|
from cognite.client.data_classes.data_modeling import DataModelIdentifier
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._constants import BASE_MODEL
|
|
7
|
+
from cognite.neat._v0.core._data_model._shared import ImportedDataModel
|
|
8
|
+
from cognite.neat._v0.core._data_model.exporters import ExcelExporter
|
|
9
|
+
from cognite.neat._v0.core._data_model.importers import ExcelImporter
|
|
10
|
+
from cognite.neat._v0.core._data_model.models import UnverifiedConceptualDataModel
|
|
11
|
+
from cognite.neat._v0.core._data_model.models._base_verified import RoleTypes
|
|
12
|
+
from cognite.neat._v0.core._data_model.models.physical import PhysicalValidation
|
|
13
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
14
14
|
AddCogniteProperties,
|
|
15
15
|
IncludeReferenced,
|
|
16
16
|
ToDataProductModel,
|
|
17
17
|
ToEnterpriseModel,
|
|
18
18
|
VerifiedDataModelTransformer,
|
|
19
19
|
)
|
|
20
|
-
from cognite.neat.
|
|
21
|
-
from cognite.neat.
|
|
22
|
-
from cognite.neat.
|
|
20
|
+
from cognite.neat._v0.core._issues import IssueList, catch_issues
|
|
21
|
+
from cognite.neat._v0.core._utils.reader import NeatReader, PathReader
|
|
22
|
+
from cognite.neat._v0.session._experimental import ExperimentalFlags
|
|
23
23
|
|
|
24
24
|
from ._state import SessionState
|
|
25
25
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -6,18 +6,18 @@ from typing import Any, Literal, cast, overload
|
|
|
6
6
|
from cognite.client import data_modeling as dm
|
|
7
7
|
from cognite.client.data_classes.data_modeling import DataModelIdentifier
|
|
8
8
|
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
15
|
-
from cognite.neat.
|
|
16
|
-
from cognite.neat.
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat._v0.core._client._api_client import NeatClient
|
|
10
|
+
from cognite.neat._v0.core._constants import COGNITE_MODELS
|
|
11
|
+
from cognite.neat._v0.core._data_model import exporters
|
|
12
|
+
from cognite.neat._v0.core._data_model._constants import PATTERNS
|
|
13
|
+
from cognite.neat._v0.core._data_model._shared import VerifiedDataModel
|
|
14
|
+
from cognite.neat._v0.core._data_model.importers import DMSImporter
|
|
15
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel, PhysicalDataModel
|
|
16
|
+
from cognite.neat._v0.core._data_model.models.physical import PhysicalMetadata
|
|
17
|
+
from cognite.neat._v0.core._instances import loaders
|
|
18
|
+
from cognite.neat._v0.core._issues import IssueList, NeatIssue, catch_issues
|
|
19
|
+
from cognite.neat._v0.core._utils.upload import UploadResultList
|
|
20
|
+
from cognite.neat._v0.session._experimental import ExperimentalFlags
|
|
21
21
|
|
|
22
22
|
from ._state import SessionState
|
|
23
23
|
from .exceptions import NeatSessionError, session_class_wrapper
|
|
@@ -3,7 +3,7 @@ from typing import Literal, TypeVar, get_args
|
|
|
3
3
|
|
|
4
4
|
from rich.prompt import IntPrompt, Prompt
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._data_model._constants import PATTERNS
|
|
7
7
|
|
|
8
8
|
RDFFileType = Literal["Ontology", "IMF Types", "Inference"]
|
|
9
9
|
NeatObjectType = Literal["Data Model", "Instances"]
|
|
@@ -3,11 +3,11 @@ import warnings
|
|
|
3
3
|
from collections.abc import Callable
|
|
4
4
|
from typing import Any, TypeVar
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._issues.errors import CDFMissingClientError, NeatImportError
|
|
7
|
+
from cognite.neat._v0.core._issues.errors._external import OxigraphStorageLockedError
|
|
8
|
+
from cognite.neat._v0.core._issues.errors._general import NeatValueError, WillExceedLimitError
|
|
9
|
+
from cognite.neat._v0.plugins._issues import PluginError
|
|
10
|
+
from cognite.neat._v0.session._experimental import ExperimentalFeatureWarning
|
|
11
11
|
|
|
12
12
|
from ._collector import _COLLECTOR
|
|
13
13
|
|
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "1.0.0"
|
|
2
2
|
__engine__ = "^2.0.4"
|
cognite/neat/legacy.py
ADDED