9 September 2005NVO Summer School 2006 - Aspen Astronomical Dataset Query Language (ADQL) Ray Plante T HE US N ATIONAL V IRTUAL O BSERVATORY.

Slides:



Advertisements
Similar presentations
Recommendations for a Table Access Protocol Ray Plante, Tamas Budavari, Gretchen Greene, John Goode, Tom McGlynn, Maria Nieto-Santistaban, Alex Szalay,
Advertisements

Registries Work Package 2 Requirements, Science Cases, Use Cases, Test Cases Charter: Focus on science case scenarios, and use cases related specifically.
IVOA Interop, Cambridge UK, IVOA Data Access Layer Table Access Protocol Analysis Doug Tody (NRAO/NVO ) I NTERNATIONAL V IRTUAL O BSERVATORY A LLIANCE.
European Space Astronomy Centre (ESAC) Villafranca del Castillo, MADRID (SPAIN) Aurélien Stébé DALToolKit Ingestor & Server September 2006, Moscow DALToolKit.
VOQL WG Plenary Session Sept 27, 2004 William OMullane for Masatoshi Ohishi.
28 October 2008 IVOA Interoperability Meeting -- Baltimore T HE I NTERNATIONAL V IRTUAL O BSERVATORY ALLIANCE TAP/VOTable Registry Interface Reg 1 – G.
May. 2004IVOA Meeting / Boston1 OpenSkyQuery,SkyNodes and ADQL William OMullane Johns Hopkins University T HE US N ATIONAL V IRTUAL O BSERVATORY.
A few notes on JVOQL François Ochsenbein. JVOQL: a few questions FROM clause: not clear how to specify the list e.g. FROM clause: not clear how to specify.
Data Mining, ADQL, & The National Virtual Observatory's OpenSkyQuery Utility by Richard Doc Kinne, KQR 2008 AAVSO Fall Conference Nantucket, MA.
NVO Summer School VO Protocols and Jargon Overview Tom McGlynn NASA/GSFC T HE US N ATIONAL V IRTUAL O BSERVATORY.
NVO Summer School, Aspen Center for Physics1 Publishing and Resource Discovery with Registries Ray Plante Gretchen Greene.
September 13, 2004NVO Summer School1 VO Protocols Overview Tom McGlynn NASA/GSFC T HE US N ATIONAL V IRTUAL O BSERVATORY.
September 13, 2004NVO Summer School1 VO Protocols Overview Tom McGlynn NASA/GSFC T HE US N ATIONAL V IRTUAL O BSERVATORY.
6 September 2008NVO Summer School 2008 – Santa Fe1 DAL Clients: Scripting Data Access with Python Ray Plante T HE US N ATIONAL V IRTUAL O BSERVATORY.
Discovery and Exploration in the VO Chris Miller NOAO/CTIO La Serena, Chile T HE US N ATIONAL V IRTUAL O BSERVATORY.
2008 NVO Summer School1 Finding Services in the NVO Registry Gretchen Greene T HE US N ATIONAL V IRTUAL O BSERVATORY.
NVO Summer School, Aspen 9-Sep TimeServer Andrew Drake Robyn Allsman David Gasson Mark Huber Kathy Vivas US N ATIONAL V IRTUAL O BSERVATORY.
Footprint Service Specification NVO Summer School 2008 Gretchen Greene (thanks to Tamas Budavari and Francois Bonnarel) T HE US N ATIONAL V IRTUAL O BSERVATORY.
September 7, 2005NVO Summer School1 Building a SkyNode Server Tom McGlynn NASA/GSFC T HE US N ATIONAL V IRTUAL O BSERVATORY.
Sept NVO Summer School1 Cone, SIAP, and OpenSkyQuery Client Development Gretchen Greene, Maria Nieto-Santisteban T HE US N ATIONAL V IRTUAL O.
VO Standards – Catalog Access Tamás Budavári Johns Hopkins University.
8 September 2008NVO Summer School 2008 – Santa Fe1 Publishing Data and Services to the VO Ray Plante Gretchen Greene T HE US N ATIONAL V IRTUAL O BSERVATORY.
14 Sep 2006NVO Summer School T HE US N ATIONAL V IRTUAL O BSERVATORY Simple SSA Query Kelly McCusker Amy Kimball Mike Koss Phil Warner Melinda Mello.
Sept NVO Summer School1 The NVO DataScope: Internals Tom McGlynn NASA/GSFC T HE US N ATIONAL V IRTUAL O BSERVATORY.
Aus-VO Workshop 2003 International Virtual Observatory Alliance effort on Virtual Observatory Query Language Naoki Yasuda (JVO), VOQL WG.
CASDA Virtual Observatory CSIRO ASTRONOMY AND SPACE SCIENCE Arkadi Kosmynin 11 March 2014.
László Dobos 1,2, Tamás Budavári 2, Nolan Li 2, Alex Szalay 2, István Csabai 1 1 Eötvös Loránd University, Budapest,
14 October 2003ADASS 2003 – Strasbourg1 Resource Registries for the Virtual Observatory R.Plante (NCSA), G. Greene (STScI), R. Hanisch (STScI), T. McGlynn.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 25.
T HE I NTERNATIONAL V IRTUAL O BSERVATORY ALLIANCE VAO Registry Relational Schema: Updates and New Interface(s) Theresa Dower Registry WG 16 May 2013 IVOA.
2003 April 151 Data Centres: Connecting to the Real World Clive Page.
Supported by the National Science Foundation’s Information Technology Research Program under Cooperative Agreement AST with The Johns Hopkins University.
László Dobos, Tamás Budavári, Alex Szalay, István Csabai Eötvös University / JHU Aug , 2008.IDIES Inaugural Symposium, Baltimore1.
Astronomical Data Query Language Simple Query Protocol for the Virtual Observatory Naoki Yasuda 1, William O'Mullane 2, Tamas Budavari 2, Vivek Haridas.
VOQL WG Progress Report May 28, 2004 Masatoshi Ohishi.
DateADASS How to Navigate VO Datasets Using VO Protocols Ray Plante (NCSA/UIUC), Thomas McGlynn and Eric Winter NASA/GSFC T HE US N ATIONAL V IRTUAL.
Functions and Demo of Astrogrid 1.1 China-VO Haijun Tian.
Scalable Metadata Definition Frameworks Raymond Plante NCSA/NVO Toward an International Virtual Observatory How do we encourage a smooth evolution of metadata.
JVO JVO Portal Japanese Virtual Observatory (JVO) Prototype 2 Masahiro Tanaka, Yuji Shirasaki, Satoshi Honda, Yoshihiko Mizumoto, Masatoshi Ohishi (NAOJ),
RELATIONAL FAULT TOLERANT INTERFACE TO HETEROGENEOUS DISTRIBUTED DATABASES Prof. Osama Abulnaja Afraa Khalifah
11/26/2003IVOA Small Projects Meeting Potential R&D focuses for China-VO Chenzhou Cui National Astronomical Observatory of China Chinese Virtual.
ICDL 2004 Improving Federated Service for Non-cooperating Digital Libraries R. Shi, K. Maly, M. Zubair Department of Computer Science Old Dominion University.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Oct. 1, 2004IVOA Small Projects Meeting1 Development of JVO prototype system and its application to Astrophysics Portal System : M. Tanaka Data Service.
30 October 2008 IVOA Interoperability Meeting -- Baltimore T HE I NTERNATIONAL V IRTUAL O BSERVATORY ALLIANCE VOTable interface with Registry Joint Apps/DM/Registry.
European Space Astronomy Centre (ESAC) Villafranca del Castillo, MADRID (SPAIN) Aurélien Stébé Registry and Curation, Oct 2005, ESAC, Spain ESAVO Registry.
T HE I NTERNATIONAL V IRTUAL O BSERVATORY ALLIANCE 28 May 2009 IVOA Interoperability Meeting -- Strasbourg NVO Registry Curation and Validation Tools NVO.
XML and Database.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
May 24, 2004IVOA Interop Meeting1 An AXIS-based Java SkyNode Ramon Williamson NCSA T HE US N ATIONAL V IRTUAL O BSERVATORY.
12 Oct 2003VO Tutorial, ADASS Strasbourg, Data Access Layer (DAL) Tutorial Doug Tody, National Radio Astronomy Observatory T HE US N ATIONAL V IRTUAL.
JVO portal service Yuji Shirasaki National Astronomical Observatory of Japan.
Martin Kruliš by Martin Kruliš (v1.1)1.
William O’Mullane/ Tannu Malik - JHU IVOA Cambridge May 12-16, 2003 SkyQuery.Net SKYQUERY Federated Database Query System (using WebServices)
May 2006IVOA Victoria, Canada1 VOQL Where do we stand? What is left? Yuji Shirasaki JVO Maria A. Nieto-Santisteban JHU T HE US N ATIONAL V IRTUAL O BSERVATORY.
IVOA Interop, Beijing, China, May IVOA Data Access Layer Working Group Sessions Doug Tody (NRAO/NVO ) Markus Dolensky (ESO/EuroVO) Data Access Layer.
16 May 2006IVOA Interoperability – Registries WG1 VOResource Schema v1.0 Release 6 Ray Plante NCSA T HE I NTERNATIONAL V IRTUAL O BSERVATORY A LLIANCE.
Sept. 2004IVOA Meeting / Pune1 Virtual Observatory Query Language (VOQL) Working Group William O’Mullane For Masatoshi Oishi T HE US N ATIONAL V IRTUAL.
How to use the GALEX SkyNode*
Standard Query Language for VO
Database Systems: Design, Implementation, and Management Tenth Edition
XML in Web Technologies
Sky Query: A distributed query engine for astronomy
Database Processing with XML
PDAP Query Language International Planetary Data Alliance
Chapter 8 Advanced SQL.
Google Sky.
Database Systems: Design, Implementation, and Management Tenth Edition
Presentation transcript:

