cognite-neat 0.128.1__py3-none-any.whl → 1.0.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.
- cognite/neat/__init__.py +4 -3
- 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 +4 -4
- cognite/neat/_session/_usage_analytics/_collector.py +2 -2
- 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-1.0.1.dist-info/METADATA +111 -0
- cognite_neat-1.0.1.dist-info/RECORD +318 -0
- cognite/neat/_session/_opt.py +0 -35
- cognite/neat/v1.py +0 -4
- cognite_neat-0.128.1.dist-info/METADATA +0 -145
- cognite_neat-0.128.1.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.1.dist-info → cognite_neat-1.0.1.dist-info}/WHEEL +0 -0
- {cognite_neat-0.128.1.dist-info → cognite_neat-1.0.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -14,25 +14,25 @@ from cognite.client.data_classes.data_modeling.views import (
|
|
|
14
14
|
ViewPropertyApply,
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
from cognite.neat.
|
|
17
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
18
|
+
from cognite.neat._v0.core._client.data_classes.data_modeling import ViewApplyDict
|
|
19
|
+
from cognite.neat._v0.core._client.data_classes.schema import DMSSchema
|
|
20
|
+
from cognite.neat._v0.core._constants import (
|
|
21
21
|
COGNITE_MODELS,
|
|
22
22
|
COGNITE_SPACES,
|
|
23
23
|
DMS_CONTAINER_PROPERTY_SIZE_LIMIT,
|
|
24
24
|
DMS_VIEW_CONTAINER_SIZE_LIMIT,
|
|
25
25
|
get_base_concepts,
|
|
26
26
|
)
|
|
27
|
-
from cognite.neat.
|
|
28
|
-
from cognite.neat.
|
|
29
|
-
from cognite.neat.
|
|
30
|
-
from cognite.neat.
|
|
27
|
+
from cognite.neat._v0.core._data_model.models._import_contexts import ImportContext, SpreadsheetContext
|
|
28
|
+
from cognite.neat._v0.core._data_model.models.data_types import DataType
|
|
29
|
+
from cognite.neat._v0.core._data_model.models.entities import ContainerEntity, RawFilter
|
|
30
|
+
from cognite.neat._v0.core._data_model.models.entities._single_value import (
|
|
31
31
|
ContainerIndexEntity,
|
|
32
32
|
ViewEntity,
|
|
33
33
|
)
|
|
34
|
-
from cognite.neat.
|
|
35
|
-
from cognite.neat.
|
|
34
|
+
from cognite.neat._v0.core._issues import IssueList, NeatError
|
|
35
|
+
from cognite.neat._v0.core._issues.errors import (
|
|
36
36
|
CDFMissingClientError,
|
|
37
37
|
PropertyDefinitionDuplicatedError,
|
|
38
38
|
PropertyInvalidDefinitionError,
|
|
@@ -42,21 +42,21 @@ from cognite.neat.v0.core._issues.errors import (
|
|
|
42
42
|
ResourceNotFoundError,
|
|
43
43
|
ReversedConnectionNotFeasibleError,
|
|
44
44
|
)
|
|
45
|
-
from cognite.neat.
|
|
46
|
-
from cognite.neat.
|
|
45
|
+
from cognite.neat._v0.core._issues.errors._external import CDFMissingResourcesError
|
|
46
|
+
from cognite.neat._v0.core._issues.warnings import (
|
|
47
47
|
NotSupportedHasDataFilterLimitWarning,
|
|
48
48
|
NotSupportedViewContainerLimitWarning,
|
|
49
49
|
ReversedConnectionNotFeasibleWarning,
|
|
50
50
|
UndefinedViewWarning,
|
|
51
51
|
user_modeling,
|
|
52
52
|
)
|
|
53
|
-
from cognite.neat.
|
|
54
|
-
from cognite.neat.
|
|
53
|
+
from cognite.neat._v0.core._issues.warnings._models import ViewWithoutPropertiesWarning
|
|
54
|
+
from cognite.neat._v0.core._issues.warnings.user_modeling import (
|
|
55
55
|
ContainerPropertyLimitWarning,
|
|
56
56
|
DirectRelationMissingSourceWarning,
|
|
57
57
|
NotNeatSupportedFilterWarning,
|
|
58
58
|
)
|
|
59
|
-
from cognite.neat.
|
|
59
|
+
from cognite.neat._v0.core._utils.text import humanize_collection
|
|
60
60
|
|
|
61
61
|
from ._verified import PhysicalDataModel, PhysicalProperty
|
|
62
62
|
|
|
@@ -87,7 +87,7 @@ class PhysicalValidation:
|
|
|
87
87
|
context: ImportContext | None = None,
|
|
88
88
|
) -> None:
|
|
89
89
|
# import here to avoid circular import issues
|
|
90
|
-
from cognite.neat.
|
|
90
|
+
from cognite.neat._v0.core._data_model.analysis._base import DataModelAnalysis
|
|
91
91
|
|
|
92
92
|
self._data_model = data_model
|
|
93
93
|
self._client = client
|
|
@@ -8,10 +8,10 @@ from cognite.client import data_modeling as dm
|
|
|
8
8
|
from pydantic import Field, field_serializer, field_validator, model_validator
|
|
9
9
|
from pydantic_core.core_schema import SerializationInfo, ValidationInfo
|
|
10
10
|
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._client.data_classes.schema import DMSSchema
|
|
12
|
+
from cognite.neat._v0.core._constants import DMS_CONTAINER_LIST_MAX_LIMIT
|
|
13
|
+
from cognite.neat._v0.core._data_model._constants import CONSTRAINT_ID_MAX_LENGTH
|
|
14
|
+
from cognite.neat._v0.core._data_model.models._base_verified import (
|
|
15
15
|
BaseVerifiedDataModel,
|
|
16
16
|
BaseVerifiedMetadata,
|
|
17
17
|
ContainerProperty,
|
|
@@ -22,15 +22,15 @@ from cognite.neat.v0.core._data_model.models._base_verified import (
|
|
|
22
22
|
ViewProperty,
|
|
23
23
|
ViewRef,
|
|
24
24
|
)
|
|
25
|
-
from cognite.neat.
|
|
25
|
+
from cognite.neat._v0.core._data_model.models._types import (
|
|
26
26
|
ConceptEntityType,
|
|
27
27
|
ContainerEntityType,
|
|
28
28
|
PhysicalPropertyType,
|
|
29
29
|
URIRefType,
|
|
30
30
|
ViewEntityType,
|
|
31
31
|
)
|
|
32
|
-
from cognite.neat.
|
|
33
|
-
from cognite.neat.
|
|
32
|
+
from cognite.neat._v0.core._data_model.models.data_types import DataType
|
|
33
|
+
from cognite.neat._v0.core._data_model.models.entities import (
|
|
34
34
|
ConceptualEntity,
|
|
35
35
|
ContainerIndexEntity,
|
|
36
36
|
DMSNodeEntity,
|
|
@@ -45,15 +45,15 @@ from cognite.neat.v0.core._data_model.models.entities import (
|
|
|
45
45
|
ViewEntity,
|
|
46
46
|
ViewEntityList,
|
|
47
47
|
)
|
|
48
|
-
from cognite.neat.
|
|
48
|
+
from cognite.neat._v0.core._data_model.models.entities._types import (
|
|
49
49
|
ContainerConstraintListType,
|
|
50
50
|
ContainerIndexListType,
|
|
51
51
|
)
|
|
52
|
-
from cognite.neat.
|
|
53
|
-
from cognite.neat.
|
|
52
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
53
|
+
from cognite.neat._v0.core._issues.warnings import NeatValueWarning, PropertyDefinitionWarning
|
|
54
54
|
|
|
55
55
|
if TYPE_CHECKING:
|
|
56
|
-
from cognite.neat.
|
|
56
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel
|
|
57
57
|
|
|
58
58
|
_DEFAULT_VERSION = "1"
|
|
59
59
|
|
|
@@ -4,17 +4,17 @@ from functools import lru_cache
|
|
|
4
4
|
from types import UnionType
|
|
5
5
|
from typing import Generic, TypeVar, Union, get_args, get_origin
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._constants import DEFAULT_NAMESPACE
|
|
8
|
+
from cognite.neat._v0.core._data_model._shared import (
|
|
9
9
|
DataModel,
|
|
10
10
|
ImportedDataModel,
|
|
11
11
|
VerifiedDataModel,
|
|
12
12
|
)
|
|
13
|
-
from cognite.neat.
|
|
13
|
+
from cognite.neat._v0.core._data_model.models import (
|
|
14
14
|
UnverifiedConceptualDataModel,
|
|
15
15
|
UnverifiedPhysicalDataModel,
|
|
16
16
|
)
|
|
17
|
-
from cognite.neat.
|
|
17
|
+
from cognite.neat._v0.core._store._provenance import Agent as ProvenanceAgent
|
|
18
18
|
|
|
19
19
|
T_DataModelIn = TypeVar("T_DataModelIn", bound=DataModel)
|
|
20
20
|
T_DataModelOut = TypeVar("T_DataModelOut", bound=DataModel)
|
|
@@ -16,12 +16,12 @@ from cognite.client.utils.useful_types import SequenceNotStr
|
|
|
16
16
|
from pydantic import ValidationError
|
|
17
17
|
from rdflib import Namespace
|
|
18
18
|
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
from cognite.neat.
|
|
19
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
20
|
+
from cognite.neat._v0.core._client.data_classes.data_modeling import (
|
|
21
21
|
ContainerApplyDict,
|
|
22
22
|
ViewApplyDict,
|
|
23
23
|
)
|
|
24
|
-
from cognite.neat.
|
|
24
|
+
from cognite.neat._v0.core._constants import (
|
|
25
25
|
COGNITE_CONCEPTS,
|
|
26
26
|
COGNITE_MODELS,
|
|
27
27
|
COGNITE_SPACES,
|
|
@@ -29,16 +29,16 @@ from cognite.neat.v0.core._constants import (
|
|
|
29
29
|
DMS_RESERVED_PROPERTIES,
|
|
30
30
|
get_default_prefixes_and_namespaces,
|
|
31
31
|
)
|
|
32
|
-
from cognite.neat.
|
|
33
|
-
from cognite.neat.
|
|
32
|
+
from cognite.neat._v0.core._data_model._constants import CONSTRAINT_ID_MAX_LENGTH, PATTERNS, get_reserved_words
|
|
33
|
+
from cognite.neat._v0.core._data_model._shared import (
|
|
34
34
|
ImportContext,
|
|
35
35
|
ImportedDataModel,
|
|
36
36
|
ImportedUnverifiedDataModel,
|
|
37
37
|
VerifiedDataModel,
|
|
38
38
|
)
|
|
39
|
-
from cognite.neat.
|
|
40
|
-
from cognite.neat.
|
|
41
|
-
from cognite.neat.
|
|
39
|
+
from cognite.neat._v0.core._data_model.analysis import DataModelAnalysis
|
|
40
|
+
from cognite.neat._v0.core._data_model.importers import DMSImporter
|
|
41
|
+
from cognite.neat._v0.core._data_model.models import (
|
|
42
42
|
ConceptualDataModel,
|
|
43
43
|
PhysicalDataModel,
|
|
44
44
|
SheetList,
|
|
@@ -46,14 +46,14 @@ from cognite.neat.v0.core._data_model.models import (
|
|
|
46
46
|
UnverifiedPhysicalDataModel,
|
|
47
47
|
data_types,
|
|
48
48
|
)
|
|
49
|
-
from cognite.neat.
|
|
49
|
+
from cognite.neat._v0.core._data_model.models.conceptual import (
|
|
50
50
|
Concept,
|
|
51
51
|
ConceptualMetadata,
|
|
52
52
|
ConceptualProperty,
|
|
53
53
|
UnverifiedConcept,
|
|
54
54
|
UnverifiedConceptualProperty,
|
|
55
55
|
)
|
|
56
|
-
from cognite.neat.
|
|
56
|
+
from cognite.neat._v0.core._data_model.models.data_types import (
|
|
57
57
|
AnyURI,
|
|
58
58
|
DataType,
|
|
59
59
|
Enum,
|
|
@@ -61,7 +61,7 @@ from cognite.neat.v0.core._data_model.models.data_types import (
|
|
|
61
61
|
String,
|
|
62
62
|
Timeseries,
|
|
63
63
|
)
|
|
64
|
-
from cognite.neat.
|
|
64
|
+
from cognite.neat._v0.core._data_model.models.entities import (
|
|
65
65
|
ConceptEntity,
|
|
66
66
|
ContainerEntity,
|
|
67
67
|
EdgeEntity,
|
|
@@ -72,30 +72,30 @@ from cognite.neat.v0.core._data_model.models.entities import (
|
|
|
72
72
|
UnknownEntity,
|
|
73
73
|
ViewEntity,
|
|
74
74
|
)
|
|
75
|
-
from cognite.neat.
|
|
76
|
-
from cognite.neat.
|
|
75
|
+
from cognite.neat._v0.core._data_model.models.entities._single_value import ContainerConstraintEntity
|
|
76
|
+
from cognite.neat._v0.core._data_model.models.physical import (
|
|
77
77
|
PhysicalMetadata,
|
|
78
78
|
PhysicalProperty,
|
|
79
79
|
PhysicalValidation,
|
|
80
80
|
PhysicalView,
|
|
81
81
|
)
|
|
82
|
-
from cognite.neat.
|
|
82
|
+
from cognite.neat._v0.core._data_model.models.physical._verified import (
|
|
83
83
|
PhysicalContainer,
|
|
84
84
|
PhysicalEnum,
|
|
85
85
|
PhysicalNodeType,
|
|
86
86
|
)
|
|
87
|
-
from cognite.neat.
|
|
88
|
-
from cognite.neat.
|
|
89
|
-
from cognite.neat.
|
|
90
|
-
from cognite.neat.
|
|
87
|
+
from cognite.neat._v0.core._issues import IssueList
|
|
88
|
+
from cognite.neat._v0.core._issues._factory import from_pydantic_errors
|
|
89
|
+
from cognite.neat._v0.core._issues.errors import CDFMissingClientError, NeatValueError
|
|
90
|
+
from cognite.neat._v0.core._issues.warnings import (
|
|
91
91
|
NeatValueWarning,
|
|
92
92
|
PropertyOverwritingWarning,
|
|
93
93
|
)
|
|
94
|
-
from cognite.neat.
|
|
94
|
+
from cognite.neat._v0.core._issues.warnings._models import (
|
|
95
95
|
SolutionModelBuildOnTopOfCDMWarning,
|
|
96
96
|
)
|
|
97
|
-
from cognite.neat.
|
|
98
|
-
from cognite.neat.
|
|
97
|
+
from cognite.neat._v0.core._utils.rdf_ import get_inheritance_path
|
|
98
|
+
from cognite.neat._v0.core._utils.text import (
|
|
99
99
|
NamingStandardization,
|
|
100
100
|
humanize_collection,
|
|
101
101
|
title,
|
|
@@ -1438,7 +1438,7 @@ class _ConceptualDataModelConverter:
|
|
|
1438
1438
|
ignore_undefined_value_types: bool = False,
|
|
1439
1439
|
reserved_properties: Literal["error", "warning"] = "error",
|
|
1440
1440
|
) -> "PhysicalDataModel":
|
|
1441
|
-
from cognite.neat.
|
|
1441
|
+
from cognite.neat._v0.core._data_model.models.physical._verified import (
|
|
1442
1442
|
PhysicalContainer,
|
|
1443
1443
|
PhysicalDataModel,
|
|
1444
1444
|
PhysicalProperty,
|
|
@@ -1657,7 +1657,7 @@ class _ConceptualDataModelConverter:
|
|
|
1657
1657
|
|
|
1658
1658
|
@classmethod
|
|
1659
1659
|
def _convert_conceptual_to_physical_metadata(cls, metadata: ConceptualMetadata) -> "PhysicalMetadata":
|
|
1660
|
-
from cognite.neat.
|
|
1660
|
+
from cognite.neat._v0.core._data_model.models.physical._verified import (
|
|
1661
1661
|
PhysicalMetadata,
|
|
1662
1662
|
)
|
|
1663
1663
|
|
|
@@ -1683,7 +1683,7 @@ class _ConceptualDataModelConverter:
|
|
|
1683
1683
|
edge_value_types_by_concept_property_pair: dict[tuple[ConceptEntity, str], ConceptEntity],
|
|
1684
1684
|
end_node_by_edge: dict[ConceptEntity, ConceptEntity],
|
|
1685
1685
|
) -> "PhysicalProperty":
|
|
1686
|
-
from cognite.neat.
|
|
1686
|
+
from cognite.neat._v0.core._data_model.models.physical._verified import PhysicalProperty
|
|
1687
1687
|
|
|
1688
1688
|
# returns property type, which can be ObjectProperty or DatatypeProperty
|
|
1689
1689
|
value_type = self._get_value_type(
|
|
@@ -2019,7 +2019,7 @@ class _PhysicalDataModelConverter:
|
|
|
2019
2019
|
def as_conceptual_data_model(
|
|
2020
2020
|
self,
|
|
2021
2021
|
) -> "ConceptualDataModel":
|
|
2022
|
-
from cognite.neat.
|
|
2022
|
+
from cognite.neat._v0.core._data_model.models.conceptual._verified import (
|
|
2023
2023
|
Concept,
|
|
2024
2024
|
ConceptualDataModel,
|
|
2025
2025
|
ConceptualProperty,
|
|
@@ -2097,7 +2097,7 @@ class _PhysicalDataModelConverter:
|
|
|
2097
2097
|
|
|
2098
2098
|
@classmethod
|
|
2099
2099
|
def _convert_physical_to_conceptual_metadata(cls, metadata: PhysicalMetadata) -> "ConceptualMetadata":
|
|
2100
|
-
from cognite.neat.
|
|
2100
|
+
from cognite.neat._v0.core._data_model.models.conceptual._verified import (
|
|
2101
2101
|
ConceptualMetadata,
|
|
2102
2102
|
)
|
|
2103
2103
|
|
|
@@ -5,25 +5,25 @@ from typing import Any, ClassVar, Literal
|
|
|
5
5
|
|
|
6
6
|
from cognite.client import data_modeling as dm
|
|
7
7
|
|
|
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.models import PhysicalDataModel, SheetList
|
|
10
|
+
from cognite.neat._v0.core._data_model.models.data_types import Enum
|
|
11
|
+
from cognite.neat._v0.core._data_model.models.entities import (
|
|
12
12
|
ConceptEntity,
|
|
13
13
|
ContainerEntity,
|
|
14
14
|
ViewEntity,
|
|
15
15
|
)
|
|
16
|
-
from cognite.neat.
|
|
16
|
+
from cognite.neat._v0.core._data_model.models.physical import (
|
|
17
17
|
PhysicalContainer,
|
|
18
18
|
PhysicalEnum,
|
|
19
19
|
PhysicalProperty,
|
|
20
20
|
)
|
|
21
|
-
from cognite.neat.
|
|
21
|
+
from cognite.neat._v0.core._issues.errors import (
|
|
22
22
|
CDFMissingClientError,
|
|
23
23
|
NeatValueError,
|
|
24
24
|
ResourceNotFoundError,
|
|
25
25
|
)
|
|
26
|
-
from cognite.neat.
|
|
26
|
+
from cognite.neat._v0.core._issues.warnings import PropertyOverwritingWarning
|
|
27
27
|
|
|
28
28
|
from ._base import VerifiedDataModelTransformer
|
|
29
29
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
from collections.abc import Iterable, Set
|
|
2
2
|
from typing import Literal
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
5
|
-
from cognite.neat.
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel, SheetList
|
|
5
|
+
from cognite.neat._v0.core._data_model.models.conceptual import Concept, ConceptualProperty
|
|
6
|
+
from cognite.neat._v0.core._data_model.models.data_types import DataType
|
|
7
|
+
from cognite.neat._v0.core._data_model.models.entities import (
|
|
8
8
|
ConceptEntity,
|
|
9
9
|
MultiValueTypeInfo,
|
|
10
10
|
UnknownEntity,
|
|
11
11
|
)
|
|
12
|
-
from cognite.neat.
|
|
12
|
+
from cognite.neat._v0.core._data_model.transformers import VerifiedDataModelTransformer
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class UnionConceptualDataModel(VerifiedDataModelTransformer[ConceptualDataModel, ConceptualDataModel]):
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
from abc import ABC
|
|
2
2
|
from typing import cast
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
5
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
5
|
+
from cognite.neat._v0.core._data_model._shared import (
|
|
6
6
|
ImportedDataModel,
|
|
7
7
|
T_ImportedUnverifiedDataModel,
|
|
8
8
|
T_VerifiedDataModel,
|
|
9
9
|
VerifiedDataModel,
|
|
10
10
|
)
|
|
11
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._data_model.models import (
|
|
12
12
|
ConceptualDataModel,
|
|
13
13
|
PhysicalDataModel,
|
|
14
14
|
UnverifiedConceptualDataModel,
|
|
15
15
|
UnverifiedPhysicalDataModel,
|
|
16
16
|
)
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
from cognite.neat.
|
|
17
|
+
from cognite.neat._v0.core._data_model.models.conceptual import ConceptualValidation
|
|
18
|
+
from cognite.neat._v0.core._data_model.models.physical import PhysicalValidation
|
|
19
|
+
from cognite.neat._v0.core._issues import MultiValueError, catch_issues
|
|
20
|
+
from cognite.neat._v0.core._issues.errors import NeatTypeError, NeatValueError
|
|
21
21
|
|
|
22
22
|
from ._base import DataModelTransformer
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from cognite.neat.
|
|
1
|
+
from cognite.neat._v0.engine._interface import Extractor as EngineExtractor
|
|
2
2
|
|
|
3
3
|
from ._base import BaseExtractor, KnowledgeGraphExtractor
|
|
4
4
|
from ._classic_cdf._assets import AssetsExtractor
|
|
@@ -25,6 +25,7 @@ __all__ = [
|
|
|
25
25
|
"DMSGraphExtractor",
|
|
26
26
|
"DataSetExtractor",
|
|
27
27
|
"DictExtractor",
|
|
28
|
+
"EngineExtractor",
|
|
28
29
|
"EventsExtractor",
|
|
29
30
|
"FilesExtractor",
|
|
30
31
|
"KnowledgeGraphExtractor",
|
|
@@ -51,8 +52,8 @@ TripleExtractors = (
|
|
|
51
52
|
| DMSExtractor
|
|
52
53
|
| ClassicGraphExtractor
|
|
53
54
|
| DataSetExtractor
|
|
54
|
-
| EngineExtractor
|
|
55
55
|
| DMSGraphExtractor
|
|
56
|
+
| EngineExtractor
|
|
56
57
|
)
|
|
57
58
|
|
|
58
59
|
|
|
@@ -4,13 +4,13 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from rdflib import URIRef
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._constants import DEFAULT_NAMESPACE
|
|
8
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel
|
|
9
|
+
from cognite.neat._v0.core._shared import Triple
|
|
10
|
+
from cognite.neat._v0.core._utils.auxiliary import class_html_doc
|
|
11
11
|
|
|
12
12
|
if TYPE_CHECKING:
|
|
13
|
-
from cognite.neat.
|
|
13
|
+
from cognite.neat._v0.core._store._provenance import Agent as ProvenanceAgent
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class BaseExtractor:
|
|
@@ -53,6 +53,6 @@ class KnowledgeGraphExtractor(BaseExtractor):
|
|
|
53
53
|
@property
|
|
54
54
|
def agent(self) -> "ProvenanceAgent":
|
|
55
55
|
"""Provenance agent for the importer."""
|
|
56
|
-
from cognite.neat.
|
|
56
|
+
from cognite.neat._v0.core._store._provenance import Agent as ProvenanceAgent
|
|
57
57
|
|
|
58
58
|
return ProvenanceAgent(id_=DEFAULT_NAMESPACE[f"agent/{type(self).__name__}"])
|
|
@@ -17,13 +17,13 @@ from pydantic import AnyHttpUrl, ValidationError
|
|
|
17
17
|
from rdflib import RDF, XSD, Literal, Namespace, URIRef
|
|
18
18
|
from typing_extensions import Self
|
|
19
19
|
|
|
20
|
-
from cognite.neat.
|
|
21
|
-
from cognite.neat.
|
|
22
|
-
from cognite.neat.
|
|
23
|
-
from cognite.neat.
|
|
24
|
-
from cognite.neat.
|
|
25
|
-
from cognite.neat.
|
|
26
|
-
from cognite.neat.
|
|
20
|
+
from cognite.neat._v0.core._constants import DEFAULT_NAMESPACE
|
|
21
|
+
from cognite.neat._v0.core._instances.extractors._base import BaseExtractor
|
|
22
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
23
|
+
from cognite.neat._v0.core._issues.warnings import CDFAuthWarning, NeatValueWarning
|
|
24
|
+
from cognite.neat._v0.core._shared import Triple
|
|
25
|
+
from cognite.neat._v0.core._utils.auxiliary import string_to_ideal_type
|
|
26
|
+
from cognite.neat._v0.core._utils.collection_ import (
|
|
27
27
|
iterate_progress_bar_if_above_config_threshold,
|
|
28
28
|
)
|
|
29
29
|
|
|
@@ -9,24 +9,24 @@ from cognite.client import CogniteClient
|
|
|
9
9
|
from cognite.client.exceptions import CogniteAPIError
|
|
10
10
|
from rdflib import Namespace, URIRef
|
|
11
11
|
|
|
12
|
-
from cognite.neat.
|
|
12
|
+
from cognite.neat._v0.core._constants import (
|
|
13
13
|
CLASSIC_CDF_NAMESPACE,
|
|
14
14
|
DEFAULT_NAMESPACE,
|
|
15
15
|
get_default_prefixes_and_namespaces,
|
|
16
16
|
)
|
|
17
|
-
from cognite.neat.
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
17
|
+
from cognite.neat._v0.core._data_model._shared import ImportedDataModel
|
|
18
|
+
from cognite.neat._v0.core._data_model.catalog import classic_model
|
|
19
|
+
from cognite.neat._v0.core._data_model.models import (
|
|
20
20
|
ConceptualDataModel,
|
|
21
21
|
UnverifiedConceptualDataModel,
|
|
22
22
|
)
|
|
23
|
-
from cognite.neat.
|
|
24
|
-
from cognite.neat.
|
|
25
|
-
from cognite.neat.
|
|
26
|
-
from cognite.neat.
|
|
27
|
-
from cognite.neat.
|
|
28
|
-
from cognite.neat.
|
|
29
|
-
from cognite.neat.
|
|
23
|
+
from cognite.neat._v0.core._instances.extractors._base import KnowledgeGraphExtractor
|
|
24
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError, ResourceNotFoundError
|
|
25
|
+
from cognite.neat._v0.core._issues.warnings import CDFAuthWarning, NeatValueWarning
|
|
26
|
+
from cognite.neat._v0.core._shared import Triple
|
|
27
|
+
from cognite.neat._v0.core._utils.collection_ import chunker, iterate_progress_bar
|
|
28
|
+
from cognite.neat._v0.core._utils.rdf_ import remove_namespace_from_uri
|
|
29
|
+
from cognite.neat._v0.core._utils.text import to_snake_case
|
|
30
30
|
|
|
31
31
|
from ._assets import AssetsExtractor
|
|
32
32
|
from ._base import ClassicCDFBaseExtractor, InstanceIdPrefix
|
|
@@ -210,7 +210,7 @@ class ClassicGraphExtractor(KnowledgeGraphExtractor):
|
|
|
210
210
|
|
|
211
211
|
def get_conceptual_data_model(self) -> ConceptualDataModel:
|
|
212
212
|
# To avoid circular imports
|
|
213
|
-
from cognite.neat.
|
|
213
|
+
from cognite.neat._v0.core._data_model.importers import ExcelImporter
|
|
214
214
|
|
|
215
215
|
unverified = cast(
|
|
216
216
|
ImportedDataModel[UnverifiedConceptualDataModel],
|
|
@@ -9,9 +9,9 @@ from cognite.client import CogniteClient
|
|
|
9
9
|
from cognite.client.data_classes import Relationship, RelationshipList
|
|
10
10
|
from rdflib import Namespace, URIRef
|
|
11
11
|
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
12
|
+
from cognite.neat._v0.core._issues.warnings import NeatValueWarning
|
|
13
|
+
from cognite.neat._v0.core._shared import Triple
|
|
14
|
+
from cognite.neat._v0.core._utils.auxiliary import create_sha256_hash
|
|
15
15
|
|
|
16
16
|
from ._base import DEFAULT_SKIP_METADATA_VALUES, ClassicCDFBaseExtractor, InstanceIdPrefix, T_CogniteResource
|
|
17
17
|
|
|
@@ -10,11 +10,11 @@ from cognite.client.data_classes import Sequence, SequenceFilter
|
|
|
10
10
|
from rdflib import RDF, XSD, Literal, Namespace, URIRef
|
|
11
11
|
from typing_extensions import Self
|
|
12
12
|
|
|
13
|
-
from cognite.neat.
|
|
13
|
+
from cognite.neat._v0.core._client.data_classes.neat_sequence import (
|
|
14
14
|
NeatSequence,
|
|
15
15
|
NeatSequenceList,
|
|
16
16
|
)
|
|
17
|
-
from cognite.neat.
|
|
17
|
+
from cognite.neat._v0.core._shared import Triple
|
|
18
18
|
|
|
19
19
|
from ._base import DEFAULT_SKIP_METADATA_VALUES, ClassicCDFBaseExtractor, InstanceIdPrefix
|
|
20
20
|
|
|
@@ -7,8 +7,8 @@ from cognite.client import data_modeling as dm
|
|
|
7
7
|
from cognite.client.data_classes.data_modeling.instances import Instance
|
|
8
8
|
from rdflib import XSD, Literal, Namespace, URIRef
|
|
9
9
|
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._shared import Triple
|
|
11
|
+
from cognite.neat._v0.core._utils.auxiliary import string_to_ideal_type
|
|
12
12
|
|
|
13
13
|
from ._base import BaseExtractor
|
|
14
14
|
|
|
@@ -9,12 +9,12 @@ from cognite.client.data_classes.data_modeling.instances import Edge, Instance,
|
|
|
9
9
|
from cognite.client.utils.useful_types import SequenceNotStr
|
|
10
10
|
from rdflib import RDF, Literal, Namespace, URIRef
|
|
11
11
|
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
15
|
-
from cognite.neat.
|
|
16
|
-
from cognite.neat.
|
|
17
|
-
from cognite.neat.
|
|
12
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
13
|
+
from cognite.neat._v0.core._config import GLOBAL_CONFIG
|
|
14
|
+
from cognite.neat._v0.core._constants import DEFAULT_SPACE_URI, is_readonly_property
|
|
15
|
+
from cognite.neat._v0.core._issues.errors import ResourceRetrievalError
|
|
16
|
+
from cognite.neat._v0.core._shared import Triple
|
|
17
|
+
from cognite.neat._v0.core._utils.collection_ import iterate_progress_bar
|
|
18
18
|
|
|
19
19
|
from ._base import BaseExtractor
|
|
20
20
|
from ._dict import DEFAULT_EMPTY_VALUES, DMSPropertyExtractor
|
|
@@ -5,24 +5,24 @@ from cognite.client.exceptions import CogniteAPIError
|
|
|
5
5
|
from cognite.client.utils.useful_types import SequenceNotStr
|
|
6
6
|
from rdflib import Namespace, URIRef
|
|
7
7
|
|
|
8
|
-
from cognite.neat.
|
|
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.
|
|
8
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
9
|
+
from cognite.neat._v0.core._constants import COGNITE_SPACES, DEFAULT_NAMESPACE
|
|
10
|
+
from cognite.neat._v0.core._data_model.importers import DMSImporter
|
|
11
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel, PhysicalDataModel
|
|
12
|
+
from cognite.neat._v0.core._data_model.models.conceptual import ConceptualProperty
|
|
13
|
+
from cognite.neat._v0.core._data_model.models.data_types import Json
|
|
14
|
+
from cognite.neat._v0.core._data_model.models.entities import UnknownEntity
|
|
15
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
16
16
|
PhysicalToConceptual,
|
|
17
17
|
VerifyPhysicalDataModel,
|
|
18
18
|
)
|
|
19
|
-
from cognite.neat.
|
|
20
|
-
from cognite.neat.
|
|
19
|
+
from cognite.neat._v0.core._issues import IssueList, NeatIssue, catch_warnings
|
|
20
|
+
from cognite.neat._v0.core._issues.warnings import (
|
|
21
21
|
CDFAuthWarning,
|
|
22
22
|
ResourceNotFoundWarning,
|
|
23
23
|
ResourceRetrievalWarning,
|
|
24
24
|
)
|
|
25
|
-
from cognite.neat.
|
|
25
|
+
from cognite.neat._v0.core._shared import Triple
|
|
26
26
|
|
|
27
27
|
from ._base import KnowledgeGraphExtractor
|
|
28
28
|
from ._dms import DMSExtractor
|