@@ -241,7 +241,7 @@ def get_search_condition(self, service):
241
241
242
242
class Freetext (Constraint ):
243
243
"""
244
- A contraint using plain text to match against title, description,
244
+ A constraint using plain text to match against title, description,
245
245
subjects, and person names.
246
246
"""
247
247
_keyword = "keywords"
@@ -251,11 +251,17 @@ def __init__(self, *words: str):
251
251
252
252
Parameters
253
253
----------
254
- *words : tuple of str
254
+ *words : str
255
+ One or more string arguments.
255
256
It is recommended to pass multiple words in multiple strings
256
257
arguments. You can pass in phrases (i.e., multiple words
257
258
separated by space), but behaviour might then vary quite
258
259
significantly between different registries.
260
+
261
+ Examples
262
+ --------
263
+ >>> from pyvo import registry
264
+ >>> registry.Freetext("Gamma", "Ray", "Burst") # doctest: +IGNORE_OUTPUT
259
265
"""
260
266
self .words = words
261
267
@@ -387,7 +393,7 @@ def __init__(self, *stds):
387
393
388
394
Parameters
389
395
----------
390
- *stds : tuple of str
396
+ *stds : str
391
397
one or more standards identifiers. The constraint will
392
398
match records that have any of them.
393
399
"""
@@ -462,7 +468,7 @@ def __init__(self, *bands):
462
468
463
469
Parameters
464
470
----------
465
- *bands : tuple of strings
471
+ *bands : strings
466
472
One or more of the terms given in http://www.ivoa.net/rdf/messenger.
467
473
The constraint matches when a resource declares at least
468
474
one of the messengers listed.
@@ -559,6 +565,7 @@ def __init__(self, ivoid, *more_ivoids):
559
565
----------
560
566
561
567
ivoid : string
568
+ One or more string arguments.
562
569
The IVOA identifier of the resource to match. As RegTAP
563
570
requires lowercasing ivoids on ingestion, the constraint
564
571
lowercases the ivoid passed in, too.
@@ -588,7 +595,7 @@ def __init__(self, *patterns):
588
595
Parameters
589
596
----------
590
597
591
- patterns : tuple of strings
598
+ patterns : strings
592
599
SQL patterns (i.e., ``%`` is 0 or more characters) for
593
600
UCDs. The constraint will match when a resource has
594
601
at least one column matching one of the patterns.
0 commit comments