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

### B.17.2 Examples

Here are some examples of `regquery`:

    stilts regquery query="title like '%IRAS%'" ofmt=ascii out=iras.txt

  Retrieves all the records in the registry whose `title` field contain the string "IRAS". The '`%`' characters function as wildcards for the ADQL `like` operator. The output is written to a local ASCII table which can be examined later.

    stilts regquery query="capability/@standardID = 'ivo://ivoa.net/std/ConeSearch'
                           and curation/@publisher like '%astrogrid%'"
                    omode=count

  Searches for all resources which offer a cone search service and are published by AstroGrid. In this case the records are not stored, but the `omode=count` output mode counts the rows. This therefore tells you how many AstroGrid cone search services are in the registry.

    stilts regquery query="capability/@standardID = 'ivo://ivoa.net/std/SSA'"
                    ocmd="keepcols 'identifier accessUrl'"
                    ofmt=ascii out=-

  Queries the registry for all Simple Spectral Access services. The `keepcols` filter takes the result and throws away all the columns except for `identifier` and `accessUrl`, and these are written to the terminal int ASCII format.

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
Mailing list: topcat-user@jiscmail.ac.uk