From 0be39b765e94d04899f8b1b8354e853f5311e3a3 Mon Sep 17 00:00:00 2001 From: Nathanael Jourdane Date: Wed, 20 Apr 2016 18:36:30 +0200 Subject: [PATCH] Update query example --- src/main/java/eu/omp/irap/vespa/epntapclient/lib/Queries.java | 3 --- src/main/java/eu/omp/irap/vespa/epntapclient/votable/README.md | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/lib/Queries.java b/src/main/java/eu/omp/irap/vespa/epntapclient/lib/Queries.java index 2f49358..edab5e8 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/lib/Queries.java +++ b/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; */ public final class Queries { - // AMDA access_url: http://cdpp-epntap.cesr.fr/__system__/tap/run/tap - // AMDA table name: amdadb.epn_core - /** Query to get all EPN-TAP services. */ public static final String GET_EPN_TAP_SERVICES = "SELECT short_name, " + "res_title AS schema_title, table_name, schema_name, ivoid, access_url " diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/README.md b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/README.md index 653ced2..0086c86 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/README.md +++ b/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 This will display the VOTable resulting the service or registry request. -- `targetURL`: The URL of the service or registry to ask, ie `http://cdpp-epntap.cesr.fr`; +- `targetURL`: The URL of the service or registry to ask, ie `http://voparis-tap.obspm.fr/__system__/tap/run/tap`; - `language`: The language of the query, ie `ADQL`; -- `query`: The query in the specified language in double quotes, ie. `"SELECT * FROM amdadb.epn_core"` +- `query`: The query in the specified language in double quotes, ie. `SELECT TOP 3 * FROM apis.epn_core"` + +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` ## Usage from a Java library -- libgit2 0.21.2