Commit 0be39b765e94d04899f8b1b8354e853f5311e3a3

Authored by Nathanael Jourdane
1 parent 2eda27c0
Exists in master

Update query example

src/main/java/eu/omp/irap/vespa/epntapclient/lib/Queries.java
... ... @@ -29,9 +29,6 @@ import eu.omp.irap.vespa.epntapclient.votable.utils.Strings.StringJoiner;
29 29 */
30 30 public final class Queries {
31 31  
32   - // AMDA access_url: http://cdpp-epntap.cesr.fr/__system__/tap/run/tap
33   - // AMDA table name: amdadb.epn_core
34   -
35 32 /** Query to get all EPN-TAP services. */
36 33 public static final String GET_EPN_TAP_SERVICES = "SELECT short_name, "
37 34 + "res_title AS schema_title, table_name, schema_name, ivoid, access_url "
... ...
src/main/java/eu/omp/irap/vespa/epntapclient/votable/README.md
... ... @@ -21,9 +21,11 @@ This will display the VOTable stored in the specified XML file, through a minima
21 21  
22 22 This will display the VOTable resulting the service or registry request.
23 23  
24   -- `targetURL`: The URL of the service or registry to ask, ie `http://cdpp-epntap.cesr.fr`;
  24 +- `targetURL`: The URL of the service or registry to ask, ie `http://voparis-tap.obspm.fr/__system__/tap/run/tap`;
25 25 - `language`: The language of the query, ie `ADQL`;
26   -- `query`: The query in the specified language in double quotes, ie. `"SELECT * FROM amdadb.epn_core"`
  26 +- `query`: The query in the specified language in double quotes, ie. `SELECT TOP 3 * FROM apis.epn_core"`
  27 +
  28 +The examples above send this query: `http://voparis-tap.obspm.fr/__system__/tap/run/tap/sync?REQUEST=doQuery&LANG=ADQL&FORMAT=votable&QUERY=SELECT%20TOP%201%2A%20FROM%20apis%2Eepn%5Fcore`
27 29  
28 30 ## Usage from a Java library
29 31  
... ...