cdm_data_loaders.pipelines.xmltopyarrow.settings ¶
Settings class for the XML to PyArrow pipeline for the KBase CTS.
XmlToPyArrowConfigError ¶
Bases: ValueError
Base error raised when XML-to-PyArrow target selection, XSD schema resolution, or hook validation fails.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
InvalidXmlTargetSelectionError ¶
Bases: XmlToPyArrowConfigError
xml_level cannot be combined with xml_tag or table_name; xml_tag and table_name are both required when xml_level is not set; root_tag is only valid when xml_level is set.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
InvalidXsdDocumentError ¶
Bases: XmlToPyArrowConfigError
xsd_file must be a well-formed XML document and a valid W3C XML Schema (xs:schema).
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
XmlTargetNotFoundError ¶
Bases: XmlToPyArrowConfigError
The configured xml_tag, root_tag, or xml_level does not resolve to any element declaration in the XSD.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
UnsupportedXsdTargetError ¶
Bases: XmlToPyArrowConfigError
The target element must map to a PyArrow struct table schema and cannot contain unsupported XSD constructs (such as scalar-only roots or recursive non-JSON types).
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
InvalidXmlPipelineHookError ¶
Bases: XmlToPyArrowConfigError
Configured preprocessors_module, transforms_module, or output_schemas_module references unknown table names or omits required output schemas.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
XmlToPyArrowSettings ¶
Bases: XmlIngestSettings, TransformSettingsMixin
Settings for the XML to PyArrow ingestion pipeline.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
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 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | |
xsd_schema
property
¶
Return the loaded XMLSchema instance.
Returns:
| Type | Description |
|---|---|
xmlschema.XMLSchema
|
loaded XMLSchema instance |
xml_element_converter
property
¶
Return the precomputed XML-element-to-dict converter for xml_tag.
xml_level_converters
property
¶
Return the precomputed XML-element-to-dict converters keyed by tag name at xml_level.
pyarrow_schema
property
¶
Return the generated PyArrow schema for xml_tag (or None in level mode).
Returns:
| Type | Description |
|---|---|
pa.Schema | None
|
PyArrow schema or None |
pyarrow_schemas
property
¶
Return the mapping of target table names to generated PyArrow schemas.
Returns:
| Type | Description |
|---|---|
dict[str, pa.Schema]
|
mapping of table names to PyArrow schemas |
PresetXmlToPyArrowSettings ¶
Bases: XmlToPyArrowSettings
Base settings for XML-to-PyArrow pipelines backed by a bundled XSD and precomputed PyArrow schema.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
LevelPresetXmlToPyArrowSettings ¶
Bases: XmlToPyArrowSettings
Base settings for level-based XML-to-PyArrow pipelines backed by a bundled XSD and precomputed schemas.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
PubMedXmlToPyArrowSettings ¶
Bases: LevelPresetXmlToPyArrowSettings
Settings for the PubMed XML to PyArrow ingestion pipeline.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
UniProtXmlToPyArrowSettings ¶
Bases: PresetXmlToPyArrowSettings
Settings for the UniProt XML to PyArrow ingestion pipeline.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
UniRefXmlToPyArrowSettings ¶
Bases: PresetXmlToPyArrowSettings
Settings for the UniRef XML to PyArrow ingestion pipeline.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
UniRef50XmlToPyArrowSettings ¶
Bases: UniRefXmlToPyArrowSettings
UniRef 50 XML to PyArrow ingest settings.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
UniRef90XmlToPyArrowSettings ¶
Bases: UniRefXmlToPyArrowSettings
UniRef 90 XML to PyArrow ingest settings.
Source code in src/cdm_data_loaders/pipelines/xmltopyarrow/settings.py
UniRef100XmlToPyArrowSettings ¶
Bases: UniRefXmlToPyArrowSettings
UniRef 100 XML to PyArrow ingest settings.