Dimension Mapping Config

Registered Dimension Mappings

pydantic model dsgrid.config.mapping_tables.MappingTableModel[source]

Attributes for a dimension mapping table

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimensions.DimensionReferenceModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionReferenceModel</b></td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr><tr><td>dimension_id</td><td port="dimension_id">str</td></tr><tr><td>version</td><td port="version">str</td></tr></table>>,
      tooltip="dsgrid.config.dimensions.DimensionReferenceModel&#xA;&#xA;Reference to a dimension stored in the registry&#xA;"];
   "dsgrid.config.mapping_tables.MappingTableModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>MappingTableModel</b></td></tr><tr><td>id</td><td port="id">Optional[int]</td></tr><tr><td>version</td><td port="version">Optional[str]</td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>from_dimension</td><td port="from_dimension">DimensionReferenceModel</td></tr><tr><td>to_dimension</td><td port="to_dimension">DimensionReferenceModel</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>mapping_id</td><td port="mapping_id">Optional[str]</td></tr><tr><td>filename</td><td port="filename">Optional[str]</td></tr><tr><td>file_hash</td><td port="file_hash">Optional[str]</td></tr><tr><td>records</td><td port="records">list</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.MappingTableModel&#xA;&#xA;Attributes for a dimension mapping table&#xA;"];
   "dsgrid.config.mapping_tables.MappingTableModel":from_dimension:e -> "dsgrid.config.dimensions.DimensionReferenceModel":_root:w   [arrowhead=noneteetee,
      arrowtail=nonenone];
   "dsgrid.config.mapping_tables.MappingTableModel":to_dimension:e -> "dsgrid.config.dimensions.DimensionReferenceModel":_root:w   [arrowhead=noneteetee,
      arrowtail=nonenone];
}
Fields:
Validators:
field file_hash: str | None = None

Hash of the contents of the file, computed by dsgrid.

Validated by:
field filename: str | None = None (alias 'file')

Filename containing association table records. Only assigned for user input and output purposes. The registry database stores records in the mapping JSON document.

Validated by:
field records: list = []

dimension mapping records in filename that get loaded at runtime

Validated by:
validator add_records  »  records[source]

Add records from the file.

validator check_filename  »  filename[source]

Validate record file

validator compute_file_hash  »  file_hash[source]

Compute file hash.

classmethod from_pre_registered_model(model: DimensionMappingPreRegisteredBaseModel, from_dimension, to_dimension)[source]
serialize_cls(val, _)[source]
pydantic model dsgrid.config.mapping_tables.MappingTableRecordModel[source]

Represents one record in dimension mapping record files. Maps one dimension to another.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.mapping_tables.MappingTableRecordModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>MappingTableRecordModel</b></td></tr><tr><td>from_id</td><td port="from_id">str</td></tr><tr><td>to_id</td><td port="to_id">Optional[str]</td></tr><tr><td>from_fraction</td><td port="from_fraction">float</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.MappingTableRecordModel&#xA;&#xA;Represents one record in dimension mapping record files. Maps one \
dimension to another.&#xA;"];
}
Fields:
Validators:
field from_fraction: float = 1.0

Fraction of from_id to map to to_id

field from_id: str [Required]

Source mapping

Validated by:
field to_id: str | None = None

Destination mapping

Validated by:
validator check_to_id  »  to_id, from_id[source]
pydantic model dsgrid.config.dimension_mapping_base.DimensionMappingBaseModel[source]

Base class for mapping dimensions

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimension_mapping_base.DimensionMappingBaseModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingBaseModel</b></td></tr><tr><td>id</td><td port="id">Optional[int]</td></tr><tr><td>version</td><td port="version">Optional[str]</td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>from_dimension</td><td port="from_dimension">DimensionReferenceModel</td></tr><tr><td>to_dimension</td><td port="to_dimension">DimensionReferenceModel</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>mapping_id</td><td port="mapping_id">Optional[str]</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mapping_base.DimensionMappingBaseModel&#xA;&#xA;Base class for mapping dimensions&#xA;"];
   "dsgrid.config.dimensions.DimensionReferenceModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionReferenceModel</b></td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr><tr><td>dimension_id</td><td port="dimension_id">str</td></tr><tr><td>version</td><td port="version">str</td></tr></table>>,
      tooltip="dsgrid.config.dimensions.DimensionReferenceModel&#xA;&#xA;Reference to a dimension stored in the registry&#xA;"];
   "dsgrid.config.dimension_mapping_base.DimensionMappingBaseModel":from_dimension:e -> "dsgrid.config.dimensions.DimensionReferenceModel":_root:w   [arrowhead=noneteetee,
      arrowtail=nonenone];
   "dsgrid.config.dimension_mapping_base.DimensionMappingBaseModel":to_dimension:e -> "dsgrid.config.dimensions.DimensionReferenceModel":_root:w   [arrowhead=noneteetee,
      arrowtail=nonenone];
}
Fields:
Validators:
field archetype: DimensionMappingArchetype | None = None

