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
|
@@ -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
|
|
@@ -11,15 +11,15 @@ import numpy
|
|
|
11
11
|
import pandas as pd
|
|
12
12
|
from rdflib import RDF, Literal, Namespace, URIRef
|
|
13
13
|
|
|
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.
|
|
21
|
-
from cognite.neat.
|
|
22
|
-
from cognite.neat.
|
|
14
|
+
from cognite.neat._v0.core._data_model._constants import EntityTypes
|
|
15
|
+
from cognite.neat._v0.core._data_model.analysis import DataModelAnalysis
|
|
16
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel, PhysicalDataModel
|
|
17
|
+
from cognite.neat._v0.core._data_model.models.conceptual import ConceptualProperty
|
|
18
|
+
from cognite.neat._v0.core._data_model.models.data_types import DataType
|
|
19
|
+
from cognite.neat._v0.core._data_model.models.entities import ConceptEntity
|
|
20
|
+
from cognite.neat._v0.core._data_model.transformers import SubsetConceptualDataModel
|
|
21
|
+
from cognite.neat._v0.core._shared import Triple
|
|
22
|
+
from cognite.neat._v0.core._utils.rdf_ import remove_namespace_from_uri
|
|
23
23
|
|
|
24
24
|
from ._base import BaseExtractor
|
|
25
25
|
|
|
@@ -45,7 +45,7 @@ class MockGraphGenerator(BaseExtractor):
|
|
|
45
45
|
):
|
|
46
46
|
if isinstance(data_model, PhysicalDataModel):
|
|
47
47
|
# fixes potential issues with circular dependencies
|
|
48
|
-
from cognite.neat.
|
|
48
|
+
from cognite.neat._v0.core._data_model.transformers import PhysicalToConceptual
|
|
49
49
|
|
|
50
50
|
self.data_model = PhysicalToConceptual().transform(data_model)
|
|
51
51
|
elif isinstance(data_model, ConceptualDataModel):
|
|
@@ -6,9 +6,9 @@ from cognite.client.data_classes import Row, RowList
|
|
|
6
6
|
from cognite.client.utils.useful_types import SequenceNotStr
|
|
7
7
|
from rdflib import RDF, Namespace, URIRef
|
|
8
8
|
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
9
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
10
|
+
from cognite.neat._v0.core._constants import DEFAULT_RAW_URI
|
|
11
|
+
from cognite.neat._v0.core._shared import Triple
|
|
12
12
|
|
|
13
13
|
from ._base import BaseExtractor
|
|
14
14
|
from ._dict import DEFAULT_EMPTY_VALUES, DictExtractor
|
|
@@ -7,16 +7,16 @@ from rdflib import URIRef
|
|
|
7
7
|
from rdflib.util import guess_format
|
|
8
8
|
from typing_extensions import Self
|
|
9
9
|
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._constants import DEFAULT_BASE_URI
|
|
11
|
+
from cognite.neat._v0.core._instances._shared import RDFTypes
|
|
12
|
+
from cognite.neat._v0.core._instances.extractors._base import BaseExtractor
|
|
13
|
+
from cognite.neat._v0.core._issues._base import IssueList
|
|
14
|
+
from cognite.neat._v0.core._issues.errors import (
|
|
15
15
|
FileNotFoundNeatError,
|
|
16
16
|
FileTypeUnexpectedError,
|
|
17
17
|
)
|
|
18
|
-
from cognite.neat.
|
|
19
|
-
from cognite.neat.
|
|
18
|
+
from cognite.neat._v0.core._issues.errors._general import NeatValueError
|
|
19
|
+
from cognite.neat._v0.core._shared import Triple
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class RdfFileExtractor(BaseExtractor):
|
|
@@ -5,11 +5,11 @@ from typing import ClassVar, Generic, TypeVar
|
|
|
5
5
|
|
|
6
6
|
from cognite.client.data_classes.capabilities import Capability
|
|
7
7
|
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
8
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
9
|
+
from cognite.neat._v0.core._issues import IssueList, NeatIssue
|
|
10
|
+
from cognite.neat._v0.core._issues.errors import AuthorizationError
|
|
11
|
+
from cognite.neat._v0.core._utils.auxiliary import class_html_doc
|
|
12
|
+
from cognite.neat._v0.core._utils.upload import UploadResult, UploadResultList
|
|
13
13
|
|
|
14
14
|
T_Output = TypeVar("T_Output")
|
|
15
15
|
|
|
@@ -19,46 +19,46 @@ from cognite.client.exceptions import CogniteAPIError
|
|
|
19
19
|
from pydantic import BaseModel, ValidationInfo, create_model, field_validator
|
|
20
20
|
from rdflib import RDF, URIRef
|
|
21
21
|
|
|
22
|
-
from cognite.neat.
|
|
23
|
-
from cognite.neat.
|
|
24
|
-
from cognite.neat.
|
|
22
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
23
|
+
from cognite.neat._v0.core._client._api_client import SchemaAPI
|
|
24
|
+
from cognite.neat._v0.core._constants import (
|
|
25
25
|
COGNITE_SPACES,
|
|
26
26
|
DMS_DIRECT_RELATION_LIST_DEFAULT_LIMIT,
|
|
27
27
|
is_readonly_property,
|
|
28
28
|
)
|
|
29
|
-
from cognite.neat.
|
|
30
|
-
from cognite.neat.
|
|
31
|
-
from cognite.neat.
|
|
32
|
-
from cognite.neat.
|
|
29
|
+
from cognite.neat._v0.core._data_model.analysis import DataModelAnalysis
|
|
30
|
+
from cognite.neat._v0.core._data_model.analysis._base import ViewQuery, ViewQueryDict
|
|
31
|
+
from cognite.neat._v0.core._data_model.models import PhysicalDataModel
|
|
32
|
+
from cognite.neat._v0.core._data_model.models.conceptual._verified import (
|
|
33
33
|
ConceptualDataModel,
|
|
34
34
|
)
|
|
35
|
-
from cognite.neat.
|
|
35
|
+
from cognite.neat._v0.core._data_model.models.data_types import (
|
|
36
36
|
_DATA_TYPE_BY_DMS_TYPE,
|
|
37
37
|
Json,
|
|
38
38
|
String,
|
|
39
39
|
)
|
|
40
|
-
from cognite.neat.
|
|
41
|
-
from cognite.neat.
|
|
40
|
+
from cognite.neat._v0.core._issues import IssueList, NeatError, NeatIssue, catch_issues
|
|
41
|
+
from cognite.neat._v0.core._issues.errors import (
|
|
42
42
|
ResourceCreationError,
|
|
43
43
|
ResourceDuplicatedError,
|
|
44
44
|
ResourceNotFoundError,
|
|
45
45
|
)
|
|
46
|
-
from cognite.neat.
|
|
46
|
+
from cognite.neat._v0.core._issues.warnings import (
|
|
47
47
|
PropertyDirectRelationLimitWarning,
|
|
48
48
|
PropertyMultipleValueWarning,
|
|
49
49
|
PropertyTypeNotSupportedWarning,
|
|
50
50
|
ResourceNeatWarning,
|
|
51
51
|
)
|
|
52
|
-
from cognite.neat.
|
|
53
|
-
from cognite.neat.
|
|
54
|
-
from cognite.neat.
|
|
55
|
-
from cognite.neat.
|
|
52
|
+
from cognite.neat._v0.core._shared import InstanceType
|
|
53
|
+
from cognite.neat._v0.core._store import NeatInstanceStore
|
|
54
|
+
from cognite.neat._v0.core._utils.auxiliary import create_sha256_hash
|
|
55
|
+
from cognite.neat._v0.core._utils.collection_ import (
|
|
56
56
|
iterate_progress_bar_if_above_config_threshold,
|
|
57
57
|
)
|
|
58
|
-
from cognite.neat.
|
|
58
|
+
from cognite.neat._v0.core._utils.rdf_ import (
|
|
59
59
|
remove_namespace_from_uri,
|
|
60
60
|
)
|
|
61
|
-
from cognite.neat.
|
|
61
|
+
from cognite.neat._v0.core._utils.upload import UploadResult
|
|
62
62
|
|
|
63
63
|
from ._base import _END_OF_CLASS, _START_OF_CLASS, CDFLoader
|
|
64
64
|
|
|
@@ -10,17 +10,17 @@ from cognite.client import data_modeling as dm
|
|
|
10
10
|
from cognite.client.data_classes.capabilities import Capability, DataModelsAcl
|
|
11
11
|
from rdflib import URIRef
|
|
12
12
|
|
|
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.
|
|
21
|
-
from cognite.neat.
|
|
22
|
-
from cognite.neat.
|
|
23
|
-
from cognite.neat.
|
|
13
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
14
|
+
from cognite.neat._v0.core._client._api.data_modeling_loaders import MultiCogniteAPIError
|
|
15
|
+
from cognite.neat._v0.core._constants import COGNITE_SPACES
|
|
16
|
+
from cognite.neat._v0.core._issues import IssueList, NeatIssue
|
|
17
|
+
from cognite.neat._v0.core._issues.errors import ResourceCreationError, ResourceNotFoundError
|
|
18
|
+
from cognite.neat._v0.core._issues.warnings import NeatValueWarning
|
|
19
|
+
from cognite.neat._v0.core._store import NeatInstanceStore
|
|
20
|
+
from cognite.neat._v0.core._utils.collection_ import iterate_progress_bar_if_above_config_threshold
|
|
21
|
+
from cognite.neat._v0.core._utils.rdf_ import namespace_as_space, split_uri
|
|
22
|
+
from cognite.neat._v0.core._utils.text import NamingStandardization
|
|
23
|
+
from cognite.neat._v0.core._utils.upload import UploadResult
|
|
24
24
|
|
|
25
25
|
from ._base import _END_OF_CLASS, _START_OF_CLASS, CDFLoader
|
|
26
26
|
|
|
@@ -7,9 +7,9 @@ from rdflib import RDF, XSD, Namespace, URIRef
|
|
|
7
7
|
from rdflib import Literal as RdfLiteral
|
|
8
8
|
from rdflib.query import ResultRow
|
|
9
9
|
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._constants import NEAT
|
|
11
|
+
from cognite.neat._v0.core._shared import InstanceType
|
|
12
|
+
from cognite.neat._v0.core._utils.rdf_ import remove_namespace_from_uri
|
|
13
13
|
|
|
14
14
|
from ._base import BaseQuery
|
|
15
15
|
|
|
@@ -7,12 +7,12 @@ from typing import ClassVar, TypeAlias, cast
|
|
|
7
7
|
from rdflib import Graph
|
|
8
8
|
from rdflib.query import ResultRow
|
|
9
9
|
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._issues.warnings import NeatValueWarning
|
|
11
|
+
from cognite.neat._v0.core._shared import Triple
|
|
12
|
+
from cognite.neat._v0.core._utils.collection_ import (
|
|
13
13
|
iterate_progress_bar_if_above_config_threshold,
|
|
14
14
|
)
|
|
15
|
-
from cognite.neat.
|
|
15
|
+
from cognite.neat._v0.core._utils.graph_transformations_report import (
|
|
16
16
|
GraphTransformationResult,
|
|
17
17
|
)
|
|
18
18
|
|
|
@@ -8,12 +8,12 @@ from typing import cast
|
|
|
8
8
|
from rdflib import RDF, Graph, Literal, Namespace, URIRef
|
|
9
9
|
from rdflib.query import ResultRow
|
|
10
10
|
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
14
|
-
from cognite.neat.
|
|
15
|
-
from cognite.neat.
|
|
16
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._constants import CLASSIC_CDF_NAMESPACE, DEFAULT_NAMESPACE
|
|
12
|
+
from cognite.neat._v0.core._instances import extractors
|
|
13
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
14
|
+
from cognite.neat._v0.core._issues.warnings import ResourceNotFoundWarning
|
|
15
|
+
from cognite.neat._v0.core._utils.collection_ import iterate_progress_bar
|
|
16
|
+
from cognite.neat._v0.core._utils.rdf_ import (
|
|
17
17
|
Triple,
|
|
18
18
|
add_triples_in_batch,
|
|
19
19
|
get_namespace,
|
|
@@ -3,10 +3,10 @@ from typing import Any, cast
|
|
|
3
3
|
from rdflib import Graph, Namespace, URIRef
|
|
4
4
|
from rdflib.query import ResultRow
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
9
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._constants import DEFAULT_NAMESPACE
|
|
7
|
+
from cognite.neat._v0.core._shared import Triple
|
|
8
|
+
from cognite.neat._v0.core._utils.rdf_ import as_neat_compliant_uri
|
|
9
|
+
from cognite.neat._v0.core._utils.text import sentence_or_string_to_camel
|
|
10
10
|
|
|
11
11
|
from ._base import BaseTransformer, BaseTransformerStandardised, RowTransformationOutput
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ from urllib.parse import quote
|
|
|
4
4
|
from rdflib import Namespace, URIRef
|
|
5
5
|
from rdflib.query import ResultRow
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._utils.rdf_ import get_namespace, remove_namespace_from_uri
|
|
8
8
|
|
|
9
9
|
from ._base import BaseTransformerStandardised, RowTransformationOutput
|
|
10
10
|
|
|
@@ -7,10 +7,10 @@ import rdflib
|
|
|
7
7
|
from rdflib import RDF, RDFS, Graph, Literal, Namespace, URIRef
|
|
8
8
|
from rdflib.query import ResultRow
|
|
9
9
|
|
|
10
|
-
from cognite.neat.
|
|
11
|
-
from cognite.neat.
|
|
12
|
-
from cognite.neat.
|
|
13
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._constants import NEAT
|
|
11
|
+
from cognite.neat._v0.core._issues.warnings import PropertyDataTypeConversionWarning
|
|
12
|
+
from cognite.neat._v0.core._utils.auxiliary import string_to_ideal_type
|
|
13
|
+
from cognite.neat._v0.core._utils.rdf_ import Triple, get_namespace, remove_namespace_from_uri, uri_to_cdf_id
|
|
14
14
|
|
|
15
15
|
from ._base import BaseTransformerStandardised, RowTransformationOutput
|
|
16
16
|
|
|
@@ -16,7 +16,7 @@ from cognite.client.data_classes.data_modeling import (
|
|
|
16
16
|
ViewId,
|
|
17
17
|
)
|
|
18
18
|
|
|
19
|
-
from cognite.neat.
|
|
19
|
+
from cognite.neat._v0.core._utils.text import (
|
|
20
20
|
humanize_collection,
|
|
21
21
|
to_camel_case,
|
|
22
22
|
to_snake_case,
|
|
@@ -119,7 +119,7 @@ class NeatIssue:
|
|
|
119
119
|
|
|
120
120
|
@classmethod
|
|
121
121
|
def _dump_value(cls, value: Any) -> list | int | bool | float | str | dict:
|
|
122
|
-
from cognite.neat.
|
|
122
|
+
from cognite.neat._v0.core._data_model.models.entities import ConceptualEntity
|
|
123
123
|
|
|
124
124
|
if isinstance(value, str | int | bool | float):
|
|
125
125
|
return value
|
|
@@ -144,11 +144,11 @@ class NeatIssue:
|
|
|
144
144
|
@classmethod
|
|
145
145
|
def load(cls, data: dict[str, Any]) -> "NeatIssue":
|
|
146
146
|
"""Create an instance of the issue from a dictionary."""
|
|
147
|
-
from cognite.neat.
|
|
147
|
+
from cognite.neat._v0.core._issues.errors import (
|
|
148
148
|
_NEAT_ERRORS_BY_NAME,
|
|
149
149
|
NeatValueError,
|
|
150
150
|
)
|
|
151
|
-
from cognite.neat.
|
|
151
|
+
from cognite.neat._v0.core._issues.warnings import _NEAT_WARNINGS_BY_NAME
|
|
152
152
|
|
|
153
153
|
if "NeatIssue" not in data:
|
|
154
154
|
raise NeatValueError("The data does not contain a NeatIssue key.")
|
|
@@ -173,7 +173,7 @@ class NeatIssue:
|
|
|
173
173
|
|
|
174
174
|
@classmethod
|
|
175
175
|
def _load_value(cls, type_: Any, value: Any) -> Any:
|
|
176
|
-
from cognite.neat.
|
|
176
|
+
from cognite.neat._v0.core._data_model.models.entities import ConceptualEntity
|
|
177
177
|
|
|
178
178
|
if isinstance(type_, UnionType) or get_origin(type_) is UnionType:
|
|
179
179
|
args = get_args(type_)
|
|
@@ -9,7 +9,7 @@ from ._base import IssueList, MultiValueError, NeatError
|
|
|
9
9
|
from ._factory import from_pydantic_errors, from_warning
|
|
10
10
|
|
|
11
11
|
if TYPE_CHECKING:
|
|
12
|
-
from cognite.neat.
|
|
12
|
+
from cognite.neat._v0.core._data_model.models._import_contexts import ImportContext
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
@contextmanager
|
|
@@ -3,17 +3,17 @@ from warnings import WarningMessage
|
|
|
3
3
|
|
|
4
4
|
from pydantic_core import ErrorDetails
|
|
5
5
|
|
|
6
|
-
from cognite.neat.
|
|
6
|
+
from cognite.neat._v0.core._issues._base import NeatError, NeatWarning
|
|
7
7
|
|
|
8
8
|
from .errors import NeatValueError, SpreadsheetError
|
|
9
9
|
|
|
10
10
|
if TYPE_CHECKING:
|
|
11
|
-
from cognite.neat.
|
|
11
|
+
from cognite.neat._v0.core._data_model.models._import_contexts import ImportContext, SpreadsheetContext
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def from_pydantic_errors(errors: list[ErrorDetails], context: "ImportContext | None" = None) -> list[NeatError]:
|
|
15
15
|
# To avoid circular import, we import SpreadsheetContext here.
|
|
16
|
-
from cognite.neat.
|
|
16
|
+
from cognite.neat._v0.core._data_model.models._import_contexts import SpreadsheetContext
|
|
17
17
|
|
|
18
18
|
read_info_by_sheet = context if isinstance(context, SpreadsheetContext) else SpreadsheetContext({})
|
|
19
19
|
return [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
2
|
from typing import Generic
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._issues._base import ResourceType
|
|
5
5
|
|
|
6
6
|
from ._resources import ResourceError, T_Identifier, T_ReferenceIdentifier
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
2
|
from typing import Generic
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._issues._base import (
|
|
5
5
|
NeatError,
|
|
6
6
|
ResourceType,
|
|
7
7
|
T_Identifier,
|
|
8
8
|
T_ReferenceIdentifier,
|
|
9
9
|
)
|
|
10
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._utils.text import humanize_collection
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
@dataclass(unsafe_hash=True)
|
|
@@ -2,8 +2,8 @@ from abc import ABC
|
|
|
2
2
|
from dataclasses import dataclass
|
|
3
3
|
from typing import ClassVar, cast
|
|
4
4
|
|
|
5
|
-
from cognite.neat.
|
|
6
|
-
from cognite.neat.
|
|
5
|
+
from cognite.neat._v0.core._issues import NeatError
|
|
6
|
+
from cognite.neat._v0.core._utils.spreadsheet import SpreadsheetRead
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
@dataclass(unsafe_hash=True)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
conflicts with the built-in Python warnings module. However, it is expected to always be used in an absolute
|
|
3
3
|
import, and should thus not cause a naming conflict."""
|
|
4
4
|
|
|
5
|
-
from cognite.neat.
|
|
5
|
+
from cognite.neat._v0.core._issues._base import NeatWarning, _get_subclasses
|
|
6
6
|
|
|
7
7
|
from . import user_modeling
|
|
8
8
|
from ._external import (
|
|
@@ -4,8 +4,8 @@ from typing import ClassVar
|
|
|
4
4
|
|
|
5
5
|
from cognite.client.data_classes.data_modeling import DataModelId, ViewId
|
|
6
6
|
|
|
7
|
-
from cognite.neat.
|
|
8
|
-
from cognite.neat.
|
|
7
|
+
from cognite.neat._v0.core._constants import DMS_VIEW_CONTAINER_SIZE_LIMIT
|
|
8
|
+
from cognite.neat._v0.core._issues import NeatWarning
|
|
9
9
|
|
|
10
10
|
_BASE_URL = "https://cognite-neat.readthedocs-hosted.com/en/latest/data-modeling-principles.html"
|
|
11
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
2
|
from typing import Generic
|
|
3
3
|
|
|
4
|
-
from cognite.neat.
|
|
5
|
-
from cognite.neat.
|
|
4
|
+
from cognite.neat._v0.core._constants import DMS_DIRECT_RELATION_LIST_DEFAULT_LIMIT
|
|
5
|
+
from cognite.neat._v0.core._issues._base import ResourceType
|
|
6
6
|
|
|
7
7
|
from ._resources import ResourceNeatWarning, T_Identifier, T_ReferenceIdentifier
|
|
8
8
|
|
|
@@ -7,7 +7,7 @@ from dataclasses import dataclass
|
|
|
7
7
|
|
|
8
8
|
from cognite.client.data_classes.data_modeling import ContainerId, ViewId
|
|
9
9
|
|
|
10
|
-
from cognite.neat.
|
|
10
|
+
from cognite.neat._v0.core._constants import DMS_CONTAINER_PROPERTY_SIZE_LIMIT
|
|
11
11
|
|
|
12
12
|
from ._models import UserModelingWarning
|
|
13
13
|
|
|
@@ -10,25 +10,25 @@ from typing import Any, cast
|
|
|
10
10
|
import rdflib
|
|
11
11
|
from rdflib import URIRef
|
|
12
12
|
|
|
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.
|
|
13
|
+
from cognite.neat._v0.core._client import NeatClient
|
|
14
|
+
from cognite.neat._v0.core._constants import DEFAULT_NAMESPACE
|
|
15
|
+
from cognite.neat._v0.core._data_model._shared import T_VerifiedDataModel, VerifiedDataModel
|
|
16
|
+
from cognite.neat._v0.core._data_model.exporters import BaseExporter
|
|
17
|
+
from cognite.neat._v0.core._data_model.exporters._base import CDFExporter, T_Export
|
|
18
|
+
from cognite.neat._v0.core._data_model.importers import BaseImporter
|
|
19
|
+
from cognite.neat._v0.core._data_model.models import ConceptualDataModel, PhysicalDataModel
|
|
20
|
+
from cognite.neat._v0.core._data_model.transformers import (
|
|
21
21
|
PhysicalToConceptual,
|
|
22
22
|
VerifiedDataModelTransformer,
|
|
23
23
|
VerifyAnyDataModel,
|
|
24
24
|
)
|
|
25
|
-
from cognite.neat.
|
|
25
|
+
from cognite.neat._v0.core._instances.extractors import (
|
|
26
26
|
DMSGraphExtractor,
|
|
27
27
|
KnowledgeGraphExtractor,
|
|
28
28
|
)
|
|
29
|
-
from cognite.neat.
|
|
30
|
-
from cognite.neat.
|
|
31
|
-
from cognite.neat.
|
|
29
|
+
from cognite.neat._v0.core._issues import IssueList, catch_issues
|
|
30
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError
|
|
31
|
+
from cognite.neat._v0.core._utils.upload import UploadResultList
|
|
32
32
|
|
|
33
33
|
from ._provenance import (
|
|
34
34
|
EXTERNAL_AGENT,
|
|
@@ -12,20 +12,20 @@ from rdflib import Dataset, Graph, Namespace, URIRef
|
|
|
12
12
|
from rdflib.graph import DATASET_DEFAULT_GRAPH_ID
|
|
13
13
|
from rdflib.plugins.stores.sparqlstore import SPARQLUpdateStore
|
|
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.
|
|
21
|
-
from cognite.neat.
|
|
22
|
-
from cognite.neat.
|
|
23
|
-
from cognite.neat.
|
|
24
|
-
from cognite.neat.
|
|
15
|
+
from cognite.neat._v0.core._constants import NAMED_GRAPH_NAMESPACE
|
|
16
|
+
from cognite.neat._v0.core._instances._shared import quad_formats, rdflib_to_oxi_type
|
|
17
|
+
from cognite.neat._v0.core._instances.extractors import RdfFileExtractor, TripleExtractors
|
|
18
|
+
from cognite.neat._v0.core._instances.queries import Queries
|
|
19
|
+
from cognite.neat._v0.core._instances.transformers import Transformers
|
|
20
|
+
from cognite.neat._v0.core._issues import IssueList, catch_issues
|
|
21
|
+
from cognite.neat._v0.core._issues.errors import NeatValueError, OxigraphStorageLockedError
|
|
22
|
+
from cognite.neat._v0.core._shared import InstanceType, Triple
|
|
23
|
+
from cognite.neat._v0.core._utils.auxiliary import local_import
|
|
24
|
+
from cognite.neat._v0.core._utils.rdf_ import (
|
|
25
25
|
add_triples_in_batch,
|
|
26
26
|
remove_namespace_from_uri,
|
|
27
27
|
)
|
|
28
|
-
from cognite.neat.
|
|
28
|
+
from cognite.neat._v0.core._utils.text import humanize_collection
|
|
29
29
|
|
|
30
30
|
from ._provenance import Change, Entity, Provenance
|
|
31
31
|
|