DataStructureDefinition

class sdmxthon.model.definitions.DataStructureDefinition(id_: str | None = None, uri: str | None = None, urn: str | None = None, annotations=None, name: InternationalString | None = None, description: InternationalString | None = None, version: str | None = None, validFrom: datetime | None = None, validTo: datetime | None = None, isFinal: bool | None = None, isExternalReference: bool | None = None, serviceUrl: str | None = None, structureUrl: str | None = None, maintainer=None, dimension_list: DimensionDescriptor | None = None, measure_list: MeasureDescriptor | None = None, attribute_list: AttributeDescriptor | None = None, group_dimension_descriptor: GroupDimensionDescriptor | None = None, constraint: list | None = None)

Bases: MaintainableArtefact

A collection of metadata concepts, their structure and usage when used to collect or disseminate data.

add_constraint(value: ContentConstraint)
property attribute_codes

Keys of the attributeDescriptor components

property attribute_descriptor

A set metadata concepts that define the attributes of a Data Structure Definition.

property constraints
property content

Extracts the content of a DSD as a dict

property dataset_attribute_codes

Attributes with no specified relationship

property dimension_codes

Keys of the dimensionDescriptor components

property dimension_descriptor

An ordered set of metadata concepts that, combined, classify a statistical series, and whose values, when combined (the key) in an instance such as a data set, uniquely identify a specific observation

property group_dimension_descriptor

A set metadata concepts that define a partial key derived from the Dimension Descriptor in a Data Structure Definition.

property measure_code

Key of the MeasureDescriptor component (PrimaryMeasure)

property measure_descriptor

A metadata concept that defines the measure of a Data Structure Definition

to_vtl_json(path: str | None = None)

Formats the DataStructureDefinition as a VTL DataStructure

DataFlowDefinition

class sdmxthon.model.definitions.DataFlowDefinition(id_: str | None = None, uri: str | None = None, urn: str | None = None, annotations=None, name: InternationalString | None = None, description: InternationalString | None = None, version: str | None = None, validFrom: datetime | None = None, validTo: datetime | None = None, isFinal: bool | None = None, isExternalReference: bool | None = None, serviceUrl: str | None = None, structureUrl: str | None = None, maintainer=None, structure: DataStructureDefinition | None = None, constraints: list | None = None)

Bases: MaintainableArtefact

Abstract concept (i.e. the structure without any data) of a flow of data that providers will provide for different reference periods.

add_constraint(value: ContentConstraint)
property structure

Associates a DataflowDefinition to the DataStructureDefinition.