IVOA

Simple Cone Search
Version 1.0

IVOA WG Internal Draft 08 September 2006

Working Group:
http://www.ivoa.net/twiki/bin/view/IVOA/IvoaDAL
Editor:
Raymond Plante
Authors:
Roy Williams
Robert Hanisch
Alex Szalay

Abstract

This specification defines a simple query protocol for retrieving records from a catalog of astronomical sources. The query describes sky position and an angular distance, defining a cone on the sky. The response returns a list of astronomical sources from the catalog whose positions lie within the cone formatted as a VOTable. This version of the specification is essentially a transcription of the original Cone Search specification in order to move it into the IVOA standardization process.

Status of this document

This is an IVOA Working Draft for review by IVOA members and other interested parties.
It is a draft document and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use IVOA Working Drafts as reference materials or to cite them as other than "work in progress."

This document was originally published as a document of the US National Virtual Observatory (NVO), available at http://us-vo.org/pubs/files/conesearch.html. This IVOA version is essentially a transcription of that document into the IVOA standards document format. Minor changes have been made sharpen the specification description where needed and to otherwise fit it into the IVOA standards context; these changes are enumerated in Appendix A. It is the intention of this document that all existing services compliant with the original NVO document will be compliant with this specification. Similarly, all future service implementations that are based on this specification are expected to be compliant with the spirit of the original NVO document and practices in the VO current at the time of this writing; thus, existing client applications should work with the new implementations without change.

Comments on this document can be sent to the Data Access Layer Working Group via dal@ivoa.net.

A list of current IVOA Recommendations and other technical documents can be found at http://www.ivoa.net/Documents/.

Acknowledgments

Cone Search represents the first and arguably the most successful "standard protocol" developed within the Virtual Observatory movement. The editor, therefore, gratefully acknowledges the work of the original authors of the Cone Search specification as well as the numerous data providers who have implemented and continue to support this protocol.

This document has been developed with support from the National Science Foundation's Information Technology Research Program under Cooperative Agreement AST0122449 with The Johns Hopkins University.

Conformance-related definitions

The words "MUST", "SHALL", "SHOULD", "MAY", "RECOMMENDED", and "OPTIONAL" (in upper or lower case) used in this document are to be interpreted as described in IETF standard, RFC 2119 [RFC 2119].

The Virtual Observatory (VO) is general term for a collection of federated resources that can be used to conduct astronomical research, education, and outreach. The International Virtual Observatory Alliance (IVOA) is a global collaboration of separately funded projects to develop standards and infrastructure that enable VO applications.

A Cone is a circular region on the sky defined by a sky position and a radius around that position. A Cone Search is a query for information related to a Cone. The Cone Search Protocol refers to the protocol described in this document. A Cone Search Service is a service implementation that complies with this standard.

Contents


1. Introduction

This specification describes how a provider of an astronomical source catalog can publish that catalog to the Virtual Observatory in such a way that a simple cone search can be done. The data remains in the control of the data provider, served through a web server to the world, but the query profile and response profile are carefully controlled, as described below. It is intended that setting up this web service be simple enough that data providers will not have to spend too much time on it (their funding to support such services is typically small). At the same time, the service implementation and the data it provides can serve as a basis for more sophisticated tools.

This specification does not specify how Cone Search services are implemented, or how the data are stored or manipulated. The concern of this specification is how the data are exposed to the world through well-defined requests and responses.

This specification assumes that the data provider has already selected a catalog of astronomical sources. This catalog can be presented as a single table; it is expected that the table contains several columns.

