Freetext¶
- class pyvo.registry.Freetext(*words: str)[source]¶
Bases:
Constraint
A constraint using plain text to match against title, description, subjects, and person names.
- Parameters
- *wordsstr
One or more string arguments. It is recommended to pass multiple words in multiple strings arguments. You can pass in phrases (i.e., multiple words separated by space), but behaviour might then vary quite significantly between different registries.
Examples
>>> from pyvo import registry >>> registry.Freetext("Gamma", "Ray", "Burst")
Methods Summary
get_search_condition
(service)Formats this constraint to an ADQL fragment.
Methods Documentation
- get_search_condition(service)[source]¶
Formats this constraint to an ADQL fragment.
This takes the service the constraint is being executed on as an argument because constraints may be written differently depending on the service’s features or refuse to run altogether.
- Parameters
- service
TAPService
The RegTAP service the query is supposed to be run on (that is relevant because we adapt to the features available on given services).
- service
- Returns
- str
A string ready for inclusion into a WHERE clause.