cognite-neat 0.123.38__tar.gz → 0.123.40__tar.gz
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-0.123.40/.github/CODEOWNERS +3 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.pre-commit-config.yaml +1 -1
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/PKG-INFO +1 -1
- cognite_neat-0.123.40/cognite/neat/_data_model/models/conceptual/_concept.py +67 -0
- cognite_neat-0.123.40/cognite/neat/_data_model/models/conceptual/_property.py +104 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/__init__.py +57 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_constants.py +1 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_container.py +7 -0
- cognite_neat-0.123.40/cognite/neat/_data_model/models/dms/_data_model.py +71 -0
- cognite_neat-0.123.40/cognite/neat/_data_model/models/dms/_references.py +91 -0
- cognite_neat-0.123.40/cognite/neat/_data_model/models/dms/_view_property.py +198 -0
- cognite_neat-0.123.40/cognite/neat/_data_model/models/dms/_views.py +161 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/entities/_base.py +6 -5
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/entities/_constants.py +5 -0
- cognite_neat-0.123.40/cognite/neat/_version.py +2 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/data_types.py +1 -1
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_dict.py +4 -1
- cognite_neat-0.123.40/last_changelog_entry.md +4 -0
- cognite_neat-0.123.40/last_git_message.txt +22 -0
- cognite_neat-0.123.40/last_version.txt +1 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/pyproject.toml +5 -1
- cognite_neat-0.123.40/tests/tests_data_model/test_models/test_conceptual/test_concept.py +73 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/test_models/test_conceptual/test_property.py +6 -6
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/test_models/test_entities/test_base_entities.py +20 -19
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/test_models/test_entities/test_data_type.py +2 -2
- cognite_neat-0.123.40/tests/tests_unit/test_data_model/test_models/test_dms/strategies.py +159 -0
- cognite_neat-0.123.40/tests/tests_unit/test_data_model/test_models/test_dms/test_containers.py +83 -0
- cognite_neat-0.123.40/tests/tests_unit/test_data_model/test_models/test_dms/test_data_models.py +172 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_data_model/test_models/test_dms/test_resources.py +4 -0
- cognite_neat-0.123.40/tests/tests_unit/test_data_model/test_models/test_dms/test_space.py +31 -0
- cognite_neat-0.123.40/tests/tests_unit/test_data_model/test_models/test_dms/test_views.py +290 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_data_model/test_models/test_entities/test_identifiers.py +14 -14
- cognite_neat-0.123.40/tests/v0/tests_unit/test_graph/test_extractors/test_raw_extractor.py +37 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/uv.lock +1 -1
- cognite_neat-0.123.38/.github/CODEOWNERS +0 -2
- cognite_neat-0.123.38/cognite/neat/_data_model/models/dms/_references.py +0 -22
- cognite_neat-0.123.38/cognite/neat/_version.py +0 -2
- cognite_neat-0.123.38/last_changelog_entry.md +0 -7
- cognite_neat-0.123.38/last_git_message.txt +0 -30
- cognite_neat-0.123.38/last_version.txt +0 -1
- cognite_neat-0.123.38/tests/v0/tests_unit/test_graph/test_extractors/test_raw_extractor.py +0 -27
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.coveragerc +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.gemini/styleguide.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.github/ISSUE_TEMPLATE/bug-report.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.github/ISSUE_TEMPLATE/feature-request.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.github/pull_request_template.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.github/renovate.json +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.github/workflows/code-quality.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.github/workflows/release.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.gitignore +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/.readthedocs.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/CODE_OF_CONDUCT.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/CONTRIBUTING.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/LICENSE +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/README.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cdf.toml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/codecov.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/_constants.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/_identifiers.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/conceptual/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/conceptual/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/conceptual/_properties.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_constraints.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_data_types.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_indexes.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_space.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/entities/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/entities/_data_types.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/entities/_identifiers.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/entities/_parser.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_issues.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/auxiliary.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/http_client/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/http_client/_client.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/http_client/_config.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/http_client/_data_classes.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/http_client/_tracker.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/text.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/useful_types.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_utils/validation.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/py.typed +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/_api/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/_api/data_modeling_loaders.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/_api/neat_instances.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/_api/schema.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/_api/statistics.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/_api_client.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/data_classes/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/data_classes/data_modeling.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/data_classes/neat_sequence.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/data_classes/schema.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/data_classes/statistics.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_client/testing.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_config.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_constants.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/_constants.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/_shared.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/analysis/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/analysis/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/catalog/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/catalog/classic_model.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/catalog/conceptual-imf-data-model.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/catalog/hello_world_pump.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/_data_model2dms.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/_data_model2excel.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/_data_model2instance_template.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/_data_model2semantic_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/exporters/_data_model2yaml.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_base_file_reader.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_dict2data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_dms2data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_graph2data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_rdf/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_rdf/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_rdf/_inference2rdata_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_rdf/_owl2data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_rdf/_shared.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/importers/_spreadsheet2data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/_base_unverified.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/_base_verified.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/_import_contexts.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/_types.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/conceptual/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/conceptual/_unverified.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/conceptual/_validation.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/conceptual/_verified.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_constants.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_loaders.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_multi_value.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_restrictions.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_single_value.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_types.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/entities/_wrapped.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/mapping/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/mapping/_classic2core.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/mapping/_classic2core.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/physical/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/physical/_exporter.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/physical/_unverified.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/physical/_validation.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/models/physical/_verified.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/transformers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/transformers/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/transformers/_converters.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/transformers/_mapping.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/transformers/_union_conceptual.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_data_model/transformers/_verification.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/_shared.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/_tracking/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/_tracking/base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/_tracking/log.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/examples/Knowledge-Graph-Nordic44-dirty.xml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/examples/Knowledge-Graph-Nordic44.xml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/examples/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/examples/skos-capturing-sheet-wind-topics.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_assets.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_classic.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_data_sets.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_events.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_files.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_labels.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_relationships.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_sequences.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_classic_cdf/_timeseries.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_dms.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_dms_graph.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_mock_graph_generator.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_raw.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/extractors/_rdf_file.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/loaders/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/loaders/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/loaders/_rdf2dms.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/loaders/_rdf_to_instance_space.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/queries/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/queries/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/queries/_queries.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/queries/_select.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/queries/_update.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/transformers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/transformers/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/transformers/_classic_cdf.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/transformers/_prune_graph.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/transformers/_rdfpath.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_instances/transformers/_value_type.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/_contextmanagers.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/_factory.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/errors/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/errors/_external.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/errors/_general.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/errors/_properties.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/errors/_resources.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/errors/_wrapper.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/formatters.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/_external.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/_general.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/_models.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/_properties.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/_resources.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_issues/warnings/user_modeling.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_shared.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_store/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_store/_data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_store/_instance.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_store/_provenance.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_store/exceptions.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/auth.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/auxiliary.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/collection_.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/graph_transformations_report.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/io_.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/rdf_.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/reader/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/reader/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/spreadsheet.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/tarjan.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/text.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/time_.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/upload.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/core/_utils/xml_.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/plugins/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/plugins/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/plugins/_data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/plugins/_issues.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/plugins/_manager.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_base.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_collector.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_drop.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_experimental.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_explore.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_fix.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_inspect.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_mapping.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_plugin.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_prepare.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_read.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_set.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_show.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_state/README.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_state.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_subset.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_template.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_to.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/_wizard.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/engine/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/engine/_import.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/engine/_interface.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/engine/_load.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/v0/session/exceptions.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/dev.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/DataModelCDF.PNG +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/DataModelInstancesCDF.PNG +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/DataModelInstancesVizCDF.PNG +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/aml-dm-cdf.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/aml-dm.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/aml-instances-cdf.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/aml-instances-full.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/asset_hierarchy_lift_pump_stations.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/asset_hierarchy_lift_pump_stations_dms.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/asset_hierarchy_lift_pump_stations_dms_typed.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/asset_hierarchy_lift_pump_stations_populated.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/asset_hierarchy_lift_pump_stations_populated_with_typed.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/authorship.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/base-components.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/bid_capacity_data_model.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/change_validate_step.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/connecting_metadata_dm.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/connecting_metadata_populated.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/connecting_metadata_published_dm.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/container_spec.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/core_extension.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/core_extension_excel.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/core_extension_no_connection.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/core_extension_with_properties.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/data-exploration.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/data-model-nordic44.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/data-modeling-flow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dexpi-dm-cdf.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dexpi-dm-viz.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dexpi-graph-viz.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dexpi-instance-cdf.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dexpi-transformed-graph-viz.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dm-classes.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dm-object-shapes.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dm-prefixes.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dm-source-to-solution-mapping.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dm2cdf-asset.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/dm2cdf-mapping.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/execution-history.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/export_dms_config.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/export_dms_executed.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/export_dms_workflow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/features.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/graph-etl-flow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/high-level-io.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/instances-nordic44.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/instances-sheet.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/key-aspects-of-neat.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/knowledge-graph-viz-filtering.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/knowledge-graph-viz.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/life_cycle_analitic_solution_export_dms.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/life_cycle_converter_model_analytic_solution_model.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/life_cycle_download_reference_model_analytic_soluteion_model.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/life_cycle_download_reference_model_analytic_solution_model_export.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/logo.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/metadata-sheet.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/multi-hop.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/neat-high-level.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/neat-two_flows.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/neat_shift_tab.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/neat_tab.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/prefixes-sheet.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/pump_hello_world_published.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf-in-nutshell.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-graph-change.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-graph-resurrect.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-graph.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-init-run-step1.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-init-run-step2.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-init-run.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/rdf2cdf-post-init.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/run_workflow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-asset-hierarchy.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-running-workflow.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-transformation-rules-ui.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-upload-rules.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-workflow-steps.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-workflow.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/sheet2cdf-workflow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/step-configurables.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/step-metrics.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/tutorial-notebooks-part-2_graph-capturing-sheet.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/validate_workflow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wf-ephemeral-mode.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wf-overview.gif +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wf-persistent-blocking-mode.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wf-persistent-non-blocking.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wf-start-mode-ui.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wind_farm_classic_knowledge_graph.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/wind_farm_data_product_instances.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/work-in-progress.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/workflow-context.jpg +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/working_with_metadata_provenance.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/figs/working_with_metadata_published_dm.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/cdf-dms-architect-alice.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/dms-addition-svein-harald.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/dms-analytics-olav.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/dms-architect-rules-raw-filter-example.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/dms-architect-rules-template.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/dms-rebuild-olav.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/domain-expert-rules-template.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/expert-grid-emma.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/expert-wind-energy-jon.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/information-addition-svein-harald.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/information-analytics-olav-ref.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/information-analytics-olav.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/information-architect-david.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/rules/information-architect-rules-template.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-1-defining-data-model.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-1-download-rules-template.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-1-upload-gql-schema-to-cdf.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-2-graph-capturing-sheet.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-3-asset-hierarchy.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-3-decommissioning.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-3-relationships.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-3-resurrection.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/artifacts/videos/tutorial-4-asset-hierarchy.mp4 +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/data-modeling-principles.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/conceptual/overview.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/conceptual/reference.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/data_model.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/physical/enum.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/physical/overview.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/physical/properties.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/physical/reference.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/physical/views.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/excel_data_modeling/units.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/gettingstarted/installation.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/gettingstarted/why-neat.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/index.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/base.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/drop.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/fix.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/inspect.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/mapping.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/prepare.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/read.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/set.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/show.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/subset.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/template.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/NeatSession/to.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/issues/base.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/issues/errors.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/issues/user_model_warnings.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/issues/warnings.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/reference/overview.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/cold_start.ipynb +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/figs/data-modeling-flow.png +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/files/wind_farm_prospecting_conceptual_data_model.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/files/wind_farm_prospecting_conceptual_data_model_expanded.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/files/wind_farm_prospecting_physical_data_model.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/from-conceptual-to-physical-via-CDM.ipynb +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/http_purl.org_cognite_neat_data-model_verified_conceptual_wind_energy_WindFarmProspecting_v1.html +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/http_purl.org_cognite_neat_data-model_verified_conceptual_wind_energy_WindFarmProspecting_v1_implements.html +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/http_purl.org_cognite_neat_data-model_verified_physical_neat_playground_NeatHelloWorld_v1.html +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/my_first_model.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/data-modeling/physical-data-model.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/docs/tutorials/introduction/introduction.ipynb +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/mkdocs.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/clean_space.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/core_classic_mapping.xlsx +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/create_classic_core_mapping_yaml.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/dependency_profiler.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/docs_generate_reference.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/docs_generate_unit.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/generate_steps_md.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/.gitignore +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/README.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/config.dev.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/neat_integration_runner/README.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/neat_integration_runner/auth/neat_cicd_testing.group.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/lift_pumps/classic/lift_pump_stations_root.Asset.csv +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/lift_pumps/data_sets/hierarchies.DataSet.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/lift_pumps/raw/collections_pump.Table.csv +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/lift_pumps/raw/collections_pump.Table.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/Measurement.Asset.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/Measurement.Label.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/MetMast.Asset.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/PowerGeneratingUnit.Label.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/Utsira.Asset.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/WT-01.Asset.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/WT-01_to_MetMast.Relationship.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/WT-02.Asset.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/WT-02_to_MetMast.Relationship.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/WindTurbine.Label.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/metMast.Label.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/planned_WT-01_2022-01-01.Event.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/classic/power_curve_manufacturer1.Sequence.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/data_sets/maintenance.DataSet.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/data_sets/source_ds.DataSet.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/data_sets/usecase_01.DataSet.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/files/WT-01_datasheet.FileMetadata.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/files/WT-01_datasheet.txt +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/timeseries/WT-01_forecast.TimeSeries.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/timeseries/WT-01_production.TimeSeries.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/timeseries/WT-02_forecast.TimeSeries.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/integration_runner/modules/test_data/windfarm/timeseries/WT-02_production.TimeSeries.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/manual_test_dms_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/migration.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/oxi_remote/README.md +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/oxi_remote/docker-compose.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/test_lookup_table.csv +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/scripts/windfarm_to_toolkit.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/test-pyodide.js +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/test_models/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/test_models/test_conceptual/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_data_model/test_models/test_entities/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_data_model/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_data_model/test_models/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_data_model/test_models/test_dms/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_data_model/test_models/test_entities/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_utils/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit/test_utils/test_auxiliary.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit_v1/test_data_model/test_models/test_dms/test_containers.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit_v1/test_data_model/test_models/test_dms/test_spaces.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit_v1/test_data_model/test_models/test_entities/test_parser.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/tests_unit_v1/test_utils/test_http_client.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/config.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/conftest.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/test_rules_flow/test_cdm_extension_verification.yaml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/test_rules_flow/test_excel_importer_to_yaml.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/test_rules_flow/test_excel_importer_to_yaml_new_endpoint.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/test_rules_flow/test_ontology_importer_to_yaml.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/test_rules_flow/test_to_extension_transformer.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_end_to_end/test_rules_flow.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/conftest.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_api/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_api/test_conversion.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_api/test_validate_rules.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_client_available.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_graph/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_graph/test_loaders/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_graph/test_loaders/test_dms_loader.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_neat_client/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_neat_client/test_cdf_loaders.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_neat_client/test_statistics.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_rules/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_rules/test_exporters/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_rules/test_exporters/test_dms_exporters.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_rules/test_importers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_create_enterprise.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_data_model_prepare_fix/test_prefix_dms_rules_entities.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_data_model_prepare_fix/test_prefix_info_rules_entities.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_data_model_prepare_fix/test_standardize_space_and_version.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_data_model_prepare_fix.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_data_model_to/test_raw_filter.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_data_model_to.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow/test_aml_to_dms.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow/test_create_extension_template.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow/test_dexpi_to_dms.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow/test_snapshot_workflow_ids_to_python.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow/test_snapshot_workflow_to_python.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow/test_uplift_workflow_to_python.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_graph_flow.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_read/test_read_cdm.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_read/test_read_model_referencing_core.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_session/test_read.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_utils/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_integration/test_utils/test_reader.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_asset_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_dms_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_dms_graph_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_events_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_files_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_labels_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_relationship_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_sequences_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_extractors/test_timeseries_extractor.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_graph_read.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_loaders/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_loaders/test_dms_loader.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_loaders/test_rdf2dms.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_loaders/test_rdf_to_instance_space.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_provenance.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_asset_depth_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_asset_event_connector_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_asset_file_connector_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_asset_relationship_connector_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_asset_sequence_connector_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_asset_ts_connector_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_attach_property_from_target2source.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_connection_to_literal.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_make_connection_on_exact_match.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_prune_graph.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_graph/test_transformers/test_split_multi_value_property_transformer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_issues/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_issues/test_formatters.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_issues/test_issue_behavior.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_issues/test_issues_metatests.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_neat_client/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_neat_client/test_instances.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_neat_client/test_loaders.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_neat_client/test_schema.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_neat_package_metadata.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_plugins.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_analysis.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_exporters/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_exporters/test_exporters_meta.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_exporters/test_rules2dms.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_exporters/test_rules2excel.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_exporters/test_rules2ontology.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_exporters/test_rules2yaml.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/constants.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/test_dms_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/test_excel_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/test_graph_data_model_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/test_inference_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/test_owl_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_importers/test_subinference_importer.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_asset_rules.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_base_rules.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_conceptual_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_data_types.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_dms_schema.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_entities.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_input_rules.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_physical_data_model.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_restrictions.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/test_wrapped_entities.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_models/utils.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_transformers/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_transformers/test_converters.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_transformers/test_mapping.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_transformers/test_transformer_meta.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_rules/test_transformers/test_union_conceptual.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_session/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_session/test_flows.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_session/test_meta.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_session/test_plugin.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_session/test_read.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_session/test_to_yaml.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_store/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_store/test_select_queries.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_store/tests_rules_store/test_import_export.yml +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_store/tests_rules_store.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/__init__.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_auxiliary.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_cdf_classes.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_rdf.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_reader.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_tarjan.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_text.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/tests_unit/test_utils/test_utils.py +0 -0
- {cognite_neat-0.123.38 → cognite_neat-0.123.40}/tests/v0/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite-neat
|
|
3
|
-
Version: 0.123.
|
|
3
|
+
Version: 0.123.40
|
|
4
4
|
Summary: Knowledge graph transformation
|
|
5
5
|
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
|
|
6
6
|
Project-URL: Homepage, https://cognite-neat.readthedocs-hosted.com/
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from collections import Counter
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ValidationInfo, field_validator
|
|
4
|
+
from pyparsing import cast
|
|
5
|
+
|
|
6
|
+
from cognite.neat._data_model.models.entities import ConceptEntity
|
|
7
|
+
from cognite.neat._data_model.models.entities._constants import PREFIX_PATTERN, SUFFIX_PATTERN, VERSION_PATTERN
|
|
8
|
+
from cognite.neat._utils.text import humanize_collection
|
|
9
|
+
|
|
10
|
+
from ._base import ResourceMetadata
|
|
11
|
+
from ._property import Property
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Concept(ResourceMetadata):
|
|
15
|
+
space: str = Field(
|
|
16
|
+
description="Id of the space that the concept belongs to.",
|
|
17
|
+
min_length=1,
|
|
18
|
+
max_length=43,
|
|
19
|
+
pattern=PREFIX_PATTERN,
|
|
20
|
+
alias="prefix",
|
|
21
|
+
)
|
|
22
|
+
external_id: str = Field(
|
|
23
|
+
description="External-id of the concept.",
|
|
24
|
+
min_length=1,
|
|
25
|
+
max_length=255,
|
|
26
|
+
pattern=SUFFIX_PATTERN,
|
|
27
|
+
alias="suffix",
|
|
28
|
+
)
|
|
29
|
+
version: str | None = Field(
|
|
30
|
+
default=None,
|
|
31
|
+
description="Version of the concept.",
|
|
32
|
+
max_length=43,
|
|
33
|
+
pattern=VERSION_PATTERN,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
implements: list[ConceptEntity] | None = Field(
|
|
37
|
+
default=None,
|
|
38
|
+
description="References to the concepts from where this concept will inherit properties.",
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
properties: dict[str, Property] | None = Field(default=None, description="Properties associated with the concept.")
|
|
42
|
+
|
|
43
|
+
@field_validator("implements", mode="after")
|
|
44
|
+
def cannot_implement_itself(cls, value: list[ConceptEntity], info: ValidationInfo) -> list[ConceptEntity]:
|
|
45
|
+
if not value:
|
|
46
|
+
return value
|
|
47
|
+
|
|
48
|
+
this_concept = ConceptEntity(
|
|
49
|
+
prefix=info.data["space"],
|
|
50
|
+
suffix=info.data["external_id"],
|
|
51
|
+
version=cast(str, info.data.get("version")),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
if this_concept in value:
|
|
55
|
+
raise ValueError("A concept cannot implement itself.")
|
|
56
|
+
|
|
57
|
+
return value
|
|
58
|
+
|
|
59
|
+
@field_validator("implements", mode="after")
|
|
60
|
+
def cannot_have_duplicates(cls, value: list[ConceptEntity], info: ValidationInfo) -> list[ConceptEntity]:
|
|
61
|
+
counts = Counter(value)
|
|
62
|
+
duplicates = {concept for concept, count in counts.items() if count > 1}
|
|
63
|
+
|
|
64
|
+
if duplicates:
|
|
65
|
+
raise ValueError(f"Duplicate concepts found: {humanize_collection(duplicates)}")
|
|
66
|
+
|
|
67
|
+
return value
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ValidationInfo, field_validator, model_validator
|
|
4
|
+
|
|
5
|
+
from cognite.neat._data_model.models.entities import URI, ConceptEntity, DataType, UnknownEntity
|
|
6
|
+
|
|
7
|
+
from ._base import ResourceMetadata
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Property(ResourceMetadata):
|
|
11
|
+
value_type: DataType | ConceptEntity | UnknownEntity = Field(
|
|
12
|
+
union_mode="left_to_right",
|
|
13
|
+
description="Value type that the property can hold. It takes either subset of XSD type or a class defined.",
|
|
14
|
+
)
|
|
15
|
+
min_count: int | None = Field(
|
|
16
|
+
default=None,
|
|
17
|
+
ge=0,
|
|
18
|
+
description="Minimum number of values that the property can hold. "
|
|
19
|
+
"If no value is provided, the default value is None meaning `0`, "
|
|
20
|
+
"which means that the property is optional.",
|
|
21
|
+
)
|
|
22
|
+
max_count: int | None = Field(
|
|
23
|
+
default=None,
|
|
24
|
+
ge=0,
|
|
25
|
+
description="Maximum number of values that the property can hold. "
|
|
26
|
+
"If no value is provided, the default value is None meaning `inf`, "
|
|
27
|
+
"which means that the property can hold any number of values (listable).",
|
|
28
|
+
)
|
|
29
|
+
default: Any | None = Field(alias="Default", default=None, description="Default value of the property.")
|
|
30
|
+
instance_reference: list[URI] | None = Field(
|
|
31
|
+
default=None,
|
|
32
|
+
description="The URI(s) in the graph to get the value of the property.",
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
@model_validator(mode="after")
|
|
36
|
+
def check_min_max_count(self) -> "Property":
|
|
37
|
+
if self.min_count is not None and self.max_count is not None:
|
|
38
|
+
if self.min_count > self.max_count:
|
|
39
|
+
raise ValueError("min_count must be less than or equal to max_count")
|
|
40
|
+
return self
|
|
41
|
+
|
|
42
|
+
@field_validator("default", mode="after")
|
|
43
|
+
def check_default_value_primitive_type(cls, value: Any, info: ValidationInfo) -> Any:
|
|
44
|
+
if not value:
|
|
45
|
+
return value
|
|
46
|
+
|
|
47
|
+
value_type = info.data.get("value_type")
|
|
48
|
+
if not isinstance(value_type, DataType):
|
|
49
|
+
raise ValueError("Setting default value is only supported for primitive value types.")
|
|
50
|
+
return value
|
|
51
|
+
|
|
52
|
+
@field_validator("default", mode="after")
|
|
53
|
+
def check_default_value_python_type_exists(cls, value: Any, info: ValidationInfo) -> Any:
|
|
54
|
+
if not value:
|
|
55
|
+
return value
|
|
56
|
+
|
|
57
|
+
value_type = info.data.get("value_type")
|
|
58
|
+
|
|
59
|
+
if isinstance(value_type, DataType) and not hasattr(value_type, "python"):
|
|
60
|
+
raise ValueError(
|
|
61
|
+
f"DataType {value_type} does not have a python type defined."
|
|
62
|
+
" Setting default value for property is not possible."
|
|
63
|
+
)
|
|
64
|
+
return value
|
|
65
|
+
|
|
66
|
+
@field_validator("default", mode="after")
|
|
67
|
+
def check_default_value_not_list(cls, value: Any, info: ValidationInfo) -> Any:
|
|
68
|
+
if not value:
|
|
69
|
+
return value
|
|
70
|
+
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
raise ValueError("Setting list as default value is not supported.")
|
|
73
|
+
return value
|
|
74
|
+
|
|
75
|
+
@field_validator("default", mode="after")
|
|
76
|
+
def check_default_value_single_valued(cls, value: Any, info: ValidationInfo) -> Any:
|
|
77
|
+
if not value:
|
|
78
|
+
return value
|
|
79
|
+
|
|
80
|
+
max_count = info.data.get("max_count")
|
|
81
|
+
|
|
82
|
+
if max_count is None or max_count > 1:
|
|
83
|
+
raise ValueError(
|
|
84
|
+
"Setting default value is only supported for single-valued properties."
|
|
85
|
+
f" Property has max_count={max_count or 'Inf'}."
|
|
86
|
+
)
|
|
87
|
+
return value
|
|
88
|
+
|
|
89
|
+
@field_validator("default", mode="after")
|
|
90
|
+
def check_default_value_type_match(cls, value: Any, info: ValidationInfo) -> Any:
|
|
91
|
+
if not value:
|
|
92
|
+
return value
|
|
93
|
+
|
|
94
|
+
value_type = info.data.get("value_type")
|
|
95
|
+
|
|
96
|
+
if (
|
|
97
|
+
isinstance(value_type, DataType)
|
|
98
|
+
and hasattr(value_type, "python")
|
|
99
|
+
and not isinstance(value, value_type.python)
|
|
100
|
+
):
|
|
101
|
+
raise ValueError(
|
|
102
|
+
f"Default value type is {type(value)}, which does not match expected value type {value_type.python}."
|
|
103
|
+
)
|
|
104
|
+
return value
|
{cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/__init__.py
RENAMED
|
@@ -32,15 +32,50 @@ from cognite.neat._data_model.models.dms._data_types import (
|
|
|
32
32
|
from cognite.neat._data_model.models.dms._indexes import BtreeIndex, Index, IndexDefinition, InvertedIndex
|
|
33
33
|
from cognite.neat._data_model.models.dms._space import Space, SpaceRequest, SpaceResponse
|
|
34
34
|
|
|
35
|
+
from ._data_model import DataModelRequest, DataModelResponse
|
|
36
|
+
from ._references import (
|
|
37
|
+
ContainerDirectReference,
|
|
38
|
+
ContainerReference,
|
|
39
|
+
NodeReference,
|
|
40
|
+
ViewDirectReference,
|
|
41
|
+
ViewReference,
|
|
42
|
+
)
|
|
43
|
+
from ._view_property import (
|
|
44
|
+
ConnectionPropertyDefinition,
|
|
45
|
+
ConstraintOrIndexState,
|
|
46
|
+
MultiEdgeProperty,
|
|
47
|
+
MultiReverseDirectRelationPropertyRequest,
|
|
48
|
+
MultiReverseDirectRelationPropertyResponse,
|
|
49
|
+
SingleEdgeProperty,
|
|
50
|
+
SingleReverseDirectRelationPropertyRequest,
|
|
51
|
+
SingleReverseDirectRelationPropertyResponse,
|
|
52
|
+
ViewCorePropertyRequest,
|
|
53
|
+
ViewCorePropertyResponse,
|
|
54
|
+
ViewPropertyDefinition,
|
|
55
|
+
ViewRequestProperty,
|
|
56
|
+
ViewResponseProperty,
|
|
57
|
+
)
|
|
58
|
+
from ._views import (
|
|
59
|
+
View,
|
|
60
|
+
ViewRequest,
|
|
61
|
+
ViewResponse,
|
|
62
|
+
)
|
|
63
|
+
|
|
35
64
|
__all__ = [
|
|
36
65
|
"BooleanProperty",
|
|
37
66
|
"BtreeIndex",
|
|
67
|
+
"ConnectionPropertyDefinition",
|
|
38
68
|
"Constraint",
|
|
39
69
|
"ConstraintDefinition",
|
|
70
|
+
"ConstraintOrIndexState",
|
|
40
71
|
"Container",
|
|
72
|
+
"ContainerDirectReference",
|
|
41
73
|
"ContainerPropertyDefinition",
|
|
74
|
+
"ContainerReference",
|
|
42
75
|
"ContainerRequest",
|
|
43
76
|
"ContainerResponse",
|
|
77
|
+
"DataModelRequest",
|
|
78
|
+
"DataModelResponse",
|
|
44
79
|
"DataType",
|
|
45
80
|
"DateProperty",
|
|
46
81
|
"DirectNodeRelation",
|
|
@@ -54,16 +89,38 @@ __all__ = [
|
|
|
54
89
|
"InvertedIndex",
|
|
55
90
|
"JSONProperty",
|
|
56
91
|
"ListablePropertyTypeDefinition",
|
|
92
|
+
"MultiEdgeProperty",
|
|
93
|
+
"MultiReverseDirectRelationPropertyRequest",
|
|
94
|
+
"MultiReverseDirectRelationPropertyResponse",
|
|
95
|
+
"NodeReference",
|
|
57
96
|
"PropertyTypeDefinition",
|
|
58
97
|
"RequiresConstraintDefinition",
|
|
59
98
|
"Resource",
|
|
60
99
|
"SequenceCDFExternalIdReference",
|
|
100
|
+
"SequenceCDFExternalIdReference",
|
|
101
|
+
"SingleEdgeProperty",
|
|
102
|
+
"SingleReverseDirectRelationPropertyRequest",
|
|
103
|
+
"SingleReverseDirectRelationPropertyResponse",
|
|
61
104
|
"Space",
|
|
62
105
|
"SpaceRequest",
|
|
63
106
|
"SpaceResponse",
|
|
64
107
|
"TextProperty",
|
|
108
|
+
"TextProperty",
|
|
109
|
+
"TimeseriesCDFExternalIdReference",
|
|
65
110
|
"TimeseriesCDFExternalIdReference",
|
|
66
111
|
"TimestampProperty",
|
|
112
|
+
"TimestampProperty",
|
|
113
|
+
"UniquenessConstraintDefinition",
|
|
67
114
|
"UniquenessConstraintDefinition",
|
|
115
|
+
"View",
|
|
116
|
+
"ViewCorePropertyRequest",
|
|
117
|
+
"ViewCorePropertyResponse",
|
|
118
|
+
"ViewDirectReference",
|
|
119
|
+
"ViewPropertyDefinition",
|
|
120
|
+
"ViewReference",
|
|
121
|
+
"ViewRequest",
|
|
122
|
+
"ViewRequestProperty",
|
|
123
|
+
"ViewResponse",
|
|
124
|
+
"ViewResponseProperty",
|
|
68
125
|
"WriteableResource",
|
|
69
126
|
]
|
{cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_constants.py
RENAMED
|
@@ -3,6 +3,7 @@ DM_EXTERNAL_ID_PATTERN = r"^[a-zA-Z]([a-zA-Z0-9_]{0,253}[a-zA-Z0-9])?$"
|
|
|
3
3
|
CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN = r"^[a-zA-Z0-9][a-zA-Z0-9_-]{0,253}[a-zA-Z0-9]?$"
|
|
4
4
|
INSTANCE_ID_PATTERN = r"^[^\\x00]{1,256}$"
|
|
5
5
|
ENUM_VALUE_IDENTIFIER_PATTERN = r"^[_A-Za-z][_0-9A-Za-z]{0,127}$"
|
|
6
|
+
DM_VERSION_PATTERN = r"^[a-zA-Z0-9]([.a-zA-Z0-9_-]{0,41}[a-zA-Z0-9])?$"
|
|
6
7
|
FORBIDDEN_ENUM_VALUES = frozenset({"true", "false", "null"})
|
|
7
8
|
FORBIDDEN_SPACES = frozenset(["space", "cdf", "dms", "pg3", "shared", "system", "node", "edge"])
|
|
8
9
|
FORBIDDEN_CONTAINER_AND_VIEW_EXTERNAL_IDS = frozenset(
|
{cognite_neat-0.123.38 → cognite_neat-0.123.40}/cognite/neat/_data_model/models/dms/_container.py
RENAMED
|
@@ -18,6 +18,7 @@ from ._constants import (
|
|
|
18
18
|
from ._constraints import Constraint
|
|
19
19
|
from ._data_types import DataType
|
|
20
20
|
from ._indexes import Index
|
|
21
|
+
from ._references import ContainerReference
|
|
21
22
|
|
|
22
23
|
KEY_PATTERN = re.compile(CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN)
|
|
23
24
|
|
|
@@ -132,6 +133,12 @@ class Container(Resource, ABC):
|
|
|
132
133
|
)
|
|
133
134
|
return val
|
|
134
135
|
|
|
136
|
+
def as_reference(self) -> ContainerReference:
|
|
137
|
+
return ContainerReference(
|
|
138
|
+
space=self.space,
|
|
139
|
+
externalId=self.external_id,
|
|
140
|
+
)
|
|
141
|
+
|
|
135
142
|
|
|
136
143
|
class ContainerRequest(Container): ...
|
|
137
144
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
|
|
5
|
+
from ._base import Resource, WriteableResource
|
|
6
|
+
from ._constants import (
|
|
7
|
+
DM_EXTERNAL_ID_PATTERN,
|
|
8
|
+
DM_VERSION_PATTERN,
|
|
9
|
+
SPACE_FORMAT_PATTERN,
|
|
10
|
+
)
|
|
11
|
+
from ._references import ViewReference
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DataModel(Resource, ABC):
|
|
15
|
+
"""Cognite Data Model resource.
|
|
16
|
+
|
|
17
|
+
Data models group and structure views into reusable collections.
|
|
18
|
+
A data model contains a set of views where the node types can
|
|
19
|
+
refer to each other with direct relations and edges.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
space: str = Field(
|
|
23
|
+
description="The workspace for the data model, a unique identifier for the space.",
|
|
24
|
+
min_length=1,
|
|
25
|
+
max_length=43,
|
|
26
|
+
pattern=SPACE_FORMAT_PATTERN,
|
|
27
|
+
)
|
|
28
|
+
external_id: str = Field(
|
|
29
|
+
description="External-id of the data model.",
|
|
30
|
+
min_length=1,
|
|
31
|
+
max_length=255,
|
|
32
|
+
pattern=DM_EXTERNAL_ID_PATTERN,
|
|
33
|
+
)
|
|
34
|
+
version: str = Field(
|
|
35
|
+
description="Version of the data model.",
|
|
36
|
+
max_length=43,
|
|
37
|
+
pattern=DM_VERSION_PATTERN,
|
|
38
|
+
)
|
|
39
|
+
name: str | None = Field(
|
|
40
|
+
default=None,
|
|
41
|
+
description="Human readable name for the data model.",
|
|
42
|
+
max_length=255,
|
|
43
|
+
)
|
|
44
|
+
description: str | None = Field(
|
|
45
|
+
default=None,
|
|
46
|
+
description="Description of the data model.",
|
|
47
|
+
max_length=1024,
|
|
48
|
+
)
|
|
49
|
+
# The API supports View here, but in Neat we will only use ViewReference
|
|
50
|
+
views: list[ViewReference] | None = Field(
|
|
51
|
+
description="List of views included in this data model.",
|
|
52
|
+
default=None,
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class DataModelRequest(DataModel): ...
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class DataModelResponse(DataModel, WriteableResource[DataModelRequest]):
|
|
60
|
+
created_time: int = Field(
|
|
61
|
+
description="When the data model was created. The number of milliseconds since 00:00:00 Thursday, "
|
|
62
|
+
"1 January 1970, Coordinated Universal Time (UTC), minus leap seconds."
|
|
63
|
+
)
|
|
64
|
+
last_updated_time: int = Field(
|
|
65
|
+
description="When the data model was last updated. The number of milliseconds since 00:00:00 Thursday, "
|
|
66
|
+
"1 January 1970, Coordinated Universal Time (UTC), minus leap seconds."
|
|
67
|
+
)
|
|
68
|
+
is_global: bool = Field(description="Is this a global data model.")
|
|
69
|
+
|
|
70
|
+
def as_request(self) -> DataModelRequest:
|
|
71
|
+
return DataModelRequest.model_validate(self.model_dump(by_alias=True))
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
|
|
5
|
+
from ._base import BaseModelObject
|
|
6
|
+
from ._constants import (
|
|
7
|
+
CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN,
|
|
8
|
+
DM_EXTERNAL_ID_PATTERN,
|
|
9
|
+
DM_VERSION_PATTERN,
|
|
10
|
+
INSTANCE_ID_PATTERN,
|
|
11
|
+
SPACE_FORMAT_PATTERN,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ReferenceObject(BaseModelObject, frozen=True): ...
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ContainerReference(ReferenceObject):
|
|
19
|
+
type: Literal["container"] = "container"
|
|
20
|
+
space: str = Field(
|
|
21
|
+
description="Id of the space hosting (containing) the container.",
|
|
22
|
+
min_length=1,
|
|
23
|
+
max_length=43,
|
|
24
|
+
pattern=SPACE_FORMAT_PATTERN,
|
|
25
|
+
)
|
|
26
|
+
external_id: str = Field(
|
|
27
|
+
description="External-id of the container.",
|
|
28
|
+
min_length=1,
|
|
29
|
+
max_length=255,
|
|
30
|
+
pattern=DM_EXTERNAL_ID_PATTERN,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ViewReference(BaseModelObject):
|
|
35
|
+
type: Literal["view"] = "view"
|
|
36
|
+
space: str = Field(
|
|
37
|
+
description="Id of the space that the view belongs to.",
|
|
38
|
+
min_length=1,
|
|
39
|
+
max_length=43,
|
|
40
|
+
pattern=SPACE_FORMAT_PATTERN,
|
|
41
|
+
)
|
|
42
|
+
external_id: str = Field(
|
|
43
|
+
description="External-id of the view.",
|
|
44
|
+
min_length=1,
|
|
45
|
+
max_length=255,
|
|
46
|
+
pattern=DM_EXTERNAL_ID_PATTERN,
|
|
47
|
+
)
|
|
48
|
+
version: str = Field(
|
|
49
|
+
description="Version of the view.",
|
|
50
|
+
max_length=43,
|
|
51
|
+
pattern=DM_VERSION_PATTERN,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class NodeReference(BaseModelObject):
|
|
56
|
+
space: str = Field(
|
|
57
|
+
description="Id of the space hosting (containing) the node.",
|
|
58
|
+
min_length=1,
|
|
59
|
+
max_length=43,
|
|
60
|
+
pattern=SPACE_FORMAT_PATTERN,
|
|
61
|
+
)
|
|
62
|
+
external_id: str = Field(
|
|
63
|
+
description="External-id of the node.",
|
|
64
|
+
min_length=1,
|
|
65
|
+
max_length=255,
|
|
66
|
+
pattern=INSTANCE_ID_PATTERN,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class ContainerDirectReference(BaseModelObject):
|
|
71
|
+
source: ContainerReference = Field(
|
|
72
|
+
description="Reference to the container from where this relation is inherited.",
|
|
73
|
+
)
|
|
74
|
+
identifier: str = Field(
|
|
75
|
+
description="Identifier of the relation in the source container.",
|
|
76
|
+
min_length=1,
|
|
77
|
+
max_length=255,
|
|
78
|
+
pattern=CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class ViewDirectReference(BaseModelObject):
|
|
83
|
+
source: ViewReference = Field(
|
|
84
|
+
description="Reference to the view from where this relation is inherited.",
|
|
85
|
+
)
|
|
86
|
+
identifier: str = Field(
|
|
87
|
+
description="Identifier of the relation in the source view.",
|
|
88
|
+
min_length=1,
|
|
89
|
+
max_length=255,
|
|
90
|
+
pattern=CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN,
|
|
91
|
+
)
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
from abc import ABC
|
|
2
|
+
from typing import Annotated, Literal
|
|
3
|
+
|
|
4
|
+
from pydantic import Field, Json
|
|
5
|
+
|
|
6
|
+
from ._base import BaseModelObject, Resource, WriteableResource
|
|
7
|
+
from ._constants import CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN
|
|
8
|
+
from ._data_types import DataType
|
|
9
|
+
from ._references import ContainerDirectReference, ContainerReference, NodeReference, ViewDirectReference, ViewReference
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ViewPropertyDefinition(Resource, ABC):
|
|
13
|
+
connection_type: str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ViewCoreProperty(ViewPropertyDefinition, ABC):
|
|
17
|
+
# Core properties do not have connection type in the API, but we add it here such that
|
|
18
|
+
# we can use it as a discriminator in unions. The exclude=True ensures that it is not
|
|
19
|
+
# sent to the API.
|
|
20
|
+
connection_type: Literal["primary_property"] = Field(default="primary_property", exclude=True)
|
|
21
|
+
name: str | None = Field(
|
|
22
|
+
default=None,
|
|
23
|
+
description="Readable property name.",
|
|
24
|
+
max_length=255,
|
|
25
|
+
)
|
|
26
|
+
description: str | None = Field(
|
|
27
|
+
default=None,
|
|
28
|
+
description="Description of the content and suggested use for this property..",
|
|
29
|
+
max_length=1024,
|
|
30
|
+
)
|
|
31
|
+
container: ContainerReference = Field(
|
|
32
|
+
description="Reference to the container where this property is defined.",
|
|
33
|
+
)
|
|
34
|
+
container_property_identifier: str = Field(
|
|
35
|
+
description="Identifier of the property in the container.",
|
|
36
|
+
min_length=1,
|
|
37
|
+
max_length=255,
|
|
38
|
+
pattern=CONTAINER_AND_VIEW_PROPERTIES_IDENTIFIER_PATTERN,
|
|
39
|
+
)
|
|
40
|
+
source: ViewReference | None = Field(
|
|
41
|
+
default=None,
|
|
42
|
+
description="Indicates on what type a referenced direct relation is expected to be. "
|
|
43
|
+
"Only applicable for direct relation properties.",
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class ViewCorePropertyRequest(ViewCoreProperty): ...
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class ConstraintOrIndexState(BaseModelObject):
|
|
51
|
+
nullability: Literal["current", "pending", "failed"] | None = Field(
|
|
52
|
+
description="""For properties that have isNullable set to false, this field describes the validity of the
|
|
53
|
+
not-null constraint. It is not specified for nullable properties.
|
|
54
|
+
|
|
55
|
+
Possible values are:
|
|
56
|
+
|
|
57
|
+
"failed": The property contains null values, violating the constraint. This can occur if a property with
|
|
58
|
+
existing nulls was made non-nullable. New null values will still be rejected.
|
|
59
|
+
"current": The constraint is satisfied; all values in the property are not null.
|
|
60
|
+
"pending": The constraint validity has not yet been computed.
|
|
61
|
+
"""
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class ViewCorePropertyResponse(ViewCoreProperty, WriteableResource[ViewCorePropertyRequest]):
|
|
66
|
+
immutable: bool | None = Field(
|
|
67
|
+
default=None,
|
|
68
|
+
description="Should updates to this property be rejected after the initial population?",
|
|
69
|
+
)
|
|
70
|
+
nullable: bool | None = Field(
|
|
71
|
+
default=None,
|
|
72
|
+
description="Does this property need to be set to a value, or not?",
|
|
73
|
+
)
|
|
74
|
+
auto_increment: bool | None = Field(
|
|
75
|
+
default=None,
|
|
76
|
+
description="Increment the property based on its highest current value (max value).",
|
|
77
|
+
)
|
|
78
|
+
default_value: str | int | bool | dict[str, Json] | None = Field(
|
|
79
|
+
default=None,
|
|
80
|
+
description="Default value to use when you do not specify a value for the property.",
|
|
81
|
+
)
|
|
82
|
+
constraint_state: ConstraintOrIndexState = Field(
|
|
83
|
+
description="Describes the validity of constraints defined on this property"
|
|
84
|
+
)
|
|
85
|
+
type: DataType = Field(description="The type of data you can store in this property.")
|
|
86
|
+
|
|
87
|
+
def as_request(self) -> ViewCorePropertyRequest:
|
|
88
|
+
return ViewCorePropertyRequest.model_validate(self.model_dump(by_alias=True))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class ConnectionPropertyDefinition(ViewPropertyDefinition, ABC):
|
|
92
|
+
name: str | None = Field(
|
|
93
|
+
default=None,
|
|
94
|
+
description="Readable property name.",
|
|
95
|
+
max_length=255,
|
|
96
|
+
)
|
|
97
|
+
description: str | None = Field(
|
|
98
|
+
default=None,
|
|
99
|
+
description="Description of the content and suggested use for this property..",
|
|
100
|
+
max_length=1024,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class EdgeProperty(ConnectionPropertyDefinition, ABC):
|
|
105
|
+
source: ViewReference = Field(
|
|
106
|
+
description="The target node(s) of this connection can be read through the view specified in 'source'."
|
|
107
|
+
)
|
|
108
|
+
type: NodeReference = Field(
|
|
109
|
+
description="Reference to the node pointed to by the direct relation. The reference consists of a "
|
|
110
|
+
"space and an external-id."
|
|
111
|
+
)
|
|
112
|
+
edge_source: ViewReference | None = Field(
|
|
113
|
+
None, description="The edge(s) of this connection can be read through the view specified in 'edgeSource'."
|
|
114
|
+
)
|
|
115
|
+
direction: Literal["outwards", "inwards"] = Field(
|
|
116
|
+
"outwards", description="The direction of the edge(s) of this connection."
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class SingleEdgeProperty(EdgeProperty):
|
|
121
|
+
connection_type: Literal["single_edge_connection"] = "single_edge_connection"
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class MultiEdgeProperty(EdgeProperty):
|
|
125
|
+
connection_type: Literal["multi_edge_connection"] = "multi_edge_connection"
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class ReverseDirectRelationProperty(ConnectionPropertyDefinition, ABC):
|
|
129
|
+
source: ViewReference = Field(
|
|
130
|
+
description="The node(s) containing the direct relation property can be read "
|
|
131
|
+
"through the view specified in 'source'."
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class SingleReverseDirectRelationPropertyRequest(ReverseDirectRelationProperty):
|
|
136
|
+
connection_type: Literal["single_reverse_direct_relation"] = "single_reverse_direct_relation"
|
|
137
|
+
# The API support through as either ViewDirectReference or ContainerDirectReference. However, in Neat
|
|
138
|
+
# we only use ContainerDirectReference. This is for simplicity and it improves performance as the server
|
|
139
|
+
# does not have to resolve the view to a container first.
|
|
140
|
+
through: ContainerDirectReference = Field(
|
|
141
|
+
description="The view of the node containing the direct relation property."
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class SingleReverseDirectRelationPropertyResponse(
|
|
146
|
+
ReverseDirectRelationProperty, WriteableResource[SingleReverseDirectRelationPropertyRequest]
|
|
147
|
+
):
|
|
148
|
+
connection_type: Literal["single_reverse_direct_relation"] = "single_reverse_direct_relation"
|
|
149
|
+
through: ContainerDirectReference | ViewDirectReference = Field(
|
|
150
|
+
description="The view of the node containing the direct relation property."
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
def as_request(self) -> SingleReverseDirectRelationPropertyRequest:
|
|
154
|
+
if isinstance(self.through, ViewDirectReference):
|
|
155
|
+
raise TypeError("Cannot convert to request when 'through' is a ViewDirectReference.")
|
|
156
|
+
return SingleReverseDirectRelationPropertyRequest.model_validate(self.model_dump(by_alias=True))
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class MultiReverseDirectRelationPropertyRequest(ReverseDirectRelationProperty):
|
|
160
|
+
connection_type: Literal["multi_reverse_direct_relation"] = "multi_reverse_direct_relation"
|
|
161
|
+
# The API support through as either ViewDirectReference or ContainerDirectReference. However, in Neat
|
|
162
|
+
# we only use ContainerDirectReference. This is for simplicity and it improves performance as the server
|
|
163
|
+
# does not have to resolve the view to a container first.
|
|
164
|
+
through: ContainerDirectReference = Field(
|
|
165
|
+
description="The view of the node containing the direct relation property."
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class MultiReverseDirectRelationPropertyResponse(
|
|
170
|
+
ReverseDirectRelationProperty, WriteableResource[MultiReverseDirectRelationPropertyRequest]
|
|
171
|
+
):
|
|
172
|
+
connection_type: Literal["multi_reverse_direct_relation"] = "multi_reverse_direct_relation"
|
|
173
|
+
through: ContainerDirectReference | ViewDirectReference = Field(
|
|
174
|
+
description="The view of the node containing the direct relation property."
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
def as_request(self) -> MultiReverseDirectRelationPropertyRequest:
|
|
178
|
+
if isinstance(self.through, ViewDirectReference):
|
|
179
|
+
raise TypeError("Cannot convert to request when 'through' is a ViewDirectReference.")
|
|
180
|
+
return MultiReverseDirectRelationPropertyRequest.model_validate(self.model_dump(by_alias=True))
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
ViewRequestProperty = Annotated[
|
|
184
|
+
SingleEdgeProperty
|
|
185
|
+
| MultiEdgeProperty
|
|
186
|
+
| SingleReverseDirectRelationPropertyRequest
|
|
187
|
+
| MultiReverseDirectRelationPropertyRequest
|
|
188
|
+
| ViewCorePropertyRequest,
|
|
189
|
+
Field(discriminator="connection_type"),
|
|
190
|
+
]
|
|
191
|
+
ViewResponseProperty = Annotated[
|
|
192
|
+
SingleEdgeProperty
|
|
193
|
+
| MultiEdgeProperty
|
|
194
|
+
| SingleReverseDirectRelationPropertyResponse
|
|
195
|
+
| MultiReverseDirectRelationPropertyResponse
|
|
196
|
+
| ViewCorePropertyResponse,
|
|
197
|
+
Field(discriminator="connection_type"),
|
|
198
|
+
]
|