cognite-neat 0.121.0__py3-none-any.whl → 0.121.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cognite-neat might be problematic. Click here for more details.
- cognite/neat/_version.py +1 -1
- cognite/neat/core/_constants.py +2 -2
- cognite/neat/core/{_rules → _data_model}/_constants.py +2 -2
- cognite/neat/core/{_rules → _data_model}/_shared.py +9 -9
- cognite/neat/core/{_rules → _data_model}/analysis/_base.py +33 -29
- cognite/neat/core/{_rules → _data_model}/exporters/_base.py +1 -1
- cognite/neat/core/{_rules → _data_model}/exporters/_rules2dms.py +1 -1
- cognite/neat/core/{_rules → _data_model}/exporters/_rules2excel.py +15 -10
- cognite/neat/core/{_rules → _data_model}/exporters/_rules2instance_template.py +9 -7
- cognite/neat/core/{_rules → _data_model}/exporters/_rules2ontology.py +24 -21
- cognite/neat/core/{_rules → _data_model}/exporters/_rules2yaml.py +1 -1
- cognite/neat/core/{_rules → _data_model}/exporters/_validation.py +5 -5
- cognite/neat/core/{_rules → _data_model}/importers/__init__.py +1 -3
- cognite/neat/core/{_rules → _data_model}/importers/_base.py +1 -1
- cognite/neat/core/{_rules → _data_model}/importers/_dms2rules.py +37 -33
- cognite/neat/core/{_rules → _data_model}/importers/_dtdl2rules/dtdl_converter.py +25 -25
- cognite/neat/core/{_rules → _data_model}/importers/_dtdl2rules/dtdl_importer.py +14 -14
- cognite/neat/core/{_rules → _data_model}/importers/_dtdl2rules/spec.py +1 -1
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_base.py +11 -9
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_imf2rules.py +2 -2
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_inference2rules.py +24 -24
- cognite/neat/core/{_rules → _data_model}/importers/_rdf/_owl2rules.py +2 -2
- cognite/neat/core/{_rules → _data_model}/importers/_spreadsheet2rules.py +7 -36
- cognite/neat/core/{_rules → _data_model}/importers/_yaml2rules.py +2 -2
- cognite/neat/core/_data_model/models/__init__.py +36 -0
- cognite/neat/core/{_rules/models/_base_input.py → _data_model/models/_base_unverified.py} +11 -11
- cognite/neat/core/{_rules/models/_base_rules.py → _data_model/models/_base_verified.py} +10 -10
- cognite/neat/core/{_rules → _data_model}/models/_types.py +7 -7
- cognite/neat/core/_data_model/models/conceptual/__init__.py +25 -0
- cognite/neat/core/{_rules/models/information/_rules_input.py → _data_model/models/conceptual/_unverified.py} +31 -28
- cognite/neat/core/{_rules/models/information → _data_model/models/conceptual}/_validation.py +9 -5
- cognite/neat/core/{_rules/models/information/_rules.py → _data_model/models/conceptual/_verified.py} +40 -42
- cognite/neat/core/{_rules → _data_model}/models/data_types.py +2 -2
- cognite/neat/core/{_rules → _data_model}/models/dms/_exporter.py +14 -14
- cognite/neat/core/{_rules → _data_model}/models/dms/_rules.py +15 -15
- cognite/neat/core/{_rules → _data_model}/models/dms/_rules_input.py +15 -12
- cognite/neat/core/{_rules → _data_model}/models/dms/_validation.py +7 -6
- cognite/neat/core/{_rules → _data_model}/models/entities/_loaders.py +1 -1
- cognite/neat/core/{_rules → _data_model}/models/entities/_multi_value.py +2 -2
- cognite/neat/core/{_rules → _data_model}/models/entities/_single_value.py +1 -1
- cognite/neat/core/{_rules → _data_model}/models/mapping/_classic2core.py +4 -4
- cognite/neat/core/{_rules → _data_model}/transformers/_base.py +6 -3
- cognite/neat/core/{_rules → _data_model}/transformers/_converters.py +117 -103
- cognite/neat/core/{_rules → _data_model}/transformers/_mapping.py +8 -8
- cognite/neat/core/{_rules → _data_model}/transformers/_verification.py +14 -14
- cognite/neat/core/{_graph → _instances}/extractors/_base.py +2 -2
- cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_base.py +1 -1
- cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_classic.py +13 -7
- cognite/neat/core/{_graph → _instances}/extractors/_dms_graph.py +10 -10
- cognite/neat/core/{_graph → _instances}/extractors/_mock_graph_generator.py +14 -14
- cognite/neat/core/{_graph → _instances}/extractors/_rdf_file.py +2 -2
- cognite/neat/core/{_graph → _instances}/loaders/_rdf2dms.py +12 -10
- cognite/neat/core/{_graph → _instances}/transformers/_classic_cdf.py +1 -1
- cognite/neat/core/_issues/_base.py +2 -2
- cognite/neat/core/_issues/warnings/__init__.py +2 -0
- cognite/neat/core/_issues/warnings/_properties.py +7 -0
- cognite/neat/core/_store/_graph_store.py +4 -4
- cognite/neat/core/_store/_rules_store.py +31 -31
- cognite/neat/core/_store/exceptions.py +3 -3
- cognite/neat/core/_utils/spreadsheet.py +1 -1
- cognite/neat/core/_utils/text.py +1 -1
- cognite/neat/session/_base.py +10 -8
- cognite/neat/session/_drop.py +1 -1
- cognite/neat/session/_fix.py +2 -2
- cognite/neat/session/_mapping.py +3 -3
- cognite/neat/session/_prepare.py +4 -4
- cognite/neat/session/_read.py +13 -13
- cognite/neat/session/_set.py +3 -3
- cognite/neat/session/_show.py +1 -1
- cognite/neat/session/_state.py +6 -6
- cognite/neat/session/_subset.py +3 -3
- cognite/neat/session/_template.py +10 -10
- cognite/neat/session/_to.py +8 -8
- cognite/neat/session/_wizard.py +1 -1
- {cognite_neat-0.121.0.dist-info → cognite_neat-0.121.1.dist-info}/METADATA +1 -1
- cognite_neat-0.121.1.dist-info/RECORD +187 -0
- cognite/neat/core/_rules/models/__init__.py +0 -34
- cognite/neat/core/_rules/models/information/__init__.py +0 -20
- cognite_neat-0.121.0.dist-info/RECORD +0 -187
- /cognite/neat/core/{_graph → _data_model}/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/analysis/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/catalog/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/catalog/classic_model.xlsx +0 -0
- /cognite/neat/core/{_rules → _data_model}/catalog/hello_world_pump.xlsx +0 -0
- /cognite/neat/core/{_rules → _data_model}/catalog/info-rules-imf.xlsx +0 -0
- /cognite/neat/core/{_rules → _data_model}/exporters/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/importers/_dtdl2rules/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/importers/_dtdl2rules/_unit_lookup.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/importers/_rdf/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/importers/_rdf/_shared.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/dms/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/entities/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/entities/_constants.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/entities/_types.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/entities/_wrapped.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/mapping/__init__.py +0 -0
- /cognite/neat/core/{_rules → _data_model}/models/mapping/_classic2core.yaml +0 -0
- /cognite/neat/core/{_rules → _data_model}/transformers/__init__.py +0 -0
- /cognite/neat/core/{_graph/extractors/_classic_cdf → _instances}/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_shared.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_tracking/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_tracking/base.py +0 -0
- /cognite/neat/core/{_graph → _instances}/_tracking/log.py +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/Knowledge-Graph-Nordic44.xml +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/__init__.py +0 -0
- /cognite/neat/core/{_rules → _instances/extractors/_classic_cdf}/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_assets.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_data_sets.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_events.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_files.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_labels.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_relationships.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_sequences.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_classic_cdf/_timeseries.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_dict.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_dms.py +0 -0
- /cognite/neat/core/{_graph → _instances}/extractors/_raw.py +0 -0
- /cognite/neat/core/{_graph → _instances}/loaders/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/loaders/_base.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_base.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_queries.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_select.py +0 -0
- /cognite/neat/core/{_graph → _instances}/queries/_update.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/__init__.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/_base.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/_prune_graph.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/_rdfpath.py +0 -0
- /cognite/neat/core/{_graph → _instances}/transformers/_value_type.py +0 -0
- {cognite_neat-0.121.0.dist-info → cognite_neat-0.121.1.dist-info}/WHEEL +0 -0
- {cognite_neat-0.121.0.dist-info → cognite_neat-0.121.1.dist-info}/licenses/LICENSE +0 -0
cognite/neat/session/_fix.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from cognite.neat.core.
|
|
2
|
-
from cognite.neat.core._rules.transformers import (
|
|
1
|
+
from cognite.neat.core._data_model.transformers import (
|
|
3
2
|
ToCompliantEntities,
|
|
4
3
|
)
|
|
4
|
+
from cognite.neat.core._issues._base import IssueList
|
|
5
5
|
|
|
6
6
|
from ._state import SessionState
|
|
7
7
|
from .exceptions import session_class_wrapper
|
cognite/neat/session/_mapping.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from cognite.neat.core.
|
|
2
|
-
from cognite.neat.core.
|
|
3
|
-
from cognite.neat.core._rules.transformers import (
|
|
1
|
+
from cognite.neat.core._data_model.models.mapping import load_classic_to_core_mapping
|
|
2
|
+
from cognite.neat.core._data_model.transformers import (
|
|
4
3
|
AsParentPropertyId,
|
|
5
4
|
ChangeViewPrefix,
|
|
6
5
|
IncludeReferenced,
|
|
7
6
|
RuleMapper,
|
|
8
7
|
VerifiedRulesTransformer,
|
|
9
8
|
)
|
|
9
|
+
from cognite.neat.core._issues import IssueList
|
|
10
10
|
|
|
11
11
|
from ._state import SessionState
|
|
12
12
|
from .exceptions import NeatSessionError, session_class_wrapper
|
cognite/neat/session/_prepare.py
CHANGED
|
@@ -4,17 +4,17 @@ from typing import Any
|
|
|
4
4
|
|
|
5
5
|
from rdflib import URIRef
|
|
6
6
|
|
|
7
|
-
from cognite.neat.core.
|
|
7
|
+
from cognite.neat.core._data_model.transformers import PrefixEntities, StandardizeNaming
|
|
8
|
+
from cognite.neat.core._data_model.transformers._converters import StandardizeSpaceAndVersion
|
|
9
|
+
from cognite.neat.core._instances.transformers import (
|
|
8
10
|
ConnectionToLiteral,
|
|
9
11
|
ConvertLiteral,
|
|
10
12
|
LiteralToEntity,
|
|
11
13
|
RelationshipAsEdgeTransformer,
|
|
12
14
|
)
|
|
13
|
-
from cognite.neat.core.
|
|
15
|
+
from cognite.neat.core._instances.transformers._rdfpath import MakeConnectionOnExactMatch
|
|
14
16
|
from cognite.neat.core._issues import IssueList
|
|
15
17
|
from cognite.neat.core._issues.errors import NeatValueError
|
|
16
|
-
from cognite.neat.core._rules.transformers import PrefixEntities, StandardizeNaming
|
|
17
|
-
from cognite.neat.core._rules.transformers._converters import StandardizeSpaceAndVersion
|
|
18
18
|
from cognite.neat.core._utils.text import humanize_collection
|
|
19
19
|
from cognite.neat.session._experimental import ExperimentalFlags
|
|
20
20
|
|
cognite/neat/session/_read.py
CHANGED
|
@@ -9,15 +9,23 @@ from cognite.neat.core._constants import (
|
|
|
9
9
|
CLASSIC_CDF_NAMESPACE,
|
|
10
10
|
get_default_prefixes_and_namespaces,
|
|
11
11
|
)
|
|
12
|
-
from cognite.neat.core.
|
|
13
|
-
from cognite.neat.core.
|
|
14
|
-
from cognite.neat.core.
|
|
15
|
-
from cognite.neat.core.
|
|
12
|
+
from cognite.neat.core._data_model import catalog, importers
|
|
13
|
+
from cognite.neat.core._data_model.importers import BaseImporter
|
|
14
|
+
from cognite.neat.core._data_model.models.entities._single_value import ViewEntity
|
|
15
|
+
from cognite.neat.core._data_model.transformers import ClassicPrepareCore
|
|
16
|
+
from cognite.neat.core._data_model.transformers._converters import (
|
|
17
|
+
ToEnterpriseModel,
|
|
18
|
+
_SubsetEditableCDMRules,
|
|
19
|
+
)
|
|
20
|
+
from cognite.neat.core._instances import examples as instances_examples
|
|
21
|
+
from cognite.neat.core._instances import extractors
|
|
22
|
+
from cognite.neat.core._instances.extractors._classic_cdf._base import InstanceIdPrefix
|
|
23
|
+
from cognite.neat.core._instances.transformers import (
|
|
16
24
|
ConvertLiteral,
|
|
17
25
|
LiteralToEntity,
|
|
18
26
|
Transformers,
|
|
19
27
|
)
|
|
20
|
-
from cognite.neat.core.
|
|
28
|
+
from cognite.neat.core._instances.transformers._prune_graph import (
|
|
21
29
|
AttachPropertyFromTargetToSource,
|
|
22
30
|
PruneDeadEndEdges,
|
|
23
31
|
PruneInstancesOfUnknownType,
|
|
@@ -26,14 +34,6 @@ from cognite.neat.core._graph.transformers._prune_graph import (
|
|
|
26
34
|
from cognite.neat.core._issues import IssueList
|
|
27
35
|
from cognite.neat.core._issues.errors import NeatValueError
|
|
28
36
|
from cognite.neat.core._issues.warnings import MissingCogniteClientWarning
|
|
29
|
-
from cognite.neat.core._rules import catalog, importers
|
|
30
|
-
from cognite.neat.core._rules.importers import BaseImporter
|
|
31
|
-
from cognite.neat.core._rules.models.entities._single_value import ViewEntity
|
|
32
|
-
from cognite.neat.core._rules.transformers import ClassicPrepareCore
|
|
33
|
-
from cognite.neat.core._rules.transformers._converters import (
|
|
34
|
-
ToEnterpriseModel,
|
|
35
|
-
_SubsetEditableCDMRules,
|
|
36
|
-
)
|
|
37
37
|
from cognite.neat.core._utils.reader import NeatReader
|
|
38
38
|
from cognite.neat.session._experimental import ExperimentalFlags
|
|
39
39
|
|
cognite/neat/session/_set.py
CHANGED
|
@@ -3,11 +3,11 @@ from cognite.client import data_modeling as dm
|
|
|
3
3
|
|
|
4
4
|
from cognite.neat.core._client import NeatClient
|
|
5
5
|
from cognite.neat.core._constants import COGNITE_MODELS
|
|
6
|
-
from cognite.neat.core.
|
|
6
|
+
from cognite.neat.core._data_model.models import DMSRules
|
|
7
|
+
from cognite.neat.core._data_model.transformers import SetIDDMSModel
|
|
8
|
+
from cognite.neat.core._instances.transformers import SetType
|
|
7
9
|
from cognite.neat.core._issues import IssueList
|
|
8
10
|
from cognite.neat.core._issues.errors import NeatValueError
|
|
9
|
-
from cognite.neat.core._rules.models import DMSRules
|
|
10
|
-
from cognite.neat.core._rules.transformers import SetIDDMSModel
|
|
11
11
|
from cognite.neat.core._utils.text import humanize_collection
|
|
12
12
|
|
|
13
13
|
from ._state import SessionState
|
cognite/neat/session/_show.py
CHANGED
|
@@ -7,7 +7,7 @@ from IPython.display import HTML, display
|
|
|
7
7
|
from pyvis.network import Network as PyVisNetwork # type: ignore
|
|
8
8
|
|
|
9
9
|
from cognite.neat.core._constants import IN_NOTEBOOK, IN_PYODIDE
|
|
10
|
-
from cognite.neat.core.
|
|
10
|
+
from cognite.neat.core._data_model.analysis._base import RulesAnalysis
|
|
11
11
|
from cognite.neat.core._utils.io_ import to_directory_compatible
|
|
12
12
|
from cognite.neat.core._utils.rdf_ import remove_namespace_from_uri, uri_display_name
|
|
13
13
|
from cognite.neat.session.exceptions import NeatSessionError
|
cognite/neat/session/_state.py
CHANGED
|
@@ -4,13 +4,13 @@ from typing import Literal, cast
|
|
|
4
4
|
from rdflib import URIRef
|
|
5
5
|
|
|
6
6
|
from cognite.neat.core._client import NeatClient
|
|
7
|
-
from cognite.neat.core.
|
|
8
|
-
from cognite.neat.core.
|
|
9
|
-
from cognite.neat.core.
|
|
10
|
-
from cognite.neat.core._rules.models import DMSRules, InformationRules
|
|
11
|
-
from cognite.neat.core._rules.transformers import (
|
|
7
|
+
from cognite.neat.core._data_model.importers import BaseImporter, InferenceImporter
|
|
8
|
+
from cognite.neat.core._data_model.models import ConceptualDataModel, DMSRules
|
|
9
|
+
from cognite.neat.core._data_model.transformers import (
|
|
12
10
|
VerifiedRulesTransformer,
|
|
13
11
|
)
|
|
12
|
+
from cognite.neat.core._instances.extractors import KnowledgeGraphExtractor
|
|
13
|
+
from cognite.neat.core._issues import IssueList
|
|
14
14
|
from cognite.neat.core._store import NeatGraphStore, NeatRulesStore
|
|
15
15
|
from cognite.neat.core._utils.upload import UploadResultList
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ class SessionState:
|
|
|
26
26
|
) -> None:
|
|
27
27
|
self.instances = InstancesState(store_type, storage_path=storage_path)
|
|
28
28
|
self.rule_store = NeatRulesStore()
|
|
29
|
-
self.last_reference: DMSRules |
|
|
29
|
+
self.last_reference: DMSRules | ConceptualDataModel | None = None
|
|
30
30
|
self.client = client
|
|
31
31
|
self.quoted_source_identifiers = False
|
|
32
32
|
|
cognite/neat/session/_subset.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import warnings
|
|
2
2
|
|
|
3
|
-
from cognite.neat.core.
|
|
4
|
-
from cognite.neat.core._rules.models.entities._single_value import (
|
|
3
|
+
from cognite.neat.core._data_model.models.entities._single_value import (
|
|
5
4
|
ClassEntity,
|
|
6
5
|
ViewEntity,
|
|
7
6
|
)
|
|
8
|
-
from cognite.neat.core.
|
|
7
|
+
from cognite.neat.core._data_model.transformers import SubsetDMSRules, SubsetInformationRules
|
|
8
|
+
from cognite.neat.core._issues._base import IssueList
|
|
9
9
|
from cognite.neat.session._experimental import ExperimentalFlags
|
|
10
10
|
|
|
11
11
|
from ._state import SessionState
|
|
@@ -4,20 +4,20 @@ from typing import Any, Literal
|
|
|
4
4
|
from cognite.client.data_classes.data_modeling import DataModelIdentifier
|
|
5
5
|
|
|
6
6
|
from cognite.neat.core._constants import BASE_MODEL
|
|
7
|
-
from cognite.neat.core.
|
|
8
|
-
from cognite.neat.core.
|
|
9
|
-
from cognite.neat.core.
|
|
10
|
-
from cognite.neat.core.
|
|
11
|
-
from cognite.neat.core.
|
|
12
|
-
from cognite.neat.core.
|
|
13
|
-
from cognite.neat.core.
|
|
14
|
-
from cognite.neat.core._rules.transformers import (
|
|
7
|
+
from cognite.neat.core._data_model._shared import ReadRules
|
|
8
|
+
from cognite.neat.core._data_model.exporters import ExcelExporter
|
|
9
|
+
from cognite.neat.core._data_model.importers import ExcelImporter
|
|
10
|
+
from cognite.neat.core._data_model.models import UnverifiedConceptualDataModel
|
|
11
|
+
from cognite.neat.core._data_model.models._base_verified import RoleTypes
|
|
12
|
+
from cognite.neat.core._data_model.models.dms import DMSValidation
|
|
13
|
+
from cognite.neat.core._data_model.transformers import (
|
|
15
14
|
AddCogniteProperties,
|
|
16
15
|
IncludeReferenced,
|
|
17
16
|
ToDataProductModel,
|
|
18
17
|
ToEnterpriseModel,
|
|
19
18
|
VerifiedRulesTransformer,
|
|
20
19
|
)
|
|
20
|
+
from cognite.neat.core._issues import IssueList, catch_issues
|
|
21
21
|
from cognite.neat.core._utils.reader import NeatReader, PathReader
|
|
22
22
|
from cognite.neat.session._experimental import ExperimentalFlags
|
|
23
23
|
|
|
@@ -185,10 +185,10 @@ class TemplateAPI:
|
|
|
185
185
|
output_path = Path(output)
|
|
186
186
|
|
|
187
187
|
with catch_issues() as issues:
|
|
188
|
-
read: ReadRules[
|
|
188
|
+
read: ReadRules[UnverifiedConceptualDataModel] = ExcelImporter(path).to_rules()
|
|
189
189
|
if read.rules is not None:
|
|
190
190
|
# If rules are None there will be issues that are already caught.
|
|
191
|
-
if not isinstance(read.rules,
|
|
191
|
+
if not isinstance(read.rules, UnverifiedConceptualDataModel):
|
|
192
192
|
raise NeatSessionError(f"The input {reader.name} must contain an InformationInputRules object. ")
|
|
193
193
|
if self._state.client is None:
|
|
194
194
|
raise NeatSessionError("Client must be set in the session to run the extension.")
|
cognite/neat/session/_to.py
CHANGED
|
@@ -8,14 +8,14 @@ from cognite.client.data_classes.data_modeling import DataModelIdentifier
|
|
|
8
8
|
|
|
9
9
|
from cognite.neat.core._client._api_client import NeatClient
|
|
10
10
|
from cognite.neat.core._constants import COGNITE_MODELS
|
|
11
|
-
from cognite.neat.core.
|
|
11
|
+
from cognite.neat.core._data_model import exporters
|
|
12
|
+
from cognite.neat.core._data_model._constants import PATTERNS
|
|
13
|
+
from cognite.neat.core._data_model._shared import VerifiedRules
|
|
14
|
+
from cognite.neat.core._data_model.importers import DMSImporter
|
|
15
|
+
from cognite.neat.core._data_model.models import ConceptualDataModel, DMSRules
|
|
16
|
+
from cognite.neat.core._data_model.models.dms import DMSMetadata
|
|
17
|
+
from cognite.neat.core._instances import loaders
|
|
12
18
|
from cognite.neat.core._issues import IssueList, NeatIssue, catch_issues
|
|
13
|
-
from cognite.neat.core._rules import exporters
|
|
14
|
-
from cognite.neat.core._rules._constants import PATTERNS
|
|
15
|
-
from cognite.neat.core._rules._shared import VerifiedRules
|
|
16
|
-
from cognite.neat.core._rules.importers import DMSImporter
|
|
17
|
-
from cognite.neat.core._rules.models import DMSRules, InformationRules
|
|
18
|
-
from cognite.neat.core._rules.models.dms import DMSMetadata
|
|
19
19
|
from cognite.neat.core._utils.upload import UploadResultList
|
|
20
20
|
from cognite.neat.session._experimental import ExperimentalFlags
|
|
21
21
|
|
|
@@ -118,7 +118,7 @@ class ToAPI:
|
|
|
118
118
|
|
|
119
119
|
if include_reference is not False:
|
|
120
120
|
if include_reference is True and self._state.last_reference is not None:
|
|
121
|
-
ref_rules:
|
|
121
|
+
ref_rules: ConceptualDataModel | DMSRules | None = self._state.last_reference
|
|
122
122
|
elif include_reference is True:
|
|
123
123
|
ref_rules = None
|
|
124
124
|
else:
|
cognite/neat/session/_wizard.py
CHANGED
|
@@ -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.core.
|
|
6
|
+
from cognite.neat.core._data_model._constants import PATTERNS
|
|
7
7
|
|
|
8
8
|
RDFFileType = Literal["Ontology", "IMF Types", "Inference"]
|
|
9
9
|
NeatObjectType = Literal["Data Model", "Instances"]
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
cognite/neat/__init__.py,sha256=12StS1dzH9_MElqxGvLWrNsxCJl9Hv8A2a9D0E5OD_U,193
|
|
2
|
+
cognite/neat/_version.py,sha256=QPiToXZyFTucBDxkw5UAEN-_DV3gMzEXxr1Vh7EdIZA,46
|
|
3
|
+
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
cognite/neat/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
cognite/neat/core/_config.py,sha256=WT1BS8uADcFvGoUYOOfwFOVq_VBl472TisdoA3wLick,280
|
|
6
|
+
cognite/neat/core/_constants.py,sha256=NHnZQvYE_tADF1y6U1EgnAK1DUvyqkr4FFQ3Pjv6hjA,8116
|
|
7
|
+
cognite/neat/core/_shared.py,sha256=Ov59SWYboRRsncB_5V1ZC_BAoACfNLjo80vqE5Ru6wo,2325
|
|
8
|
+
cognite/neat/core/_client/__init__.py,sha256=RQ7MwL8mwGqGHokRzsPqO3XStDzmI4-c12_gz1UPJ74,177
|
|
9
|
+
cognite/neat/core/_client/_api_client.py,sha256=4Wa4IWK6oUJEsS2PMw5k1fPI99xq2q-TCC3vpXow7us,719
|
|
10
|
+
cognite/neat/core/_client/testing.py,sha256=aIJWPWzl65OlF2Jr4yzKlC59TpLD8iHqpdU1Fwtkj-k,1180
|
|
11
|
+
cognite/neat/core/_client/_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
+
cognite/neat/core/_client/_api/data_modeling_loaders.py,sha256=YEZP0V_RXenzzFSxDzt4SbVnpzB4VP0fcI-Bab1VLw8,39815
|
|
13
|
+
cognite/neat/core/_client/_api/neat_instances.py,sha256=2rSt4FVPvLA0lzwwOvCC9fJk87jTF1vudLO9Z6pgpk4,3354
|
|
14
|
+
cognite/neat/core/_client/_api/schema.py,sha256=lbA8Cka_7K_RjmaxdeqkVkIwKPfWeDvpYvvEOGI07xo,6967
|
|
15
|
+
cognite/neat/core/_client/data_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
cognite/neat/core/_client/data_classes/data_modeling.py,sha256=RvpUp9ygd-yffQFJ7O2mQqMLDPIa-dmip5zPb8QVIiw,6672
|
|
17
|
+
cognite/neat/core/_client/data_classes/neat_sequence.py,sha256=QZWSfWnwk6KlYJvsInco4Wdwc1U8DnOQKWmHebArbQY,10830
|
|
18
|
+
cognite/neat/core/_client/data_classes/schema.py,sha256=SpkBGbC2SUJG38Ixf1vYJINI66i_OZaT03q4XKRtK54,25067
|
|
19
|
+
cognite/neat/core/_data_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
cognite/neat/core/_data_model/_constants.py,sha256=-5o4mYuuU_BUBJF2H20BrcwEHQDv176gHT20-4V6R_4,5919
|
|
21
|
+
cognite/neat/core/_data_model/_shared.py,sha256=784KUCW2L4ga8rpX0X3aV0xS-6RwiUAKLkIiM-GvIKc,1439
|
|
22
|
+
cognite/neat/core/_data_model/analysis/__init__.py,sha256=0Y7KiXpzrwOIU7GVlC3zlizj1TXe6sodAJzMh1rTZLE,62
|
|
23
|
+
cognite/neat/core/_data_model/analysis/_base.py,sha256=eVOT4SnXsc_wh3C_z7-LOyft8ArwOcNECnzrXF8uWy4,23676
|
|
24
|
+
cognite/neat/core/_data_model/catalog/__init__.py,sha256=dwDB8b-5GKZuwVyPuiwsH0EaK2FY9-wJrkTjKoL8KE4,250
|
|
25
|
+
cognite/neat/core/_data_model/catalog/classic_model.xlsx,sha256=YkocpkKypizjsWYwOdn5yzIz_BSl8T8SQLxgm4GIjLQ,15014
|
|
26
|
+
cognite/neat/core/_data_model/catalog/hello_world_pump.xlsx,sha256=E63t5U1PQLIoUfXp1mEuhuq8I2TGKovZlEfIhO5bevw,23322
|
|
27
|
+
cognite/neat/core/_data_model/catalog/info-rules-imf.xlsx,sha256=vrE5g8vBtsGpwJqygxG3t9I3x4SUAyQsi1vtWfZ8QW4,53682
|
|
28
|
+
cognite/neat/core/_data_model/exporters/__init__.py,sha256=IYBa0DIYlx8cFItgYRw9W4FY_LmVEjuaqMz3JORZZX0,1204
|
|
29
|
+
cognite/neat/core/_data_model/exporters/_base.py,sha256=Fd7jv0z_eu-hCPOa2XIyrkwL_cVcO1NbYfuT9FIHGGk,2324
|
|
30
|
+
cognite/neat/core/_data_model/exporters/_rules2dms.py,sha256=TiW45V4zjCEHTZEra_5-O_azXT03vU4wImt2Ax9KMgI,19701
|
|
31
|
+
cognite/neat/core/_data_model/exporters/_rules2excel.py,sha256=lWDiPNhePDmTd-_9dP883nnt6qRiQ8NvTpoJ7gmyxLI,25172
|
|
32
|
+
cognite/neat/core/_data_model/exporters/_rules2instance_template.py,sha256=9GaTJ7qVp9bvnwHgLYx2EXNxJvKo4wIDQqd45FrRq2o,6052
|
|
33
|
+
cognite/neat/core/_data_model/exporters/_rules2ontology.py,sha256=KsOvSExlGoXF92o_TbhwAqBUMVNeGSMuk-CTK3Q7mzw,23168
|
|
34
|
+
cognite/neat/core/_data_model/exporters/_rules2yaml.py,sha256=oODKqCcbPIe9AF3xLuonUxg2-qnRGqBLuhRO47ahq28,3170
|
|
35
|
+
cognite/neat/core/_data_model/exporters/_validation.py,sha256=OsF1-h3cfN87nq-m92-O0oENcH8okXuIZcE9HaFZfW8,697
|
|
36
|
+
cognite/neat/core/_data_model/importers/__init__.py,sha256=v7UAtlC0YsLW2NAQxTYMHKzyHrV_OHV8roqUa_4B6Vk,1334
|
|
37
|
+
cognite/neat/core/_data_model/importers/_base.py,sha256=2sECqs4kGz9_GOhYr5txALCbf8B8hoP7UdMBUyWXzOo,1970
|
|
38
|
+
cognite/neat/core/_data_model/importers/_dms2rules.py,sha256=2JSNyi9kdACeIhyAPc2_1kPYmIYk1RdBUy-j6cAxORY,27755
|
|
39
|
+
cognite/neat/core/_data_model/importers/_spreadsheet2rules.py,sha256=RcR825mxQhCjjH-Vfl9h0qXXnOYCholLtz4g_T24F5A,9996
|
|
40
|
+
cognite/neat/core/_data_model/importers/_yaml2rules.py,sha256=u_dSDu3QlMHQUImhLk-_DWsJE661j78MAJb5He-5NIs,3931
|
|
41
|
+
cognite/neat/core/_data_model/importers/_dtdl2rules/__init__.py,sha256=CNR-sUihs2mnR1bPMKs3j3L4ds3vFTsrl6YycExZTfU,68
|
|
42
|
+
cognite/neat/core/_data_model/importers/_dtdl2rules/_unit_lookup.py,sha256=wW4saKva61Q_i17guY0dc4OseJDQfqHy_QZBtm0OD6g,12134
|
|
43
|
+
cognite/neat/core/_data_model/importers/_dtdl2rules/dtdl_converter.py,sha256=bCSQ636K0i6jb1zTCaofdykSrimGUVGmOLtuQK6BpHE,11847
|
|
44
|
+
cognite/neat/core/_data_model/importers/_dtdl2rules/dtdl_importer.py,sha256=1P-QIuLnzXHZl_nj58eJxDkMJPh2BPHZG2MBKXCYLJU,6238
|
|
45
|
+
cognite/neat/core/_data_model/importers/_dtdl2rules/spec.py,sha256=tk1fjvLaEjTiXohtJxJDTkKYSjQfgO0q2P9lRkCTsyM,12170
|
|
46
|
+
cognite/neat/core/_data_model/importers/_rdf/__init__.py,sha256=2alnwoYVj1-F_M0R2NFFp7A9pZUbViJngygOydlC45Y,239
|
|
47
|
+
cognite/neat/core/_data_model/importers/_rdf/_base.py,sha256=jZPTaZMFFhmugM25FD5XjLrKpcnR5iGljplmGNnkGoc,5906
|
|
48
|
+
cognite/neat/core/_data_model/importers/_rdf/_imf2rules.py,sha256=hFMRQ0BDwxCNLyAiV7Fct03_sSZ6CXOaCnXSlSC9qKQ,3756
|
|
49
|
+
cognite/neat/core/_data_model/importers/_rdf/_inference2rules.py,sha256=NwMVgKvaFX9632yczNWDa48G8Obk2W6OSYAt3KB6XW0,28839
|
|
50
|
+
cognite/neat/core/_data_model/importers/_rdf/_owl2rules.py,sha256=a3_ixqavMMw2IFnO9diaxR_aJjUA9hf0ayvIFg5xRWk,3425
|
|
51
|
+
cognite/neat/core/_data_model/importers/_rdf/_shared.py,sha256=-modNxX6T5K5cBsY39i5DzjXZ2jtwtSc5JXoDJjEREc,5896
|
|
52
|
+
cognite/neat/core/_data_model/models/__init__.py,sha256=MS-SYo5s6o7SeCzIR8npFPCG_ONAqntKn7UWYGu-o7Y,1114
|
|
53
|
+
cognite/neat/core/_data_model/models/_base_unverified.py,sha256=1_0qvZeDunyUWHHwMtOFEVmNhMSAbz4IVSEzrZffd2s,6749
|
|
54
|
+
cognite/neat/core/_data_model/models/_base_verified.py,sha256=XSouxiNdHg2Y3Dc2eoyGur4nMzKTAWWndIrh9JvWvdo,15513
|
|
55
|
+
cognite/neat/core/_data_model/models/_types.py,sha256=4YMNcJi335NMn2dVnOg1JZGp3TW7eENzmGjMBePeiLY,5468
|
|
56
|
+
cognite/neat/core/_data_model/models/data_types.py,sha256=llaQaG4S5V-OzAGAjvOJgBaDcCwyNc2mK1V9bcM1Hk4,10146
|
|
57
|
+
cognite/neat/core/_data_model/models/conceptual/__init__.py,sha256=bKIpOt0RRb-NgGHzWIOyB3ZW6jyXoDHQHPuUr9pfYdE,619
|
|
58
|
+
cognite/neat/core/_data_model/models/conceptual/_unverified.py,sha256=Z6hvu-Zik5zkQ_LCm2zHCXOhU_TJOqC9xv-aIo-5TS4,6289
|
|
59
|
+
cognite/neat/core/_data_model/models/conceptual/_validation.py,sha256=hkb4gC9aCxBVkYAehkZDCqnfQ_WjsOEgKcskSUBnAE8,12275
|
|
60
|
+
cognite/neat/core/_data_model/models/conceptual/_verified.py,sha256=d53IZbXfomtLq2vUO0jFv65IOKsF2z9PxzvfkjwHvbk,13425
|
|
61
|
+
cognite/neat/core/_data_model/models/dms/__init__.py,sha256=0pCMFiq98BirgrgUZmDGkjuK_y63hc22csDfn7D20x8,700
|
|
62
|
+
cognite/neat/core/_data_model/models/dms/_exporter.py,sha256=zkzy6SNMGnR08R-lVHvqld_v8fIaNClfSt52k4zKfaI,28656
|
|
63
|
+
cognite/neat/core/_data_model/models/dms/_rules.py,sha256=9NSwKUahpT3QA6MDyVUhceLSUlqBK9BiRTUoBBKrDPY,23651
|
|
64
|
+
cognite/neat/core/_data_model/models/dms/_rules_input.py,sha256=sUosYb_O4gOg7nl7NuA_hFdU_gbGMAStyLnjRSO0u6U,16549
|
|
65
|
+
cognite/neat/core/_data_model/models/dms/_validation.py,sha256=_kHY9saoA7t7p2VTUwOAEAqNgkytW-EruPPEL_JtWlw,33000
|
|
66
|
+
cognite/neat/core/_data_model/models/entities/__init__.py,sha256=Hlucp3LyV6ncLl79aqRTbSy2qgiGzoyN8x54D_zaJCY,1469
|
|
67
|
+
cognite/neat/core/_data_model/models/entities/_constants.py,sha256=GXRzVfArwxF3C67VCkzy0JWTZRkRJUYXBQaaecrqcWc,351
|
|
68
|
+
cognite/neat/core/_data_model/models/entities/_loaders.py,sha256=zhSevOKFcr9bYC2PNTfHVpRCrkAa54pE3N2_eGCYukE,2743
|
|
69
|
+
cognite/neat/core/_data_model/models/entities/_multi_value.py,sha256=Dxg6DNO6YbRKxZyaDH5bAna7aVdP3OoSSo9fX3wBNbE,2782
|
|
70
|
+
cognite/neat/core/_data_model/models/entities/_single_value.py,sha256=2osHthRmd5mCYG4kpEjrW0876CM1OCmZFqLnfVESLDw,19911
|
|
71
|
+
cognite/neat/core/_data_model/models/entities/_types.py,sha256=df9rnXJJKciv2Bp-Ve2q4xdEJt6WWniq12Z0hW2d6sk,1917
|
|
72
|
+
cognite/neat/core/_data_model/models/entities/_wrapped.py,sha256=6ZpVTOmx08Q1FrvSjAHuixXqp3k4fH60Wr2de-c8Z2Q,7963
|
|
73
|
+
cognite/neat/core/_data_model/models/mapping/__init__.py,sha256=T68Hf7rhiXa7b03h4RMwarAmkGnB-Bbhc1H07b2PyC4,100
|
|
74
|
+
cognite/neat/core/_data_model/models/mapping/_classic2core.py,sha256=3AaI5ExgoRA-m8ishr_5r0MIiBi4a3sn5yMohFw-NFw,1256
|
|
75
|
+
cognite/neat/core/_data_model/models/mapping/_classic2core.yaml,sha256=ei-nuivNWVW9HmvzDBKIPF6ZdgaMq64XHw_rKm0CMxg,22584
|
|
76
|
+
cognite/neat/core/_data_model/transformers/__init__.py,sha256=icjtZq6Hc122fEj9AGEcDB8QuF2JL6dWe4utne73naQ,1617
|
|
77
|
+
cognite/neat/core/_data_model/transformers/_base.py,sha256=WQxlOU3USpHXqQXc6m9UZW9LrO3EPtFnIKzHnUYvkB0,2842
|
|
78
|
+
cognite/neat/core/_data_model/transformers/_converters.py,sha256=YzPb055ZsGsE6jBpT-ZFMJf7xay1xKX75QjUAylzzmM,105877
|
|
79
|
+
cognite/neat/core/_data_model/transformers/_mapping.py,sha256=nuIDNvJcjUuHOnay2X47xWebk--0m0MXtb1Svz7_7Mw,18326
|
|
80
|
+
cognite/neat/core/_data_model/transformers/_verification.py,sha256=TkUuU33br0OiuMNbunfGsRDAKK3byCcJizzW63zBdFg,4474
|
|
81
|
+
cognite/neat/core/_instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
|
+
cognite/neat/core/_instances/_shared.py,sha256=6avH6mtjxjHI7JDLkXwICxGvZwooGBr6APs1_w1To-A,940
|
|
83
|
+
cognite/neat/core/_instances/_tracking/__init__.py,sha256=WOwsYieZtCW-iW15YkxUFrfKVVdLWdXHOGGStTwvE8A,91
|
|
84
|
+
cognite/neat/core/_instances/_tracking/base.py,sha256=tDS7UHFj58sT1CtqWjp3pL5P3n4qqJuf06MpdT2tA2g,826
|
|
85
|
+
cognite/neat/core/_instances/_tracking/log.py,sha256=rXjoRenOZO4TiZl7d1slBhwUUcEbtyD7uuKpg1MGmkg,933
|
|
86
|
+
cognite/neat/core/_instances/examples/Knowledge-Graph-Nordic44-dirty.xml,sha256=ujJip6XBs5n8enVDPzNnuGkMBwv8g21tIr1sEVJpK5M,1439359
|
|
87
|
+
cognite/neat/core/_instances/examples/Knowledge-Graph-Nordic44.xml,sha256=U2Ns-M4LRjT1fBkhmRj63ur7jDzlRtHK9yOLf_npZ_g,1437996
|
|
88
|
+
cognite/neat/core/_instances/examples/__init__.py,sha256=yAjHVY3b5jOjmbW-iLbhvu7BG014TpGi3K4igkDqW5I,368
|
|
89
|
+
cognite/neat/core/_instances/examples/skos-capturing-sheet-wind-topics.xlsx,sha256=CV_yK5ZSbYS_ktfIZUPD8Sevs47zpswLXQUDFkGE4Gw,45798
|
|
90
|
+
cognite/neat/core/_instances/extractors/__init__.py,sha256=6Rl6_za_F1nnLGwOhXvGohvM0-P1sFrxHJRUVqQVBWo,2209
|
|
91
|
+
cognite/neat/core/_instances/extractors/_base.py,sha256=QAVi2L9WrDpaJmn-kdOpAmwGg5N93cOQEvxMgP2cpzA,1948
|
|
92
|
+
cognite/neat/core/_instances/extractors/_dict.py,sha256=Y5J5WvrIQOa762y59Jv2jNLFQmTSUBwL8XY-ormd7R0,4331
|
|
93
|
+
cognite/neat/core/_instances/extractors/_dms.py,sha256=e687PHBnqh5CS292xaxIRsD9v2cdcsZU3Yg6aVVw4rQ,13840
|
|
94
|
+
cognite/neat/core/_instances/extractors/_dms_graph.py,sha256=kha5ivNxxenhcPFoNTX1mh0pjmRMARpcbswmRDD2ers,9552
|
|
95
|
+
cognite/neat/core/_instances/extractors/_mock_graph_generator.py,sha256=tuqZblVXhZqTq7lgDvnKhsewH8fm-B-4W6H4iPRkz9g,15540
|
|
96
|
+
cognite/neat/core/_instances/extractors/_raw.py,sha256=Jw_Nci5giKgU7k8NV2SZvnYZ0ykPlE2NEIOZLcr0dlQ,2514
|
|
97
|
+
cognite/neat/core/_instances/extractors/_rdf_file.py,sha256=j93C7WWB5G-e2fFHmItzLfzxkZDqjiSaBrA36wMxIsU,2956
|
|
98
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_assets.py,sha256=9WVFrAtUFAp_AAlb26Rtt2Axz9xsPQYetg7SKVrNCr4,1474
|
|
100
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_base.py,sha256=_Pzx1QmqEOuT03BStUx7Y6JuBi4SjRrLnk1qLk5F-nc,18513
|
|
101
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_classic.py,sha256=MOadwZiegQZsSByFxJOTjeT6dK2Nkhl-_gzBMx4MuaU,24366
|
|
102
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_data_sets.py,sha256=xRFv9pVFgIMTZ45E8teMC0Ynku_CuZdcZkVCbhPuPBk,1294
|
|
103
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_events.py,sha256=B8hRoMAg8GQvApjxals5PfPyjmdPO93U3nj_G7g0kDQ,1394
|
|
104
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_files.py,sha256=9lIleYyM3r0_CHteTEWboyknBeHYNtvgpNJuvS9UUU0,1894
|
|
105
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_labels.py,sha256=7guTZdGFT1r7ItE2VNgXwbBZ1y_005oB3fg1XbwT7WQ,2083
|
|
106
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_relationships.py,sha256=kNzrqHQuIZMBecZ8957Qs3-Pp2m2-k2CCfiUZlVwaD0,5395
|
|
107
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_sequences.py,sha256=zwHM52afnq-JHvLOTi4rH6DyfkTftxH6cmODwoZi8uw,11399
|
|
108
|
+
cognite/neat/core/_instances/extractors/_classic_cdf/_timeseries.py,sha256=Py8MDcn82MJcsDPbeqDHMx4g2rQHmEOSHNe6gOi5gew,2044
|
|
109
|
+
cognite/neat/core/_instances/loaders/__init__.py,sha256=XS6vwmxgBzntg7UuG_ct_1hfhShVnFH5u0gGrdA8WfA,699
|
|
110
|
+
cognite/neat/core/_instances/loaders/_base.py,sha256=bQMhykdxoVJy2fYEMDa1oFTjecKpSTZFjsVrTOPdN7w,4497
|
|
111
|
+
cognite/neat/core/_instances/loaders/_rdf2dms.py,sha256=xJp3dJXgwFjoFEsoyFJ2thP-1g1ixFd1tP60cVbkC_0,34096
|
|
112
|
+
cognite/neat/core/_instances/queries/__init__.py,sha256=W477LMyB4l6HIRbQhJoFgA_MUBwVCh2GBvtFeZu0AUA,53
|
|
113
|
+
cognite/neat/core/_instances/queries/_base.py,sha256=APevHeeWQDEoOQ0MlBtVlPf9hbZukVkI5fOvt5oPJCE,543
|
|
114
|
+
cognite/neat/core/_instances/queries/_queries.py,sha256=4BidSQXhdZYZ6_kyG7jMJ2iG0UtSrbQxfmwPM7V167A,466
|
|
115
|
+
cognite/neat/core/_instances/queries/_select.py,sha256=ah4F03SJLUVsn_Fw4NHDi1KtiMXYNXpMYlalqW7eK_E,18533
|
|
116
|
+
cognite/neat/core/_instances/queries/_update.py,sha256=j2hU62rEIYWvZ_ZAkm9Khc2lNddnww0W-1jR7MJJbFY,1290
|
|
117
|
+
cognite/neat/core/_instances/transformers/__init__.py,sha256=YzC1Z8BuT77NwagWX4Z-F9R9BARLSS7zM4bCdxBbqKg,1761
|
|
118
|
+
cognite/neat/core/_instances/transformers/_base.py,sha256=WM2LotFRAtHFp6uh-mJMbj8VUdybyHBbrNN_6kEvDf4,4599
|
|
119
|
+
cognite/neat/core/_instances/transformers/_classic_cdf.py,sha256=Bybiebd9MnDVKqwmwtrToH6CNZG3kLE1YjRYUVCZPVY,25328
|
|
120
|
+
cognite/neat/core/_instances/transformers/_prune_graph.py,sha256=fWE73BndkEB7qfMndrt3afNQ-EsBO7IOfh2-SXAAYK4,12635
|
|
121
|
+
cognite/neat/core/_instances/transformers/_rdfpath.py,sha256=NwK1uBj5fkAThSDRgcTE7Qc8SZKCMSM5oC9MggjC8-I,3161
|
|
122
|
+
cognite/neat/core/_instances/transformers/_value_type.py,sha256=lOIZGb93yE_ivlIVpfpzilG6cRkjE4dlCAULeve71Bo,15834
|
|
123
|
+
cognite/neat/core/_issues/__init__.py,sha256=NQ-PN3fqp-hBPlpG2AZEND4cDn3_3UXAPfhLNtF5mtc,457
|
|
124
|
+
cognite/neat/core/_issues/_base.py,sha256=v3vt-oe_-Y0-W3jIcuMCphovlGgqqPHKTbn8mozXcRM,11760
|
|
125
|
+
cognite/neat/core/_issues/_contextmanagers.py,sha256=5-QXVmfplt4S_k2csrQ2xuezOOuE5_FxSA9GVGVG1s4,1582
|
|
126
|
+
cognite/neat/core/_issues/_factory.py,sha256=F8xv1_qUAkavFM3s_8Lcsobm22H3zK0CVGSwl0YANoo,2821
|
|
127
|
+
cognite/neat/core/_issues/formatters.py,sha256=k2h_6wHW0ve52gXeuRoEcGwrxqqSe5sYFa_HycPiqW8,3323
|
|
128
|
+
cognite/neat/core/_issues/errors/__init__.py,sha256=ksvhk4suYcTMSu1KFF44EwcYMXNdFa6lphuhMndaz4M,2364
|
|
129
|
+
cognite/neat/core/_issues/errors/_external.py,sha256=AaKwO5-AvX01d7Hd83vqYl1qNmMtgsmShmvyH8ioZAM,2354
|
|
130
|
+
cognite/neat/core/_issues/errors/_general.py,sha256=R6TNBmvCsicqadC56ehiEc9lS18K5DMyK2_UXfv74uA,854
|
|
131
|
+
cognite/neat/core/_issues/errors/_properties.py,sha256=XkMLO4tkFX8vmGRixLdsmDAnlcipc78lypGccMYVAQk,2541
|
|
132
|
+
cognite/neat/core/_issues/errors/_resources.py,sha256=OHgOIv-GSpZh6VPUINUAIn-sboCdeawWH_Qnm0MO168,3997
|
|
133
|
+
cognite/neat/core/_issues/errors/_wrapper.py,sha256=aV7PEUcrAYNnHTxyS5aTawtObImvH2WTyhrpm6_Gva8,2317
|
|
134
|
+
cognite/neat/core/_issues/warnings/__init__.py,sha256=wWt2GzMnz8PqhebT02jfUlBy4SbwXAeuWsWWga-kGL4,3101
|
|
135
|
+
cognite/neat/core/_issues/warnings/_external.py,sha256=w-1R7ea6DXTIWqwlwMMjY0YxKDMSJ8gKAbp_nIIM1AI,1324
|
|
136
|
+
cognite/neat/core/_issues/warnings/_general.py,sha256=_6dAFaMz-LIv7GsBBIBq2d-kmbuxVXKvU4jZeb7tjAo,972
|
|
137
|
+
cognite/neat/core/_issues/warnings/_models.py,sha256=tqfpGHg6iWgZUkCz-ri-OjtlMN_JqI2HUSR6PnZLWZc,4383
|
|
138
|
+
cognite/neat/core/_issues/warnings/_properties.py,sha256=XBPgOd83MbO9G0cDjAmYZ5O_ShOcYq4wT6sZGlNNvRU,3442
|
|
139
|
+
cognite/neat/core/_issues/warnings/_resources.py,sha256=_iPRq0pRMmRu3LFjqZTaG3OqOzw4f8-Vc9G4Im__FHc,3578
|
|
140
|
+
cognite/neat/core/_issues/warnings/user_modeling.py,sha256=Qn_S8TLw7MMYQaJcZBScJA48kz_PrTWz0NaepSR70Fk,4144
|
|
141
|
+
cognite/neat/core/_store/__init__.py,sha256=RrvuZrMdezqun5dOrwHWSk26kampZcvqiHBqSFumkEE,130
|
|
142
|
+
cognite/neat/core/_store/_graph_store.py,sha256=LBDZuTZ_bT6Ibq7gypx0tIbrnqwfFZTqx7Q9PNiI52s,17365
|
|
143
|
+
cognite/neat/core/_store/_provenance.py,sha256=Am21MC1NKd7bnc0adC4YCEfMwI5oFkiz6242GhJt5g4,7316
|
|
144
|
+
cognite/neat/core/_store/_rules_store.py,sha256=aX1KdZd7u34qitC9KwVRBNiAVJdCuy7B7Czt_NcU348,18749
|
|
145
|
+
cognite/neat/core/_store/exceptions.py,sha256=jpQ0qh5z-Mi4J_BvDIwsFORhgiV2SpQeqyo5wch0w6k,1648
|
|
146
|
+
cognite/neat/core/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
147
|
+
cognite/neat/core/_utils/auth.py,sha256=tP_diUZdtacUkM8TLlbSOyHlNcq9VGh-4o_7myWRU_o,14763
|
|
148
|
+
cognite/neat/core/_utils/auxiliary.py,sha256=0A5dE0oLahErqAClF3OjRge_RFqnq3GBK6L3t-GpmuM,6850
|
|
149
|
+
cognite/neat/core/_utils/collection_.py,sha256=zVrSmm4045pjw6Pt6y4VPTIJ4dXdMJPyOV70LdFyDBM,2376
|
|
150
|
+
cognite/neat/core/_utils/graph_transformations_report.py,sha256=ORVH7lw357TPOq4elU5lH46Qx6GCLVrSj-1nX6Ggk1U,1235
|
|
151
|
+
cognite/neat/core/_utils/io_.py,sha256=D2Mg8sOxfBoDg3fC0jBzaxO3vkXmr0QvZSgYIv6xRkM,386
|
|
152
|
+
cognite/neat/core/_utils/rdf_.py,sha256=y29L_1gATbx7yQj99Wrk7t9S2PAnMHZjElYKIFhSdsE,9933
|
|
153
|
+
cognite/neat/core/_utils/spreadsheet.py,sha256=MMI_1zxeHEf9Ggu_-t_ryjj54ky085QIf8eArt5hXEY,5749
|
|
154
|
+
cognite/neat/core/_utils/text.py,sha256=l83uL3q7-WzKVDkqhyqgVxtwmhG7HfYoDCMrOyUxD3A,8517
|
|
155
|
+
cognite/neat/core/_utils/time_.py,sha256=7ayUm0OWZm1JDmy32E4ip8WRr2o0GLwrHwJA8sJ43Z4,357
|
|
156
|
+
cognite/neat/core/_utils/upload.py,sha256=yR-BvvrWPh0XHoIGByXMEVi3JONzmc5xwXbmEDBdA8U,5860
|
|
157
|
+
cognite/neat/core/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
158
|
+
cognite/neat/core/_utils/reader/__init__.py,sha256=fPkrNB_9hLB7CyHTCFV_xEbIfOMqUQzNly5JN33-QfM,146
|
|
159
|
+
cognite/neat/core/_utils/reader/_base.py,sha256=fRXxUWW8a3UFedeCLxDTDgFntWGlHaEGxmKLcITtiWE,5417
|
|
160
|
+
cognite/neat/session/__init__.py,sha256=fxQ5URVlUnmEGYyB8Baw7IDq-uYacqkigbc4b-Pr9Fw,58
|
|
161
|
+
cognite/neat/session/_base.py,sha256=mvEE1JzK1if_qZ9jdFgy_8G5_THGJcj1OIFQbKtHGR4,12458
|
|
162
|
+
cognite/neat/session/_collector.py,sha256=-icWXOT9YBjAOVZfpPtBx-D39kpRP2RaQKdPtcr7Xm8,4233
|
|
163
|
+
cognite/neat/session/_drop.py,sha256=m6qh1CC2El_BKIZZshidHAx3zBZkBRxKu5mlFfOWcJE,4201
|
|
164
|
+
cognite/neat/session/_experimental.py,sha256=LvvLIpOO5OBC-fIXkhe-ghEF1uSeEYoWvwT6-ajrhQw,1219
|
|
165
|
+
cognite/neat/session/_explore.py,sha256=PLxpHDqBk5B0Q4a5tJKnF6KzL4heQ77b2qUETbf6iVQ,1599
|
|
166
|
+
cognite/neat/session/_fix.py,sha256=9XrNIH1Zw4DI0HDH3XqnI2c-us4V0CyZpoM_Mtt2H0g,913
|
|
167
|
+
cognite/neat/session/_inspect.py,sha256=Wual0vgetcIOje7IlTE0y-aM43Ydwf4WEr2LjbbBRZA,10116
|
|
168
|
+
cognite/neat/session/_mapping.py,sha256=0va1u4QW-f-FhF9YBISHSpIka8ne66HGPbtUVKYrbCA,2680
|
|
169
|
+
cognite/neat/session/_prepare.py,sha256=xa-35JKgi1j8X347ub6komEMNGFjytPaQReFOgeFHnA,12760
|
|
170
|
+
cognite/neat/session/_read.py,sha256=3b_KialrtbxMIAV05Mvn46Ukc7zxp8nOauugPRbBz8c,35044
|
|
171
|
+
cognite/neat/session/_set.py,sha256=ucs9FEXxDdAdD9rrqyMrblPty9PGFbTqiNpeNlKg9Z8,4532
|
|
172
|
+
cognite/neat/session/_show.py,sha256=EnwIAWeatLVRIab0Q4KU0F6EyyVgSH63SMu0vGoX8g0,10570
|
|
173
|
+
cognite/neat/session/_state.py,sha256=BfoVymacTTnohPvcFRcm_TtyirBctdlUPlU-UbhSLWI,6378
|
|
174
|
+
cognite/neat/session/_subset.py,sha256=dAk9hdyLgSEDc5T9vWG_AOm8knin5Q_PwnlcX8uVQRI,2740
|
|
175
|
+
cognite/neat/session/_template.py,sha256=_rPfCSD_iaCOsQAeBlP8HRMhFurmLDHXUmUJc146mAk,9686
|
|
176
|
+
cognite/neat/session/_to.py,sha256=kq2286hqFGZWs-p-JRt4CalrpQk152pJ0uVwnda2Dgk,18917
|
|
177
|
+
cognite/neat/session/_wizard.py,sha256=hARNNzD5Zfkk_V147rIjOLVvrFaqzXGXWhZuH1NJG3M,1486
|
|
178
|
+
cognite/neat/session/exceptions.py,sha256=pZ6z5GXBTOjmh6xIszYMYL5LckOMcqfcT_BrxHQGOTo,3269
|
|
179
|
+
cognite/neat/session/_state/README.md,sha256=G6my1CtTDNyIR7G3H1Is_92dHsH_dXjmJmYQb9xh_dk,898
|
|
180
|
+
cognite/neat/session/engine/__init__.py,sha256=D3MxUorEs6-NtgoICqtZ8PISQrjrr4dvca6n48bu_bI,120
|
|
181
|
+
cognite/neat/session/engine/_import.py,sha256=1QxA2_EK613lXYAHKQbZyw2yjo5P9XuiX4Z6_6-WMNQ,169
|
|
182
|
+
cognite/neat/session/engine/_interface.py,sha256=3W-cYr493c_mW3P5O6MKN1xEQg3cA7NHR_ev3zdF9Vk,533
|
|
183
|
+
cognite/neat/session/engine/_load.py,sha256=g52uYakQM03VqHt_RDHtpHso1-mFFifH5M4T2ScuH8A,5198
|
|
184
|
+
cognite_neat-0.121.1.dist-info/METADATA,sha256=3N5rOTdZsmqg1Ieg4VGWgC23juQkHMM28Xb3uVqC3CY,7608
|
|
185
|
+
cognite_neat-0.121.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
186
|
+
cognite_neat-0.121.1.dist-info/licenses/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
187
|
+
cognite_neat-0.121.1.dist-info/RECORD,,
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
from cognite.neat.core._client.data_classes.schema import DMSSchema
|
|
2
|
-
from cognite.neat.core._rules.models.information._rules import InformationRules
|
|
3
|
-
from cognite.neat.core._rules.models.information._rules_input import (
|
|
4
|
-
InformationInputRules,
|
|
5
|
-
)
|
|
6
|
-
|
|
7
|
-
from ._base_rules import DataModelType, ExtensionCategory, RoleTypes, SchemaCompleteness, SheetList, SheetRow
|
|
8
|
-
from .dms._rules import DMSRules
|
|
9
|
-
from .dms._rules_input import DMSInputRules
|
|
10
|
-
|
|
11
|
-
INPUT_RULES_BY_ROLE: dict[RoleTypes, type[InformationInputRules] | type[DMSInputRules]] = {
|
|
12
|
-
RoleTypes.information: InformationInputRules,
|
|
13
|
-
RoleTypes.dms: DMSInputRules,
|
|
14
|
-
}
|
|
15
|
-
VERIFIED_RULES_BY_ROLE: dict[RoleTypes, type[InformationRules] | type[DMSRules]] = {
|
|
16
|
-
RoleTypes.information: InformationRules,
|
|
17
|
-
RoleTypes.dms: DMSRules,
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__all__ = [
|
|
22
|
-
"INPUT_RULES_BY_ROLE",
|
|
23
|
-
"DMSInputRules",
|
|
24
|
-
"DMSRules",
|
|
25
|
-
"DMSSchema",
|
|
26
|
-
"DataModelType",
|
|
27
|
-
"ExtensionCategory",
|
|
28
|
-
"InformationInputRules",
|
|
29
|
-
"InformationRules",
|
|
30
|
-
"RoleTypes",
|
|
31
|
-
"SchemaCompleteness",
|
|
32
|
-
"SheetList",
|
|
33
|
-
"SheetRow",
|
|
34
|
-
]
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
from ._rules import InformationClass, InformationMetadata, InformationProperty, InformationRules
|
|
2
|
-
from ._rules_input import (
|
|
3
|
-
InformationInputClass,
|
|
4
|
-
InformationInputMetadata,
|
|
5
|
-
InformationInputProperty,
|
|
6
|
-
InformationInputRules,
|
|
7
|
-
)
|
|
8
|
-
from ._validation import InformationValidation
|
|
9
|
-
|
|
10
|
-
__all__ = [
|
|
11
|
-
"InformationClass",
|
|
12
|
-
"InformationInputClass",
|
|
13
|
-
"InformationInputMetadata",
|
|
14
|
-
"InformationInputProperty",
|
|
15
|
-
"InformationInputRules",
|
|
16
|
-
"InformationMetadata",
|
|
17
|
-
"InformationProperty",
|
|
18
|
-
"InformationRules",
|
|
19
|
-
"InformationValidation",
|
|
20
|
-
]
|