Ontological term broker/Search Results

An example of a JSON search result is:

{   "id":"PRO:000004168", "description":[ "\"A protein that is a translation product of the APP gene or a 1:1 ortholog thereof.\" [PRO:DNx]", "amyloid beta A4 protein" ],   "accession":[ "P05067", "P12023" ],   "type":"PRO" }

Search results conform to a JSON Schema:

SearchResult := { "name" : "SearchResult", "type" : "object", "properties" : { "id" : "string", "type" : "string",  // "type" -> "response-type", see below. "description" : { "type" : "array", "items" : { "type" : "string" } },     "accession" : { "type" : "array", "items" : { "type" : "string" } }  } }

The type property takes values either from set of ontology names (e.g. "PRO") or as the word "query." (This should be just 'request'.)

''This needs to be updated, to reflect requests from different ontologies. s/query/request/, and for that matter, I need to change the "type" property name to something that doesn't confuse the hell out of JSON Schema, such as "response-type" or some such. --TWD''