+ All Categories
Home > Documents > TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources...

TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources...

Date post: 28-Jul-2020
Category:
Upload: others
View: 6 times
Download: 0 times
Share this document with a friend
14
TAP Implementation TAP Implementation in in Simbad Authors:  Grégory Mantelet Marc Wenger IVOA Interoperability Workshop – Naples – May 2011
Transcript
Page 1: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

TAP ImplementationTAP Implementation

in in Simbad

Authors:  Grégory ManteletMarc Wenger

IVOA Interoperability Workshop – Naples – May 2011

Page 2: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

2/9

OutlineOutline

A)A) Simbad TAPSimbad TAP

B)B) ImplementationImplementation1.Simbad2.Server3.The CDS TAP Library4.ADQL→SQL

C)C) Work in progress...Work in progress...

Page 3: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

3/9

Simbad TAPSimbad TAPHow to use Simbad TAP ?

2 ways to use Simbad TAP:

The web site interface

A client application (ex: Topcat)

Page 4: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

4/9

TAP ImplementationTAP ImplementationSimbad

By URLor through the web site

DBHTTP ServletsHTTP ServletsHTTP ServletsHTTP Servlets

Page 5: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

5/9

TAP ImplementationTAP ImplementationServer

DBHTTP ServletsHTTP ServletsHTTP ServletsHTTP Servlets

CDSTAP Library

1 HTTP Servlet(sim­tap)

http://.../sim­tap/*

Page 6: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

6/9

TAP ImplementationTAP ImplementationThe CDS TAP Library

Manages all TAP resources and parameters

TAP Library includes: UWS Library

Lets to manage asynchronous jobs ADQL Library

Lets to parse, transform and translate ADQL queries

In Simbad: 1 servlet + 5 classes + 1 class per output format

= ~1200 lines

Page 7: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

7/9

TAP ImplementationTAP ImplementationADQL→SQL

ADQL Library : the class ADQLTranslator

PostgreSQL 8.4 + PgSphere 1.1

PgSphere syntax close to ADQL syntax:ADQL

Unit radpoint

box

distance <­>@

PgSpheredeg

Objects

spointcircle scircle

sboxpolygon spoly

Functionsarea area

contains

Page 8: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

8/9

Work in progress...Work in progress...

Simbad: Coordinate system interpretation Aborting a query execution

PQL ? UPLOAD ?

Libraries : ADQL & TAP to finalize and to release UWS v3.1 to release (with backward compatibility)

Page 9: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

9/9

Some linksSome links

Simbad http://simbad.u-strasbg.fr/simbad/

PgSphere http://pgsphere.projects.postgresql.org/

CDS UWS Library (v3.0) http://cds.u-strasbg.fr/resources/doku.php?id=uwslib

Questions about SimTAP: [email protected]

Page 10: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

10/9

ADQL LibraryADQL Library(work in progress)

Functionnalities Parses ADQL => 1 object (instance of AQLQuery) Writes ADQL Defines and applies research Translates ADQL (by default, in SQL)

Warning : Translation of ADQL geometrical functions must be

specified by the implementor !

Page 11: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

11/9

ADQL LibraryADQL Library(work in progress)

Page 12: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

12/9

TAP LibraryTAP Library(work in progress)

Managed resources : /sync /async (→ UWS library) /availability /capabilities (→ follows the TAPRegExt document) /tables

Page 13: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

13/9

TAP LibraryTAP Library(work in progress)

Implementor work : Override ADQLExecutor:

How to execute an ADQL query ? Idea of default implementation : translate into SQL

and execute on a database with a given JDBC driver

Override ServiceConnection Creates and returns an ADQLExecutor Get tables metadata

Write one servlet Creates and configures a TAP instance Forward requests to this instance

Page 14: TAP Implementation in Simbad · TAP Implementation The CDS TAP Library Manages all TAP resources and parameters TAP Library includes: UWS Library Lets to manage asynchronous jobs

14/9

TAP LibraryTAP Library(work in progress)

Loads tables/columns metadata (/tables ressource) from the schema tap_schema of the database by default (other ways for metadata extraction may be added)

Load into


Recommended