Skip to content

Endpoints

Jason Reilly edited this page Dec 5, 2022 · 16 revisions

/query

This is a POST operation that expects JSON following the TRAPI format. See Example

curl -X 'POST' 'http://localhost:8080/query' -d @basic_query.json -H 'accept: application/json' -H 'Content-Type: application/json'

An optional parameters can be used to leverage conflation:

curl -X 'POST' 'http://localhost:8080/query?conflation_type=gene_protein' -d @basic_query.json -H 'accept: application/json' -H 'Content-Type: application/json'

/asyncquery

/get_allowed_conflations

This is an GET operation endpoint that returns the list of known/used conflation types (e.g. "gene_protein").

curl -X 'GET' 'http://localhost:8080/get_allowed_conflations' -H 'accept: application/json'

/get_normalized_nodes

This is a GET operation endpoint that returns JSON with a list of conanical CURIE identifiers.

To find the normalized/canonical versions of MESH:D014867 & NCIT:C34373, one append a list of CURIEs.

curl -X 'GET' 'http://localhost:8080/get_normalized_nodes?curie=MESH%3AD014867&curie=NCIT%3AC34373' -H 'accept: application/json'

An optional argument can be added to leverage conflation:

curl -X 'GET' 'http://localhost:8080/get_normalized_nodes?curie=MESH%3D014867&curie=NCIT%3AC34373&conflation_type=gene_protein' -H 'accept: application/json'

/get_semantic_types

This is a GET operation endpoint that returns JSON with a list of semantic types (eg, 'biolink:Cell', 'biolink:AnatomicalEntity', etc.)

curl -X 'GET' 'http://localhost:8080/get_semantic_types' -H 'accept: application/json'

/get_curie_prefixes

This is a GET operation endpoint that accepts a list of semantic types & returns JSON with a list of associated prefixes.

curl -X 'GET' 'http://localhost:8080/get_curie_prefixes?semantic_type=MESH%3AD014867' -H 'accept: application/json'
Clone this wiki locally