build_regtap_query

pyvo.registry.rtcons.build_regtap_query(constraints)[source]

returns a RegTAP query ready for submission from a list of Constraint instances.

Parameters
constraints: sequence of `Constraint`-s

A sequence of constraints for a RegTAP query. All of them will become part of a conjunction (i.e., all of them have to be satisfied for a record to match).

Returns
str

An ADQL literal ready for submission to a RegTAP service.