Skip to content

Commit

Permalink
Merge pull request #426 from zoghbi-a/enhance-registry-docstring
Browse files Browse the repository at this point in the history
ENH: Add more text to registry.search docstring for the types of constraints that can be used
  • Loading branch information
bsipocz authored Jul 26, 2023
2 parents c5b1fe1 + 2bb3d54 commit a394cc8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pyvo/registry/regtap.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,36 @@ def search(*constraints: rtcons.Constraint, includeaux: bool = False, maxrec: in
*constraints : `rtcons.Constraint` instances
The constraints (keywords to match, positions to cover, ...)
that the returned records need to satisfy.
The accepted constraints are:
- keywords: one or more freetext words, mached in the title,
description or subject of the resource.
- servicetype: constrain to one of tap, ssa, sia, conesearch
(or full ivoids for other service types). This is the
constraint you want to use for service discovery.
- ucd: constrain by one or more UCD patterns; resources match
when they serve columns having a matching UCD
(e.g., phot.mag;em.ir.% for "any infrared magnitude").
- waveband: one or more terms from the vocabulary at
http://www.ivoa.net/rdf/messenger giving the rough spectral
location of the resource.
- author: an author ("creator"). This is a single SQL pattern,
and given the sloppy practices in the VO for how to write
author names, you should probably generously use wildcards.
- datamodel: one of obscore, epntap, or regtap: only return TAP
services having tables of this kind.
- ivoid: exactly match a single IVOA identifier (that is,
in effect, the primary key in the VO).
- spatial: match resources covering a certain geometry (point,
circle, polygon, or MOC). RegTAP 1.2 Extension.
- spectral: match resources covering a certain part of the spectrum
(usually, but not limited to, the electromagnetic spectrum).
RegTAP 1.2 Extension
- temporal: match resources covering a some point or interval in
time. RegTAP 1.2 Extension
Multiple constraints are combined conjunctively ("AND").
includeaux : bool
Flag for whether to include auxiliary capabilities in results.
Expand Down

0 comments on commit a394cc8

Please sign in to comment.