Dimension mapping archetype, determined based on mapping_type

Validated by:
field description: str [Required]

Description of dimension mapping

field from_dimension: DimensionReferenceModel [Required]

From dimension

field from_fraction_tolerance: float = 1e-06

Tolerance to apply when checking from_fraction column sums

field mapping_id: str | None = None

Unique dimension mapping identifier, generated by dsgrid

field mapping_type: DimensionMappingType = 'many_to_one_aggregation'

Type/purpose of the dimension mapping

field to_dimension: DimensionReferenceModel [Required]

To dimension

field to_fraction_tolerance: float = 1e-06

Tolerance to apply when checking to_fraction column sums

validator check_archetype  »  archetype[source]

Dimension Mapping Reference

pydantic model dsgrid.config.dimension_mapping_base.DimensionMappingReferenceModel[source]

Reference to a dimension mapping stored in the registry.

The DimensionMappingReferenceModel is utilized by the project configuration (project.json5) as well as by the dimension mapping reference configuration (dimension_mapping_references.json5) that may be required when submitting a dataset to a project.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimension_mapping_base.DimensionMappingReferenceModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingReferenceModel</b></td></tr><tr><td>from_dimension_type</td><td port="from_dimension_type">DimensionType</td></tr><tr><td>to_dimension_type</td><td port="to_dimension_type">DimensionType</td></tr><tr><td>mapping_id</td><td port="mapping_id">str</td></tr><tr><td>version</td><td port="version">str</td></tr><tr><td>required_for_validation</td><td port="required_for_validation">bool</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mapping_base.DimensionMappingReferenceModel&#xA;&#xA;Reference to a dimension mapping stored in the registry.&#\
xA;&#xA;The DimensionMappingReferenceModel is utilized by the project configuration (project.json5) as well as by the&#xA;dimension \
mapping reference configuration (dimension_mapping_references.json5) that may be required when submitting a dataset to a project.&#\
xA;"];
}
Fields:
field from_dimension_type: DimensionType [Required]

Dimension Type

field mapping_id: str [Required]

Unique ID of the dimension mapping

field required_for_validation: bool = True

Set to False if a given dimension association is NOT required for input dataset validation; default is True

field to_dimension_type: DimensionType [Required]

Dimension Type

field version: str [Required]

Version of the dimension

pydantic model dsgrid.config.dimension_mapping_base.DimensionMappingReferenceListModel[source]

List of dimension mapping references used by the dimensions_mappings.json5 config

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimension_mapping_base.DimensionMappingReferenceListModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingReferenceListModel</b></td></tr><tr><td>references</td><td port="references">list[DimensionMappingReferenceModel]</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mapping_base.DimensionMappingReferenceListModel&#xA;&#xA;List of dimension mapping references used by the \
dimensions_mappings.json5 config&#xA;"];
   "dsgrid.config.dimension_mapping_base.DimensionMappingReferenceModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingReferenceModel</b></td></tr><tr><td>from_dimension_type</td><td port="from_dimension_type">DimensionType</td></tr><tr><td>to_dimension_type</td><td port="to_dimension_type">DimensionType</td></tr><tr><td>mapping_id</td><td port="mapping_id">str</td></tr><tr><td>version</td><td port="version">str</td></tr><tr><td>required_for_validation</td><td port="required_for_validation">bool</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mapping_base.DimensionMappingReferenceModel&#xA;&#xA;Reference to a dimension mapping stored in the registry.&#\
xA;&#xA;The DimensionMappingReferenceModel is utilized by the project configuration (project.json5) as well as by the&#xA;dimension \
mapping reference configuration (dimension_mapping_references.json5) that may be required when submitting a dataset to a project.&#\
xA;"];
   "dsgrid.config.dimension_mapping_base.DimensionMappingReferenceListModel":references:e -> "dsgrid.config.dimension_mapping_base.DimensionMappingReferenceModel":_root:w   [arrowhead=crownone,
      arrowtail=nonenone];
}
Fields:
field references: list[DimensionMappingReferenceModel] [Required]

