cdm_data_loaders.converters.core.ir ¶
Immutable, target-independent schema facts and composition contracts.
Provenance
dataclass
¶
Source location and owned metadata, not an alternate conversion input.
Source code in src/cdm_data_loaders/converters/core/ir.py
__post_init__ ¶
Isolate source paths and metadata.
Source code in src/cdm_data_loaders/converters/core/ir.py
NodeHints
dataclass
¶
Source logical facts; target encodings and fallbacks belong to emitters.
Source code in src/cdm_data_loaders/converters/core/ir.py
__post_init__ ¶
Reject malformed logical type facts without coercion.
Source code in src/cdm_data_loaders/converters/core/ir.py
TypedNode
dataclass
¶
A value schema, independent of a property's presence requirement.
declared_type preserves absent, scalar and union-list declarations.
nullable=None means unresolved, not false. Schema-valued keywords are
stored as nodes, never mixed into literal enum/default/example data.
Source code in src/cdm_data_loaders/converters/core/ir.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
__post_init__ ¶
Own mappings and sequences and validate child structure.
Source code in src/cdm_data_loaders/converters/core/ir.py
aggregate_metadata ¶
Merge constraints, annotations, and extensions into a single mapping.
Source code in src/cdm_data_loaders/converters/core/ir.py
Field
dataclass
¶
Property presence and metadata outside any nullable value wrapper.
Source code in src/cdm_data_loaders/converters/core/ir.py
__post_init__ ¶
Validate field identity and own its metadata.
Source code in src/cdm_data_loaders/converters/core/ir.py
SchemaDocument
dataclass
¶
A named schema root with document metadata separate from value metadata.
Source code in src/cdm_data_loaders/converters/core/ir.py
__post_init__ ¶
Validate the root and isolate document metadata.
Source code in src/cdm_data_loaders/converters/core/ir.py
Reader ¶
Bases: Protocol
Read a source into one document or a named document forest.
Source code in src/cdm_data_loaders/converters/core/ir.py
Emitter ¶
Bases: Protocol
Consume structural IR directly, applying target policy at emission.