votable

VOTable parsing utilities for DataLink responses.

Attributes

VOTABLE_NS

Functions

parse_votable_to_products(xml_bytes)

Parse a DataLink VOTable response and return a list of ProductDIDs ready to stream.

Module Contents

votable.VOTABLE_NS
votable.parse_votable_to_products(xml_bytes)

Parse a DataLink VOTable response and return a list of ProductDIDs ready to stream.

Handles both single-file VOTables (#this rows with an inputParams ID) and dataset VOTables (#child rows). The local STORM path is derived from the path_on_storage component embedded in each IVOA ID (the part after ‘?’).

Raises HTTP 400 if the VOTable is missing the product-streamer RESOURCE or has fields in an unexpected format.

Parameters:

xml_bytes (bytes) –

Return type:

list[ska_src_dm_product_service.models.request.ProductDID]