2. Service Interface Requirements

  1. Compliance REQUIRES that a web service be maintained responds to a HTTP GET request represented by a URL having two parts:
    • A base URL of the form:

           http://<server-address>/<path>?[<extra-GET-arg>&[...]]

      where <server-address> and <path> are URI-compliant components indicating the domain address and local location path where the service is deployed. The <server-address> may end with one or more locally supported URL arguments, <extra-GET-arg>; these arguments are not recognized parts of the Cone Search protocol and thus are treated opaquely by clients of the service as part of the base URL.

      Note that when it contains extra GET arguments, the base URL ends in an ampersand, &; if there are no extra arguments, then it ends in a question mark, ?.

      Examples:
      http://mycone.org/cgi-bin/VOsearch?
      http://adil.ncsa.uiuc.edu/vocone?resolv&issurvey=T&

      Every query to a given cone search service uses the same base URL.

    • Constraints expressed as a list of ampersand-delimited GET arguments of the form:
           <name>=<value>

      where <name> is a parameter name specified by this specification and <value> is its value. The constraints represent the query parameters which can vary for each successive query. The order of the name-parameter pairs is not significant.

    • The baseURL and constraint list are concatenated to form the query.

    • The set of query constraints must include the following parameters and interpreted by the service with stated meaning:

      • RA -- a right-ascension in the J2000 coordinate system for the positon of the center of the cone to search, given in decimal degrees.
      • DEC -- a declination in the J2000 coordinate system for the positon of the center of the cone to search, given in decimal degrees.
      • SR -- the radius of the cone to search, given in decimal degrees.

      Example:
      http://mycone.org/cgi-bin/search?RA=180.567&DEC-30.45&SR=0.0125

    • VERB is an optional parameter whose value is an integer indicating verbosity that specifies how many columns are to be returned in the resulting table, with 1 meaning the bare minimum and 3 being the full width of the resulting table, which may be hundreds of columns.

    • There may be other parameters in the query, but this document does not specify their meaning or usage. If a query includes an optional parameter, either one specified by this document or not, that is not supported by the service implementation, the service should must ignore that parameter.

    A query following this syntax represents a request for information on sources located within the specified cone on the sky.
  2. The service must respond with an XML document in the VOTable format, that represents a table of astronomical sources whose positions are within the cone. There may also be other sources outside the cone -- the service implementor may decide on the exact search criterion used internally to the service to select the sources.

  3. The MIME-type of the HTTP response should be text/xml. The XML content of the response must be compliant with VOTable schema, version 1.0 [VOTable v1.0].

    The VOTable MUST comply with these conditions:

  4. The service must respond with a stubbed version of the VOTable in the case of error. This must happen if the three required parameters (RA, DEC, SR) are not all present, or if their values cannot be parsed to floating-point numbers, or if the numbers are out of range (DEC=91.0, for example). The service may also make an error return if the search radius (give by the SR parameter) is larger than the MaxSR parameter of the Resource Profile (see Section 3).

  5. In the case of error, the service MUST respond with a VOTable that contains a single parameter called Error, where the corresponding value should contain some explanation of the nature of the error.

    Editor's Note:
    It has been recognized that this requirement, as described in the original NVO specification, is ambiguous about the location of the ERROR parameter. The VOTable standard allows PARAM elements to appear as direct children of either a RESOURCE element or a DEFINITION element (below the root VOTABLE element). Since in practice, both locations have been used by Cone Search service implementations, no attempt is made in this version to correct this ambiguity. Either location should be considered legal, and Cone Search service clients should be prepared to look in both places for an ERROR parameter.

    Other conditions may NOT be considered erroneous, for example if a query cone is in the Southern hemisphere and the catalog coverage is in the Northern hemisphere. This type of query is different from an error return; it should return a VOTable as described above, with metadata, but no data records. In particular, a zero value of Search Radius should not return an error condition. This is because an application may be more interested in the metadata than the data, and send a fixed query (for example RA=0&DEC=90&SR=0) simply to discover the fields delivered by the service.

3. The Resource Profile

A Cone Search service MUST be described with a Resource Profile that includes the following information. The Profile is composed of named metadata listed below. The format used to encode the profile should be compliant with the publishing standards of the IVOA throughout the time the service is supported by the data provider. The metadata names and values used in the profile encoding should match those given below as closely as possible; where they do not match exactly, they should be consistent with the IVOA metadata conventions in place at any given time and the mapping of names and values actually used and those given below should be well documented.

Editor's Note:
The original NVO specification pre-dates the IVOA standard for resource metadata [RM], and so, obviously, some inconsistencies with that standard exist. To deal with this, the wording of this section has been altered to allow profiles to be constructed according to the latest practices in the IVOA. Appendix B outlines the mapping of the metadata listed below to that in the RM as well as the XML Schema used to render the metadata within a Registry.

Several of the metadata listed below can have values that are hierarchical; this hierarchy should be represented in a manner most appropriate to the format used. When the format does not provide any such mechanism, it is recommended that the value be represented as a strings delimited by dots with the root domain of the value appearing first.

The resource profile consists of the following metadata with the stated definitions:

The service will considered published to the VO if the profile has been added to an IVOA Registry according to the IVOA standards and conventions at the time the service is made available, TOGETHER with maintaining the web service that is described by the profile in compliant order.

Appendix A: Changes From the Original NVO Specification Document

Appendix B: Current Practices for Representing Resource Profiles

B.1. Mapping for Resource Profile Metadata to the RM

As mentioned in an Editor's Note in Section 3, the original NVO specification pre-dated the IVOA standard for resource metadata known as the RM [RM]. This section indicates how the resource profile metadata defined in this specification maps to the metadata defined in the RM.

