Next Previous Up Contents
Next: server: Runs an HTTP server to perform STILTS commands
Up: regquery: Queries the VO registry
Previous: Usage

B.7.2 Examples

Here are some examples of regquery:

stilts regquery query="identifier like '%astrogrid%'" out=ag.xml
Retrieves all the records in the registry whose identifier field contain the string "astrogrid". The '%' characters function as wildcards for the like operator. The output is written to a local VOTable file which can be examined or further processed later.
stilts regquery query="serviceType = 'SSAP'" omode=count
Queries the registry for all the records whose serviceType fields equal the string SSAP (this identifies services which support the Simple Spectral Access Protocol). These records are not stored, but the omode=count output mode counts the rows. This therefore tells you how many SSAP servers are registered.
stilts regquery query="serviceType = 'CONE' and title like '%Sloan%'" \
                ocmd="keepcols 'shortName serviceUrl'" \
                ofmt=ascii out=-
Queries the registry for all cone search services whose title contains the term "Sloan". The keepcols filter takes the result and throws away all the columns except for shortName and serviceUrl, and these are written to the terminal in ASCII format. This may be useful to find the service URL for a cone search service with particular data for use with the coneskymatch command.


Next Previous Up Contents
Next: server: Runs an HTTP server to perform STILTS commands
Up: regquery: Queries the VO registry
Previous: Usage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk