build_regtap_query

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

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

Parameters:
constraintssequence 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).

serviceTAPService

The RegTAP service the query is supposed to be run on (that is relevant because we adapt to the features available on given services).

Returns:
str

An ADQL literal ready for submission to a RegTAP service.