query
Initiate a query and wait to receive a Response
post/query
Request body
Example request
{
"message": {
"query_graph": {
"edges": {
"e00": {
"subject": "n00",
"object": "n01",
"predicates": [
"biolink:physically_interacts_with"
]
}
},
"nodes": {
"n00": {
"ids": [
"CHEMBL.COMPOUND:CHEMBL112"
]
},
"n01": {
"categories": [
"biolink:Protein"
]
}
}
}
},
"log_level": "DEBUG",
"max_results": 100,
"page_size": 100,
"page_number": 1,
"operations": {
"message_uris": [
"https://arax.ncats.io/api/arax/v1.3/response/38"
],
"messages": [
{
"query_graph": {
"edges": {
"e00": {
"subject": "n00",
"object": "n01",
"predicates": [
"biolink:physically_interacts_with"
]
}
},
"nodes": {
"n00": {
"ids": [
"CHEMBL.COMPOUND:CHEMBL112"
]
},
"n01": {
"categories": [
"biolink:Protein"
]
}
}
}
}
],
"actions": [
"add_qnode(name=acetaminophen, key=n00)",
"add_qnode(category=biolink:Protein, key=n01)",
"add_qedge(subject=n01, object=n00, key=e00)",
"expand(edge_key=e00)",
"resultify()",
"filter_results(action=limit_number_of_results, max_results=10)"
],
"options": {
"halt_on_warning": false
}
}
}Response
OK. There may or may not be results. Note that some of the provided identifiers may not have been recognized.
Example response
{
"original_question": "what proteins are affected by sickle cell anemia",
"validation_result": "{}",
"submitter": "submitter",
"workflow": [
"",
""
],
"query_options": {
"coalesce": true,
"threshold": 0.9
},
"restated_question": "Which proteins are affected by sickle cell anemia?",
"biolink_version": "3.1.2",
"description": "Success. 42 results found.",
"message": {
"query_graph": {
"edges": {
"e00": {
"subject": "n00",
"object": "n01",
"predicates": [
"biolink:physically_interacts_with"
]
}
},
"nodes": {
"n00": {
"ids": [
"CHEMBL.COMPOUND:CHEMBL112"
]
},
"n01": {
"categories": [
"biolink:Protein"
]
}
}
}
},
"type": "TranslatorAPIResponse",
"total_results_count": 0,
"schema_version": "1.4.0",
"datetime": "2021-01-09 12:34:45",
"operations": "",
"table_column_names": [
"chemical_substance.name",
"chemical_substance.id"
],
"tool_version": "ARAX 0.8.0",
"job_id": "rXEOAosN3L",
"context": "https://rtx.ncats.io/ns/translator.jsonld",
"resource_id": "ARAX",
"id": "https://arax.ncats.io/api/rtx/v1.3/response/123",
"logs": [
{
"code": "code",
"level": "",
"message": "message",
"timestamp": "2020-09-03T18:13:49Z"
},
{
"code": "code",
"level": "",
"message": "message",
"timestamp": "2020-09-03T18:13:49Z"
}
],
"status": "Success",
"info": "info"
}