Introduction

The Suggester service will check and recommended values for a BioPAX property in a given context. Currently, it’s an experimental feature of the online BioPAX Validator service and can only advise about Xrefs.

Get the Identifiers.org URI for a biological entity/entry by the data collection name (db) and identifier (id).

Example request:

$ curl 'http://localhost:8080/xref/ec_code/6.1.1.5/' -i -X GET \
    -H 'Accept: application/json'

HTTP response:

HTTP/1.1 200 OK
Content-Length: 38
Content-Type: application/json;charset=UTF-8

http://identifiers.org/ec-code/6.1.1.5

Check the list of biological xrefs and suggests preferred name, uri, namespace, etc. where possible.

Example request:

$ curl 'http://localhost:8080/xref' -i -X POST \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '[ {
  "db" : "ec",
  "id" : "1.1.1.1",
  "uri" : null,
  "dbOk" : false,
  "idOk" : false,
  "preferredDb" : null,
  "namespace" : null
}, {
  "db" : "ec",
  "id" : "foo",
  "uri" : null,
  "dbOk" : false,
  "idOk" : false,
  "preferredDb" : null,
  "namespace" : null
} ]'

HTTP response:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 234

{"info":"some info","values":[{"db":"ec","id":"1.1.1.1","uri":null,"dbOk":true,"idOk":true,"preferredDb":null,"namespace":"ec-code"},{"db":"ec","id":"foo","uri":null,"dbOk":true,"idOk":false,"preferredDb":null,"namespace":"ec-code"}]}