9 September 2005NVO Summer School Aspen Astronomical Dataset Query Language (ADQL) Ray Plante T HE US N ATIONAL V IRTUAL O BSERVATORY

9 September 2005NVO Summer School Aspen Intersections and Goals Users –Will primarily use portal interfaces to query catalogs in pursuit of science Goals: Create original ADQL queries using the OpenSkyPortal Cross-correlate two catalogs using the XMatch function Scripters and Data Providers –Will use client libraries to query catalogs In pursuit of science requires more queries and/or repetition than is practical to do by hand. –Will use a toolkit to deploy a service that uses ADQL (e.g. SkyNode) Goals: Understand the role of ADQL/x in supporting query web services See how ADQL will be used with other services beyond SkyNodes Developers –Will develop new services and applications that use ADQL –Will extend existing code that uses ADQL Goals: Use library to convert between ADQL/s & ADQL/x Understand how ADQL can be adapted to new local query languages

9 September 2005NVO Summer School Aspen What is ADQL? ADQL = subset of SQL92 + astronomy extensions –Originally developed as part of SkyNode interface –Focuses on read-access via SELECT –Later versions allow creating tables to hold intermediate results –astronomy: regions and cross-matching ADQL has two forms: –ADQL/s – string form Looks like SQL Intended as users view of ADQL –ADQL/x – XML form SQL parse tree Format used in messages passed to search services Easier to parse and transform into local query