List of dimension mapping references

pydantic model dsgrid.config.dimension_mappings_config.DimensionMappingsConfigModel[source]

Represents dimension mapping model configurations

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimension_mappings_config.DimensionMappingsConfigModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingsConfigModel</b></td></tr><tr><td>mappings</td><td port="mappings">list[MappingTableModel]</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mappings_config.DimensionMappingsConfigModel&#xA;&#xA;Represents dimension mapping model configurations&#\
xA;"];
   "dsgrid.config.mapping_tables.MappingTableModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>MappingTableModel</b></td></tr><tr><td>id</td><td port="id">Optional[int]</td></tr><tr><td>version</td><td port="version">Optional[str]</td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>from_dimension</td><td port="from_dimension">DimensionReferenceModel</td></tr><tr><td>to_dimension</td><td port="to_dimension">DimensionReferenceModel</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>mapping_id</td><td port="mapping_id">Optional[str]</td></tr><tr><td>filename</td><td port="filename">Optional[str]</td></tr><tr><td>file_hash</td><td port="file_hash">Optional[str]</td></tr><tr><td>records</td><td port="records">list</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.MappingTableModel&#xA;&#xA;Attributes for a dimension mapping table&#xA;"];
   "dsgrid.config.dimension_mappings_config.DimensionMappingsConfigModel":mappings:e -> "dsgrid.config.mapping_tables.MappingTableModel":_root:w   [arrowhead=crownone,
      arrowtail=nonenone];
   "dsgrid.config.dimensions.DimensionReferenceModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionReferenceModel</b></td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr><tr><td>dimension_id</td><td port="dimension_id">str</td></tr><tr><td>version</td><td port="version">str</td></tr></table>>,
      tooltip="dsgrid.config.dimensions.DimensionReferenceModel&#xA;&#xA;Reference to a dimension stored in the registry&#xA;"];
   "dsgrid.config.mapping_tables.MappingTableModel":from_dimension:e -> "dsgrid.config.dimensions.DimensionReferenceModel":_root:w   [arrowhead=noneteetee,
      arrowtail=nonenone];
   "dsgrid.config.mapping_tables.MappingTableModel":to_dimension:e -> "dsgrid.config.dimensions.DimensionReferenceModel":_root:w   [arrowhead=noneteetee,
      arrowtail=nonenone];
}
Fields:
field mappings: list[MappingTableModel] [Required]

dimension mappings between and within projects and datasets

pydantic model dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableModel[source]

Attributes for a dimension mapping table to map soon-to-be-registered dataset base dimensions to a project’s dimensions. This will be converted to a MappingTableModel as soon as the dimensions are registered.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DatasetBaseToProjectMappingTableModel</b></td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr><tr><td>filename</td><td port="filename">str</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableModel&#xA;&#xA;Attributes for a dimension mapping table to map soon-to-be-registered \
dataset base&#xA;dimensions to a project's dimensions. This will be converted to a MappingTableModel as soon as&#xA;the dimensions \
are registered.&#xA;"];
}
Fields:
field filename: str [Required] (alias 'file')

Filename containing association table records.

pydantic model dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableListModel[source]

Represents the config file passed to register-and-submit-dataset command.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableListModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DatasetBaseToProjectMappingTableListModel</b></td></tr><tr><td>mappings</td><td port="mappings">list[DatasetBaseToProjectMappingTableModel]</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableListModel&#xA;&#xA;Represents the config file passed to register-and-submit-dataset \
command.&#xA;"];
   "dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DatasetBaseToProjectMappingTableModel</b></td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr><tr><td>filename</td><td port="filename">str</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableModel&#xA;&#xA;Attributes for a dimension mapping table to map soon-to-be-registered \
dataset base&#xA;dimensions to a project's dimensions. This will be converted to a MappingTableModel as soon as&#xA;the dimensions \
are registered.&#xA;"];
   "dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableListModel":mappings:e -> "dsgrid.config.mapping_tables.DatasetBaseToProjectMappingTableModel":_root:w   [arrowhead=crownone,
      arrowtail=nonenone];
}
Fields:
field mappings: list[DatasetBaseToProjectMappingTableModel] [Required]
pydantic model dsgrid.config.dimension_mapping_base.DimensionMappingDatasetToProjectBaseModel[source]