Cone Search Metadatum RM Metadatum
ResponsibleParty Publisher,
Contact.Email
ServiceName Title
Description Description
Instrument Instrument
Waveband Coverage.Spectral
Epoch Coverage.Temporal.StartTime,
Coverage.Temporal.StopTime1
Coverage Coverage.Spatial
MaxSR Service.MaxSearchRadius
MaxRecords Service.MaxReturnRecords
Verbosity n/a2
BaseURL Service.BaseURL
1The notion of the epoch the observations is captured in the RM as the temporal coverage. The notion of the equinox of the observational positions is captured part of the RM's Coverage.Spatial.
2As this concept is not covered by the RM, it should be considered service-specific capability metadata.

B.2. VOResource (pre-v1.0) Schema Extension for Cone Search Services

Just prior to the adoption of IVOA standard for registry interfaces, v1.0 [RI], resource descriptions were encoded using the VOResource XML Schema, v0.10 and its family of extension schemas. The extensions used to specifically describe Cone Search services were VODataService, v0.5 and ConeSearch, v0.3. See the embedded documentation in each of these schemas for the precise definitions and usage of the metadata encodable through them.

The following table enumerates the mapping of resource profile metadata defined in this specification with those defined in the XML schemas.

Cone Search Metadatum VOResource Metadatum
Schema Name XPath Name
ResponsibleParty VOResource curation/publisher,
curation/contact/email
ServiceName VOResource title
Description VOResource content/description
Instrument VOResource instrument
Waveband VODataService coverage/spectral/waveband
Epoch VODataService coverage/temporal/startTime,
coverage/temporal/stopTime1
Coverage VODataService coverage/spatial2
MaxSR ConeSearch capability/maxSR
MaxRecords ConeSearch capability/maxRecords
Verbosity ConeSearch capability/verbosity
BaseURL VOResource interface/accessURL
1The notion of the epoch the observations is captured in the schema inside coverage/temporal. The notion of the equinox of the observational positions is captured within coverage/spatial/region, such as in coverage/spatial/region[@xsi:type='vs:Circle']/coordFrame.
2the coverage/spatial element encodes its information as a complex set of child elements.

B.3. VOResource (v1.0) Schema Extension for Cone Search Services

With the expected adoption of the IVOA standard for Registry Interface [RI], resources are described using the VOResource schema, v1.0 [VOR] and its family of extensions. Cone Search services are specifically described using the VODataService, v1.0, and ConeSearch, v1.0, extension schemas. Coverage information is encoded using the Space-Time Coordinates (STC) schema [STC].

The following table enumerates the mapping of resource profile metadata defined in this specification with those defined in the XML schemas.

Cone Search Metadatum VOResource Metadatum
Schema Name XPath Name
ResponsibleParty VOResource curation/publisher,
curation/contact/email
ServiceName VOResource title
Description VOResource content/description
Instrument VOResource instrument
Waveband VODataService coverage/waveband
Epoch VODataService coverage/stc:STCResourceProfile/stc:AstroCoordArea1
Coverage VODataService coverage/stc:STCResourceProfile/stc:AstroCoordArea1
MaxSR ConeSearch capability/maxSR
MaxRecords ConeSearch capability/maxRecords
Verbosity ConeSearch capability/verbosity
BaseURL VOResource capability/interface[@role='std']/accessURL
1In STC, coverage on the sky and in time are described in an integrated way within the stc:AstroCoordArea element. The notion of the equinox of the observational positions is captured within stc:AstroCoordSystem element.

Subsequent versions of this document should include the ConeSearch extension schema as a formal part of the specification.

References

[RFC 2119]
Bradner, S. 1997. Key words for use in RFCs to Indicate Requirement Levels, IETF RFC 2119, http://www.ietf.org/rfc/rfc2119.txt
[VOTable v1.0]
Ochsenbein, François et al. 2004, VOTable: A Proposed XML Format for Astronomical Tables, Version 1.0, http://www.ivoa.net/Documents/REC/VOTable/VOTable-20040811.html.
[RM]
Hanisch, Robert (ed.) 2004. Resource Metadata for the Virtual Observatory, Version 1.01, IVOA Recommendation, http://www.ivoa.net/Documents/REC/ResMetadata/RM-20040426.htm
[SIA]
Tody, Doug and Plante, Ray 2004, Simple Image Access Specification Version 1.0, http://www.ivoa.net/Documents/WD/SIA/sia-20040524.html.

Last modified: Sun Sep 10 22:30:13 2006