9 September 2005NVO Summer School Aspen Caution: Construction ahead ADQL is undergoing rapid change as a standard –OpenSkyPortal and existing SkyNodes use ADQL v0.7.4 This talk will focus on this version –IVOA is currently considering v1.05 –Discussion is underway to simplify ADQL in the context of a Table Access Protocol Bringing a core syntax in compliance with SQL92 De-emphasizing the role of ADQL/x by supporting ADQL/s directly on the wire Sharpening the definitions of cross-match and region functions

9 September 2005NVO Summer School Aspen Why ADQL/x? If ADQL is standard SQL (plus) and we are querying SQL databases, why do we need an XML form? –Query Transformation is commonly necessary Few databases are 100% compliant with the SQL standard. –Transform to local SQL dialect Semantic filtering possible (transforming metadata). Easier to adapt to non-relational databases –E.g. XML database –A pre-parsed form on the wire makes transformations easier to implement ADQL/x on the wire –Shifts parsing problem to the client – ACCESS BARRIER! Experience –Minor transformations can often be handled via SQL string manipulation –More careful adherence to SQL92 would eliminate most common difference between native SQLs (TOP, functions) –The emergence of parser/conversion tools make choice of wire format less important

9 September 2005NVO Summer School Aspen Why ADQL/x? If ADQL is standard SQL (plus) and we are querying SQL databases, why do we need an XML form? Query Transformation is commonly necessary –Few databases are 100% compliant with the SQL standard. Transform to local SQL dialect –Semantic filtering possible (transforming metadata). –Easier to adapt to non-relational databases E.g. XML database