Base class for mapping soon-to-be registered dimensions for a dataset. Used when automatically registering mappings while submitting a dataset to a project.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimension_mapping_base.DimensionMappingDatasetToProjectBaseModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingDatasetToProjectBaseModel</b></td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mapping_base.DimensionMappingDatasetToProjectBaseModel&#xA;&#xA;Base class for mapping soon-to-be registered \
dimensions for a dataset. Used when&#xA;automatically registering mappings while submitting a dataset to a project.&#xA;"];
}
Fields:
field dimension_type: DimensionType [Required]

Dimension types that will be mapped

Unregistered Dimension Mappings

pydantic model dsgrid.config.mapping_tables.MappingTableByNameModel[source]

Attributes for a dimension mapping table for soon-to-be registered dimensions by name. This will be converted to a MappingTableModel as soon as the dimensions are registered.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.mapping_tables.MappingTableByNameModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>MappingTableByNameModel</b></td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr><tr><td>filename</td><td port="filename">str</td></tr></table>>,
      tooltip="dsgrid.config.mapping_tables.MappingTableByNameModel&#xA;&#xA;Attributes for a dimension mapping table for soon-to-be registered \
dimensions by name.&#xA;This will be converted to a MappingTableModel as soon as the dimensions are registered.&#xA;"];
}
Fields:
field filename: str [Required] (alias 'file')

Filename containing association table records.

pydantic model dsgrid.config.dimension_mapping_base.DimensionMappingPreRegisteredBaseModel[source]

Base class for mapping soon-to-be registered dimensions. As soon as the dimensions are registered this will be converted to a DimensionMappingBaseModel and then registered.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimension_mapping_base.DimensionMappingPreRegisteredBaseModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionMappingPreRegisteredBaseModel</b></td></tr><tr><td>mapping_type</td><td port="mapping_type">DimensionMappingType</td></tr><tr><td>archetype</td><td port="archetype">Optional[DimensionMappingArchetype]</td></tr><tr><td>description</td><td port="description">str</td></tr><tr><td>from_fraction_tolerance</td><td port="from_fraction_tolerance">float</td></tr><tr><td>to_fraction_tolerance</td><td port="to_fraction_tolerance">float</td></tr></table>>,
      tooltip="dsgrid.config.dimension_mapping_base.DimensionMappingPreRegisteredBaseModel&#xA;&#xA;Base class for mapping soon-to-be registered \
dimensions. As soon as the dimensions&#xA;are registered this will be converted to a DimensionMappingBaseModel and then registered.&#\
xA;"];
}
Fields:
field archetype: DimensionMappingArchetype | None = None

Dimension mapping archetype, determined based on mapping_type

field description: str [Required]

Description of dimension mapping

field from_fraction_tolerance: float = 1e-06

Tolerance value to apply to the from_fraction column

field mapping_type: DimensionMappingType = 'many_to_one_aggregation'

Type/purpose of the dimension mapping

field to_fraction_tolerance: float = 1e-06

Tolerance value to apply to the to_fraction column

pydantic model dsgrid.config.dimensions.DimensionReferenceByNameModel[source]

Reference to a dimension that has yet to be registered.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "dsgrid.config.dimensions.DimensionReferenceByNameModel"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DimensionReferenceByNameModel</b></td></tr><tr><td>dimension_type</td><td port="dimension_type">DimensionType</td></tr><tr><td>name</td><td port="name">str</td></tr></table>>,
      tooltip="dsgrid.config.dimensions.DimensionReferenceByNameModel&#xA;&#xA;Reference to a dimension that has yet to be registered.&#xA;"];
}
Fields:
field dimension_type: DimensionType [Required] (alias 'type')

Type of the dimension

field name: str [Required]

Dimension name