UCD

Web services
Simple manual for a series of Web Services for UCD that I developed:

Contents:


1  explain

1.1  Scope

This function gives a human-readable explanation for a UCD composed of one or several words.

1.2  Usage

explain(String ucd);

1.3  Result type

String definition.

Example

explain("ivoa:phot.mag;em.opt.B")
Photometric magnitude / Optical B band between 400 and 500 nm

1.4  CGI test access

You can also access this method as a simple CGI. Example


2  validate

2.1  Scope

This function checks that a UCD is well-formed.

2.2  Usage

validate(String ucd);

2.3  Result type

String.

The first word of the string is an error code, possibly followed by an explanation of the error. A return value of 0 indicates no error (valid UCD).

The error-code results from the combination (logical OR) of the following values:

  • 1: warning indicating use of non-standard namespace (not ivoa:)
  • 2: use of deprecated word
  • 4: use of non-existing word
  • 8: syntax error (extra space or unallowed character)

2.4  CGI test access

You can also access this method as a simple CGI.

Example (one valid and one invalid UCD)

Back Home