Lookup API

/find_ids

GET Find ids for given labels, from some specified dictionaries

Parameters

Name Located in Description Type
dictionaries url dictionary names, delimited by comma (',') String
labels url labels, delimited by newline('\n'), tab('\t'), or pipe ('|') String
rich url set it 'true' for rich output Boolean
threshold url similarity threshold for cut-off Float

Responses

200 A hash of ids for labels
{
  "stomach": [
    "http://purl.obolibrary.org/obo/UBERON_0000945"
  ]
}
400 Bad Request
{
  "message": "no label is supplied."
}

POST Same as above, but a set of labels can be given in JSON

Parameters

Name Located in Description Type
dictionaries url dictionary names, delimited by comma (',') String
labels body labels Array of String
rich url set it 'true' for rich output Boolean
threshold url similarity threshold for cut-off Float

Responses

200 A hash of ids for labels
{
  "stomach": [
    "http://purl.obolibrary.org/obo/UBERON_0000945"
  ]
}
400 Bad Request
{
  "message": "no label is supplied."
}
/dictionaries/{name}/prefix_completion

GET Get prefix completions, based on the specified dictionary

Parameters

Name Located in Description Type
term url prefix of a term String

Responses

200 An ordered list of pairs of (label, id)
400 No term
/dictionaries/{name}/substring_completion

GET Get substring completions, based on the specified dictionary

Parameters

Name Located in Description Type
term url substring of a term String

Responses

200 An ordered list of pairs of (label, id)
400 No term