9 September 2005NVO Summer School Aspen What is ADQL? SELECT o.objId, o.ra, o.r, o.type, t.objId FROM SDSS:PhotoPrimary o, TWOMASS:PhotoPrimary t WHERE XMATCH(o,t,3.5,1) AND Region('Circle J ') AND o.type=3

9 September 2005NVO Summer School Aspen ADQL for Users Restrictions on SQL92 Only SELECT statements allowed –v1.0: SELECT INTO for saving results in remote storage All tables in FROM must define an alias FROM PhotoPrimary o JOIN keywords not supported –Traditional inner joins supported –Outer joins not supported IN keyword not supported p.id IN ( , , )

9 September 2005NVO Summer School Aspen ADQL for Users Astronomical Extension: Regions Does a position fall within a region of sky? Uses Space-time Coordinate metadata schema –Also an emerging IVOA standard –Has string and XML formats Allows for a several region shapes, coordinate systems –Current SkyNode implementations only support CIRCLE J2000 WHERE REGION('CIRCLE J2000 ra dec radius ') –ra dec = right ascension, declination in degrees –radius = angular radius of cone, in degrees

9 September 2005NVO Summer School Aspen ADQL for Users Joining Tables Implied Inner Joins –WHERE constraint where key in one table is set to key in other table p.objId = s.objId –This is only practical for joining tables from the same catalog/node ADQL/SkyQuery was motivated by the need to cross-correlate distributed tables by position –XMatch: extension for joining based on matching positions. Current practice: a statistical analysis of the likelihood that two positions are the same

9 September 2005NVO Summer School Aspen ADQL for Users Astronomical Extension: XMatch Catalog/Node designation: –Tables in FROM class are preceeded by node name FROM SDSS:PhotoPrimary s, TWOMASS:PhotoPrimary t XMatch function –Arguments: tables to cross-match Referred to by the table aliases –Returns: chi-squared confidence that two objects are the same XMATCH(s, t) < 3.5 given sources in each table are the same with a confidence of better than 3.5 sigmas –Can include negative detection XMATCH(s, t, !o) < 3.5 Detected in tables s and t but not in o

9 September 2005NVO Summer School Aspen ADQL for Users/Data Providers The XMatch Algorithm ADQL does not set cross-match algorithm –Requires positional information and positional errors SkyNode recommends chi-square minimization – x, y, z is the unit vector position of the most likely position of an object – x n, y n, z n is the measured position in a survey – α n is a weighting based on the positional error

9 September 2005NVO Summer School Aspen Limiting the cross-matched candidates –In principle, analysis can be carried out on every possible combination of detections –Techniques for limiting cross-matches User provides a limited region constraint User provides other filtering constraints (e.g. color) Implementation can apply internal X2 cut-off based on given overall limit Invoking XMatch causes additional info to be returned –Most likely position, the original positions – Χ 2, Minimized Chi-squared –SkyNodes: intermediate values in statistical calculations A single detections position can appear in multiple cross- matched records ADQL for Users/Data Providers Using XMatch

9 September 2005NVO Summer School Aspen ADQL for Scripters Accessing ADQL Services OpenSkyPortal web service takes ADQL/s –querying SkyNodes is straight-forward through portal service Querying an individual SkyNode service –Requires use of ADQL/x –Client-side support is not great but improving –As a user, would like to give ADQL/s Use convertADQL to convert ADQL/s to ADQL/x on the fly

9 September 2005NVO Summer School Aspen ADQL for Scripters Other uses of ADQL Searching Registries –Registry Interface v1.0 for this year –Specify only WHERE clause –Use simple XPaths for column names Ex: WHERE content/description LIKE '%quasars%' Future generations of SIAP, SSAP –Replace simple keyword=value query –More fine-grained control over search criteria

9 September 2005NVO Summer School Aspen ADQL for Developers ADQLlib Parses and converts between string & XML versions Can be incorporated into client code to provide support for ADQL/s –Java clients can use Java API directly –Other clients can use the convertADQL command-line tool ADQL/x -> ADQL/s –Multiple transformation implementations, can be supported –Default implementation uses XSLT –Can be configured to convert from ADQL/x directly to a RDBMS local variant of SQL