|
Resource URLsThe GO/wr URLs are given in the URI template notation (described by Gregorio et al, IETF draft, Nov 26, 2007). Briefly, the curly braces "{ }" define a variable embedded in the URI template. The variable must be replaced by the appropriate value to create a valid URI.
HTTP methodsThe GO/wr resources are read-only. Therefore, the only important HTTP method is GET. The HEAD and OPTIONS methods have not yet been implemented. URL-encoding valuesThe {goacc} and query parameter values may contain characters that are not allowed in URLs. For instance, a space character cannot be included as-is in a URL. Such characters must be URL-encoded. The space (blank) character is encoded as '+', while most special characters are converted to ASCII-based hexadecimal percent codes, e.g. '!' to '%21'. URL-encoding is also called Percent-encoding. Specifying the representationThe representation of the retrieved data, i.e. the format, can be specified by appending a suffix, such as '.xml', to the URL. See Representations. Currently, the available formats are HTML and XML. Specifying a termThe GO accession code (identifier) is the basic specification to use when retrieving a record in the GO database. The GO term accession code is a seven-digit number (with leading zeroes), optionally with the 'GO:' prefix. It is also possible to use the URL-encoded form of the explicit term name. This is not recommended, since the term name is likely to be less stable between GO releases than the GO accession code. The term name may be updated as circumstances dictate, but as long as the meaning is the same, the accession code is fixed. More than one termIt is possible to fetch more than one term representation in a single XML document (currently not possible in HTML). Use the 'terms/{goaccs}' URL, where {goaccs} is a semicolon-delimited string of GO accession codes. The order of the terms in the XML document is undefined. This is a much more efficient way of retrieving several terms representations than issuing one request per term. We recommend using this feature whenever possible. The only caveat is that the URL cannot be longer than some badly defined maximum length. Keep it shorter than 4,000 characters in total. Query parameters
|
| GO/wr 0.9 copyright 2007-2008 © Avatar Software AB |