DatalinkRecord

class pyvo.dal.adhoc.DatalinkRecord(results, index, *, session=None)[source]

Bases: DatalinkRecordMixin, SodaRecordMixin, Record

a dictionary-like container for data in a record from the results of an datalink query,

The commonly accessed metadata which are stadardized by the datalink standard are available as attributes. If the metadatum accessible via an attribute is not available, the value of that attribute will be None. All metadata, including non-standard metadata, are acessible via the get( key ) function (or the [key] operator) where key is table column name.

Attributes Summary

access_url

Link to data or processing service

content_length

Size of the download the link returns

content_type

Mime-type of the content the link returns

description

Human-readable text describing this link

error_message

Error if an access_url cannot be created

id

Input identifier

input_params

a list of input parameters for the service behind this datalink row.

params

the access parameters of the service behind this datalink row.

semantics

Term from a controlled vocabulary describing the link

service_def

reference to the service descriptor resource

Methods Summary

getdataurl()

return the URL contained in the access URL column which can be used to retrieve the dataset described by this record.

process(**kwargs)

calls the processing service and returns it's result as a file-like object

Attributes Documentation

access_url

Link to data or processing service

content_length

Size of the download the link returns

content_type

Mime-type of the content the link returns

description

Human-readable text describing this link

error_message

Error if an access_url cannot be created

id

Input identifier

input_params

a list of input parameters for the service behind this datalink row.

params

the access parameters of the service behind this datalink row.

semantics

Term from a controlled vocabulary describing the link

service_def

reference to the service descriptor resource

Methods Documentation

getdataurl()[source]

return the URL contained in the access URL column which can be used to retrieve the dataset described by this record. Raises DALServiceError if theres an error.

process(**kwargs)[source]

calls the processing service and returns it’s result as a file-like object