Simple manual for a series of
Web Services for UCD that
I developed:
- explain
- Scope
- Usage
- Result type
- CGI test access
- validate
- Scope
- Usage
- Result type
- CGI test access
explain
Scope
This function gives a human-readable
explanation for a UCD composed of one or several words.
Usage
explain(String ucd);
Result type
String definition.
Example
explain("ivoa:phot.mag;em.opt.B")
Photometric magnitude / Optical B band between 400 and 500 nm
CGI test access
You can also access this method as a simple CGI.
Example
validate
Scope
This function checks that a UCD is well-formed.
Usage
validate(String ucd);
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)
CGI test access
You can also access this method as a simple CGI.
Example (one valid and one invalid UCD)