POST Initiate a query with a callback to receive the response
{{baseUrl}}/asyncquery
BODY json

{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/asyncquery");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/asyncquery" {:content-type :json
                                                       :form-params {:callback ""
                                                                     :message {:results [{:node_bindings {}
                                                                                          :analyses [{:resource_id ""
                                                                                                      :score ""
                                                                                                      :edge_bindings {}
                                                                                                      :support_graphs []
                                                                                                      :scoring_method ""
                                                                                                      :attributes [{:attribute_type_id ""
                                                                                                                    :original_attribute_name ""
                                                                                                                    :value ""
                                                                                                                    :value_type_id ""
                                                                                                                    :attribute_source ""
                                                                                                                    :value_url ""
                                                                                                                    :description ""
                                                                                                                    :attributes []}]}]
                                                                                          :id ""
                                                                                          :description ""
                                                                                          :essence ""
                                                                                          :essence_category ""
                                                                                          :row_data []
                                                                                          :score ""
                                                                                          :score_name ""
                                                                                          :score_direction ""
                                                                                          :confidence ""
                                                                                          :result_group 0
                                                                                          :result_group_similarity_score ""
                                                                                          :resource_id ""}]
                                                                               :query_graph ""
                                                                               :knowledge_graph ""
                                                                               :auxiliary_graphs {}}
                                                                     :log_level ""
                                                                     :workflow []
                                                                     :submitter ""}})
require "http/client"

url = "{{baseUrl}}/asyncquery"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/asyncquery"),
    Content = new StringContent("{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/asyncquery");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/asyncquery"

	payload := strings.NewReader("{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/asyncquery HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1151

{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/asyncquery")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/asyncquery"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/asyncquery")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/asyncquery")
  .header("content-type", "application/json")
  .body("{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  callback: '',
  message: {
    results: [
      {
        node_bindings: {},
        analyses: [
          {
            resource_id: '',
            score: '',
            edge_bindings: {},
            support_graphs: [],
            scoring_method: '',
            attributes: [
              {
                attribute_type_id: '',
                original_attribute_name: '',
                value: '',
                value_type_id: '',
                attribute_source: '',
                value_url: '',
                description: '',
                attributes: []
              }
            ]
          }
        ],
        id: '',
        description: '',
        essence: '',
        essence_category: '',
        row_data: [],
        score: '',
        score_name: '',
        score_direction: '',
        confidence: '',
        result_group: 0,
        result_group_similarity_score: '',
        resource_id: ''
      }
    ],
    query_graph: '',
    knowledge_graph: '',
    auxiliary_graphs: {}
  },
  log_level: '',
  workflow: [],
  submitter: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/asyncquery');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/asyncquery',
  headers: {'content-type': 'application/json'},
  data: {
    callback: '',
    message: {
      results: [
        {
          node_bindings: {},
          analyses: [
            {
              resource_id: '',
              score: '',
              edge_bindings: {},
              support_graphs: [],
              scoring_method: '',
              attributes: [
                {
                  attribute_type_id: '',
                  original_attribute_name: '',
                  value: '',
                  value_type_id: '',
                  attribute_source: '',
                  value_url: '',
                  description: '',
                  attributes: []
                }
              ]
            }
          ],
          id: '',
          description: '',
          essence: '',
          essence_category: '',
          row_data: [],
          score: '',
          score_name: '',
          score_direction: '',
          confidence: '',
          result_group: 0,
          result_group_similarity_score: '',
          resource_id: ''
        }
      ],
      query_graph: '',
      knowledge_graph: '',
      auxiliary_graphs: {}
    },
    log_level: '',
    workflow: [],
    submitter: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/asyncquery';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"callback":"","message":{"results":[{"node_bindings":{},"analyses":[{"resource_id":"","score":"","edge_bindings":{},"support_graphs":[],"scoring_method":"","attributes":[{"attribute_type_id":"","original_attribute_name":"","value":"","value_type_id":"","attribute_source":"","value_url":"","description":"","attributes":[]}]}],"id":"","description":"","essence":"","essence_category":"","row_data":[],"score":"","score_name":"","score_direction":"","confidence":"","result_group":0,"result_group_similarity_score":"","resource_id":""}],"query_graph":"","knowledge_graph":"","auxiliary_graphs":{}},"log_level":"","workflow":[],"submitter":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/asyncquery',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "callback": "",\n  "message": {\n    "results": [\n      {\n        "node_bindings": {},\n        "analyses": [\n          {\n            "resource_id": "",\n            "score": "",\n            "edge_bindings": {},\n            "support_graphs": [],\n            "scoring_method": "",\n            "attributes": [\n              {\n                "attribute_type_id": "",\n                "original_attribute_name": "",\n                "value": "",\n                "value_type_id": "",\n                "attribute_source": "",\n                "value_url": "",\n                "description": "",\n                "attributes": []\n              }\n            ]\n          }\n        ],\n        "id": "",\n        "description": "",\n        "essence": "",\n        "essence_category": "",\n        "row_data": [],\n        "score": "",\n        "score_name": "",\n        "score_direction": "",\n        "confidence": "",\n        "result_group": 0,\n        "result_group_similarity_score": "",\n        "resource_id": ""\n      }\n    ],\n    "query_graph": "",\n    "knowledge_graph": "",\n    "auxiliary_graphs": {}\n  },\n  "log_level": "",\n  "workflow": [],\n  "submitter": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/asyncquery")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/asyncquery',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  callback: '',
  message: {
    results: [
      {
        node_bindings: {},
        analyses: [
          {
            resource_id: '',
            score: '',
            edge_bindings: {},
            support_graphs: [],
            scoring_method: '',
            attributes: [
              {
                attribute_type_id: '',
                original_attribute_name: '',
                value: '',
                value_type_id: '',
                attribute_source: '',
                value_url: '',
                description: '',
                attributes: []
              }
            ]
          }
        ],
        id: '',
        description: '',
        essence: '',
        essence_category: '',
        row_data: [],
        score: '',
        score_name: '',
        score_direction: '',
        confidence: '',
        result_group: 0,
        result_group_similarity_score: '',
        resource_id: ''
      }
    ],
    query_graph: '',
    knowledge_graph: '',
    auxiliary_graphs: {}
  },
  log_level: '',
  workflow: [],
  submitter: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/asyncquery',
  headers: {'content-type': 'application/json'},
  body: {
    callback: '',
    message: {
      results: [
        {
          node_bindings: {},
          analyses: [
            {
              resource_id: '',
              score: '',
              edge_bindings: {},
              support_graphs: [],
              scoring_method: '',
              attributes: [
                {
                  attribute_type_id: '',
                  original_attribute_name: '',
                  value: '',
                  value_type_id: '',
                  attribute_source: '',
                  value_url: '',
                  description: '',
                  attributes: []
                }
              ]
            }
          ],
          id: '',
          description: '',
          essence: '',
          essence_category: '',
          row_data: [],
          score: '',
          score_name: '',
          score_direction: '',
          confidence: '',
          result_group: 0,
          result_group_similarity_score: '',
          resource_id: ''
        }
      ],
      query_graph: '',
      knowledge_graph: '',
      auxiliary_graphs: {}
    },
    log_level: '',
    workflow: [],
    submitter: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/asyncquery');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  callback: '',
  message: {
    results: [
      {
        node_bindings: {},
        analyses: [
          {
            resource_id: '',
            score: '',
            edge_bindings: {},
            support_graphs: [],
            scoring_method: '',
            attributes: [
              {
                attribute_type_id: '',
                original_attribute_name: '',
                value: '',
                value_type_id: '',
                attribute_source: '',
                value_url: '',
                description: '',
                attributes: []
              }
            ]
          }
        ],
        id: '',
        description: '',
        essence: '',
        essence_category: '',
        row_data: [],
        score: '',
        score_name: '',
        score_direction: '',
        confidence: '',
        result_group: 0,
        result_group_similarity_score: '',
        resource_id: ''
      }
    ],
    query_graph: '',
    knowledge_graph: '',
    auxiliary_graphs: {}
  },
  log_level: '',
  workflow: [],
  submitter: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/asyncquery',
  headers: {'content-type': 'application/json'},
  data: {
    callback: '',
    message: {
      results: [
        {
          node_bindings: {},
          analyses: [
            {
              resource_id: '',
              score: '',
              edge_bindings: {},
              support_graphs: [],
              scoring_method: '',
              attributes: [
                {
                  attribute_type_id: '',
                  original_attribute_name: '',
                  value: '',
                  value_type_id: '',
                  attribute_source: '',
                  value_url: '',
                  description: '',
                  attributes: []
                }
              ]
            }
          ],
          id: '',
          description: '',
          essence: '',
          essence_category: '',
          row_data: [],
          score: '',
          score_name: '',
          score_direction: '',
          confidence: '',
          result_group: 0,
          result_group_similarity_score: '',
          resource_id: ''
        }
      ],
      query_graph: '',
      knowledge_graph: '',
      auxiliary_graphs: {}
    },
    log_level: '',
    workflow: [],
    submitter: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/asyncquery';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"callback":"","message":{"results":[{"node_bindings":{},"analyses":[{"resource_id":"","score":"","edge_bindings":{},"support_graphs":[],"scoring_method":"","attributes":[{"attribute_type_id":"","original_attribute_name":"","value":"","value_type_id":"","attribute_source":"","value_url":"","description":"","attributes":[]}]}],"id":"","description":"","essence":"","essence_category":"","row_data":[],"score":"","score_name":"","score_direction":"","confidence":"","result_group":0,"result_group_similarity_score":"","resource_id":""}],"query_graph":"","knowledge_graph":"","auxiliary_graphs":{}},"log_level":"","workflow":[],"submitter":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"callback": @"",
                              @"message": @{ @"results": @[ @{ @"node_bindings": @{  }, @"analyses": @[ @{ @"resource_id": @"", @"score": @"", @"edge_bindings": @{  }, @"support_graphs": @[  ], @"scoring_method": @"", @"attributes": @[ @{ @"attribute_type_id": @"", @"original_attribute_name": @"", @"value": @"", @"value_type_id": @"", @"attribute_source": @"", @"value_url": @"", @"description": @"", @"attributes": @[  ] } ] } ], @"id": @"", @"description": @"", @"essence": @"", @"essence_category": @"", @"row_data": @[  ], @"score": @"", @"score_name": @"", @"score_direction": @"", @"confidence": @"", @"result_group": @0, @"result_group_similarity_score": @"", @"resource_id": @"" } ], @"query_graph": @"", @"knowledge_graph": @"", @"auxiliary_graphs": @{  } },
                              @"log_level": @"",
                              @"workflow": @[  ],
                              @"submitter": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/asyncquery"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/asyncquery" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/asyncquery",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'callback' => '',
    'message' => [
        'results' => [
                [
                                'node_bindings' => [
                                                                
                                ],
                                'analyses' => [
                                                                [
                                                                                                                                'resource_id' => '',
                                                                                                                                'score' => '',
                                                                                                                                'edge_bindings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'support_graphs' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scoring_method' => '',
                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attribute_type_id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'original_attribute_name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value_type_id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attribute_source' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value_url' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'id' => '',
                                'description' => '',
                                'essence' => '',
                                'essence_category' => '',
                                'row_data' => [
                                                                
                                ],
                                'score' => '',
                                'score_name' => '',
                                'score_direction' => '',
                                'confidence' => '',
                                'result_group' => 0,
                                'result_group_similarity_score' => '',
                                'resource_id' => ''
                ]
        ],
        'query_graph' => '',
        'knowledge_graph' => '',
        'auxiliary_graphs' => [
                
        ]
    ],
    'log_level' => '',
    'workflow' => [
        
    ],
    'submitter' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/asyncquery', [
  'body' => '{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/asyncquery');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'callback' => '',
  'message' => [
    'results' => [
        [
                'node_bindings' => [
                                
                ],
                'analyses' => [
                                [
                                                                'resource_id' => '',
                                                                'score' => '',
                                                                'edge_bindings' => [
                                                                                                                                
                                                                ],
                                                                'support_graphs' => [
                                                                                                                                
                                                                ],
                                                                'scoring_method' => '',
                                                                'attributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attribute_type_id' => '',
                                                                                                                                                                                                                                                                'original_attribute_name' => '',
                                                                                                                                                                                                                                                                'value' => '',
                                                                                                                                                                                                                                                                'value_type_id' => '',
                                                                                                                                                                                                                                                                'attribute_source' => '',
                                                                                                                                                                                                                                                                'value_url' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'id' => '',
                'description' => '',
                'essence' => '',
                'essence_category' => '',
                'row_data' => [
                                
                ],
                'score' => '',
                'score_name' => '',
                'score_direction' => '',
                'confidence' => '',
                'result_group' => 0,
                'result_group_similarity_score' => '',
                'resource_id' => ''
        ]
    ],
    'query_graph' => '',
    'knowledge_graph' => '',
    'auxiliary_graphs' => [
        
    ]
  ],
  'log_level' => '',
  'workflow' => [
    
  ],
  'submitter' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'callback' => '',
  'message' => [
    'results' => [
        [
                'node_bindings' => [
                                
                ],
                'analyses' => [
                                [
                                                                'resource_id' => '',
                                                                'score' => '',
                                                                'edge_bindings' => [
                                                                                                                                
                                                                ],
                                                                'support_graphs' => [
                                                                                                                                
                                                                ],
                                                                'scoring_method' => '',
                                                                'attributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attribute_type_id' => '',
                                                                                                                                                                                                                                                                'original_attribute_name' => '',
                                                                                                                                                                                                                                                                'value' => '',
                                                                                                                                                                                                                                                                'value_type_id' => '',
                                                                                                                                                                                                                                                                'attribute_source' => '',
                                                                                                                                                                                                                                                                'value_url' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'id' => '',
                'description' => '',
                'essence' => '',
                'essence_category' => '',
                'row_data' => [
                                
                ],
                'score' => '',
                'score_name' => '',
                'score_direction' => '',
                'confidence' => '',
                'result_group' => 0,
                'result_group_similarity_score' => '',
                'resource_id' => ''
        ]
    ],
    'query_graph' => '',
    'knowledge_graph' => '',
    'auxiliary_graphs' => [
        
    ]
  ],
  'log_level' => '',
  'workflow' => [
    
  ],
  'submitter' => ''
]));
$request->setRequestUrl('{{baseUrl}}/asyncquery');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/asyncquery' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/asyncquery' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/asyncquery", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/asyncquery"

payload = {
    "callback": "",
    "message": {
        "results": [
            {
                "node_bindings": {},
                "analyses": [
                    {
                        "resource_id": "",
                        "score": "",
                        "edge_bindings": {},
                        "support_graphs": [],
                        "scoring_method": "",
                        "attributes": [
                            {
                                "attribute_type_id": "",
                                "original_attribute_name": "",
                                "value": "",
                                "value_type_id": "",
                                "attribute_source": "",
                                "value_url": "",
                                "description": "",
                                "attributes": []
                            }
                        ]
                    }
                ],
                "id": "",
                "description": "",
                "essence": "",
                "essence_category": "",
                "row_data": [],
                "score": "",
                "score_name": "",
                "score_direction": "",
                "confidence": "",
                "result_group": 0,
                "result_group_similarity_score": "",
                "resource_id": ""
            }
        ],
        "query_graph": "",
        "knowledge_graph": "",
        "auxiliary_graphs": {}
    },
    "log_level": "",
    "workflow": [],
    "submitter": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/asyncquery"

payload <- "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/asyncquery")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/asyncquery') do |req|
  req.body = "{\n  \"callback\": \"\",\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/asyncquery";

    let payload = json!({
        "callback": "",
        "message": json!({
            "results": (
                json!({
                    "node_bindings": json!({}),
                    "analyses": (
                        json!({
                            "resource_id": "",
                            "score": "",
                            "edge_bindings": json!({}),
                            "support_graphs": (),
                            "scoring_method": "",
                            "attributes": (
                                json!({
                                    "attribute_type_id": "",
                                    "original_attribute_name": "",
                                    "value": "",
                                    "value_type_id": "",
                                    "attribute_source": "",
                                    "value_url": "",
                                    "description": "",
                                    "attributes": ()
                                })
                            )
                        })
                    ),
                    "id": "",
                    "description": "",
                    "essence": "",
                    "essence_category": "",
                    "row_data": (),
                    "score": "",
                    "score_name": "",
                    "score_direction": "",
                    "confidence": "",
                    "result_group": 0,
                    "result_group_similarity_score": "",
                    "resource_id": ""
                })
            ),
            "query_graph": "",
            "knowledge_graph": "",
            "auxiliary_graphs": json!({})
        }),
        "log_level": "",
        "workflow": (),
        "submitter": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/asyncquery \
  --header 'content-type: application/json' \
  --data '{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}'
echo '{
  "callback": "",
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": ""
}' |  \
  http POST {{baseUrl}}/asyncquery \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "callback": "",\n  "message": {\n    "results": [\n      {\n        "node_bindings": {},\n        "analyses": [\n          {\n            "resource_id": "",\n            "score": "",\n            "edge_bindings": {},\n            "support_graphs": [],\n            "scoring_method": "",\n            "attributes": [\n              {\n                "attribute_type_id": "",\n                "original_attribute_name": "",\n                "value": "",\n                "value_type_id": "",\n                "attribute_source": "",\n                "value_url": "",\n                "description": "",\n                "attributes": []\n              }\n            ]\n          }\n        ],\n        "id": "",\n        "description": "",\n        "essence": "",\n        "essence_category": "",\n        "row_data": [],\n        "score": "",\n        "score_name": "",\n        "score_direction": "",\n        "confidence": "",\n        "result_group": 0,\n        "result_group_similarity_score": "",\n        "resource_id": ""\n      }\n    ],\n    "query_graph": "",\n    "knowledge_graph": "",\n    "auxiliary_graphs": {}\n  },\n  "log_level": "",\n  "workflow": [],\n  "submitter": ""\n}' \
  --output-document \
  - {{baseUrl}}/asyncquery
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "callback": "",
  "message": [
    "results": [
      [
        "node_bindings": [],
        "analyses": [
          [
            "resource_id": "",
            "score": "",
            "edge_bindings": [],
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              [
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              ]
            ]
          ]
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      ]
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": []
  ],
  "log_level": "",
  "workflow": [],
  "submitter": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/asyncquery")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "job_id": "rXEOAosN3L",
  "description": "Async_query has been queued",
  "status": "Accepted"
}
GET Retrieve the current status of a previously submitted asyncquery given its job_id
{{baseUrl}}/asyncquery_status/:job_id
QUERY PARAMS

job_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/asyncquery_status/:job_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/asyncquery_status/:job_id")
require "http/client"

url = "{{baseUrl}}/asyncquery_status/:job_id"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/asyncquery_status/:job_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/asyncquery_status/:job_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/asyncquery_status/:job_id"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/asyncquery_status/:job_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/asyncquery_status/:job_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/asyncquery_status/:job_id"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/asyncquery_status/:job_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/asyncquery_status/:job_id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/asyncquery_status/:job_id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/asyncquery_status/:job_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/asyncquery_status/:job_id';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/asyncquery_status/:job_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/asyncquery_status/:job_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/asyncquery_status/:job_id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/asyncquery_status/:job_id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/asyncquery_status/:job_id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/asyncquery_status/:job_id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/asyncquery_status/:job_id';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/asyncquery_status/:job_id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/asyncquery_status/:job_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/asyncquery_status/:job_id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/asyncquery_status/:job_id');

echo $response->getBody();
setUrl('{{baseUrl}}/asyncquery_status/:job_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/asyncquery_status/:job_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/asyncquery_status/:job_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/asyncquery_status/:job_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/asyncquery_status/:job_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/asyncquery_status/:job_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/asyncquery_status/:job_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/asyncquery_status/:job_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/asyncquery_status/:job_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/asyncquery_status/:job_id";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/asyncquery_status/:job_id
http GET {{baseUrl}}/asyncquery_status/:job_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/asyncquery_status/:job_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/asyncquery_status/:job_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "description": "Callback URL returned 500",
  "logs": [
    {
      "code": "code",
      "level": "",
      "message": "message",
      "timestamp": "2020-09-03T18:13:49.000Z"
    },
    {
      "code": "code",
      "level": "",
      "message": "message",
      "timestamp": "2020-09-03T18:13:49.000Z"
    }
  ],
  "status": "Running",
  "response_url": "https://arax.ncats.io/api/arax/v1.3/response/116481"
}
GET Obtain CURIE and synonym information about a search term
{{baseUrl}}/entity
QUERY PARAMS

q
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/entity?q=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/entity" {:query-params {:q ""}})
require "http/client"

url = "{{baseUrl}}/entity?q="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/entity?q="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/entity?q=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/entity?q="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/entity?q= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/entity?q=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/entity?q="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/entity?q=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/entity?q=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/entity?q=');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/entity', params: {q: ''}};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/entity?q=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/entity?q=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/entity?q=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/entity?q=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/entity', qs: {q: ''}};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/entity');

req.query({
  q: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/entity', params: {q: ''}};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/entity?q=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/entity?q="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/entity?q=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/entity?q=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/entity?q=');

echo $response->getBody();
setUrl('{{baseUrl}}/entity');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'q' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/entity');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'q' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/entity?q=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/entity?q=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/entity?q=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/entity"

querystring = {"q":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/entity"

queryString <- list(q = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/entity?q=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/entity') do |req|
  req.params['q'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/entity";

    let querystring = [
        ("q", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/entity?q='
http GET '{{baseUrl}}/entity?q='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/entity?q='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/entity?q=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Obtain CURIE and synonym information about search terms
{{baseUrl}}/entity
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/entity");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/entity" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/entity"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/entity"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/entity");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/entity"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/entity HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/entity")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/entity"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/entity")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/entity")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/entity');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entity',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/entity';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/entity',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/entity")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/entity',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entity',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/entity');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/entity',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/entity';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/entity"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/entity" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/entity",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/entity', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/entity');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/entity');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/entity' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/entity' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/entity", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/entity"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/entity"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/entity")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/entity') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/entity";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/entity \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/entity \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/entity
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/entity")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "terms": [
    "terms",
    "terms"
  ],
  "format": "format"
}
GET Meta knowledge graph representation of this TRAPI web service.
{{baseUrl}}/meta_knowledge_graph
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/meta_knowledge_graph");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/meta_knowledge_graph")
require "http/client"

url = "{{baseUrl}}/meta_knowledge_graph"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/meta_knowledge_graph"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/meta_knowledge_graph");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/meta_knowledge_graph"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/meta_knowledge_graph HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/meta_knowledge_graph")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/meta_knowledge_graph"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/meta_knowledge_graph")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/meta_knowledge_graph")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/meta_knowledge_graph');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/meta_knowledge_graph'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/meta_knowledge_graph';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/meta_knowledge_graph',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/meta_knowledge_graph")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/meta_knowledge_graph',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/meta_knowledge_graph'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/meta_knowledge_graph');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/meta_knowledge_graph'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/meta_knowledge_graph';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/meta_knowledge_graph"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/meta_knowledge_graph" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/meta_knowledge_graph",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/meta_knowledge_graph');

echo $response->getBody();
setUrl('{{baseUrl}}/meta_knowledge_graph');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/meta_knowledge_graph');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/meta_knowledge_graph' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/meta_knowledge_graph' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/meta_knowledge_graph")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/meta_knowledge_graph"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/meta_knowledge_graph"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/meta_knowledge_graph")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/meta_knowledge_graph') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/meta_knowledge_graph";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/meta_knowledge_graph
http GET {{baseUrl}}/meta_knowledge_graph
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/meta_knowledge_graph
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/meta_knowledge_graph")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "nodes": {
    "key": {
      "id_prefixes": [
        "CHEMBL.COMPOUND",
        "INCHIKEY"
      ],
      "attributes": [
        {
          "attribute_source": "infores:chembl",
          "original_attribute_names": [
            "original_attribute_names",
            "original_attribute_names"
          ],
          "constraint_name": "p-value",
          "attribute_type_id": "attribute_type_id",
          "constraint_use": false
        },
        {
          "attribute_source": "infores:chembl",
          "original_attribute_names": [
            "original_attribute_names",
            "original_attribute_names"
          ],
          "constraint_name": "p-value",
          "attribute_type_id": "attribute_type_id",
          "constraint_use": false
        }
      ]
    }
  },
  "edges": [
    {
      "predicate": "biolink:interacts_with",
      "knowledge_types": [
        "knowledge_types",
        "knowledge_types"
      ],
      "subject": "biolink:PhenotypicFeature",
      "qualifiers": [
        {
          "applicable_values": [
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]",
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]"
          ],
          "qualifier_type_id": "qualifier_type_id"
        },
        {
          "applicable_values": [
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]",
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]"
          ],
          "qualifier_type_id": "qualifier_type_id"
        }
      ],
      "association": "biolink:PhenotypicFeature",
      "attributes": [
        {
          "attribute_source": "infores:chembl",
          "original_attribute_names": [
            "original_attribute_names",
            "original_attribute_names"
          ],
          "constraint_name": "p-value",
          "attribute_type_id": "attribute_type_id",
          "constraint_use": false
        },
        {
          "attribute_source": "infores:chembl",
          "original_attribute_names": [
            "original_attribute_names",
            "original_attribute_names"
          ],
          "constraint_name": "p-value",
          "attribute_type_id": "attribute_type_id",
          "constraint_use": false
        }
      ],
      "object": "biolink:PhenotypicFeature"
    },
    {
      "predicate": "biolink:interacts_with",
      "knowledge_types": [
        "knowledge_types",
        "knowledge_types"
      ],
      "subject": "biolink:PhenotypicFeature",
      "qualifiers": [
        {
          "applicable_values": [
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]",
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]"
          ],
          "qualifier_type_id": "qualifier_type_id"
        },
        {
          "applicable_values": [
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]",
            "[\"expression\",\"activity\",\"abundance\",\"degradation\"]"
          ],
          "qualifier_type_id": "qualifier_type_id"
        }
      ],
      "association": "biolink:PhenotypicFeature",
      "attributes": [
        {
          "attribute_source": "infores:chembl",
          "original_attribute_names": [
            "original_attribute_names",
            "original_attribute_names"
          ],
          "constraint_name": "p-value",
          "attribute_type_id": "attribute_type_id",
          "constraint_use": false
        },
        {
          "attribute_source": "infores:chembl",
          "original_attribute_names": [
            "original_attribute_names",
            "original_attribute_names"
          ],
          "constraint_name": "p-value",
          "attribute_type_id": "attribute_type_id",
          "constraint_use": false
        }
      ],
      "object": "biolink:PhenotypicFeature"
    }
  ]
}
POST Initiate a query and wait to receive a Response
{{baseUrl}}/query
BODY json

{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/query");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/query" {:content-type :json
                                                  :form-params {:message {:results [{:node_bindings {}
                                                                                     :analyses [{:resource_id ""
                                                                                                 :score ""
                                                                                                 :edge_bindings {}
                                                                                                 :support_graphs []
                                                                                                 :scoring_method ""
                                                                                                 :attributes [{:attribute_type_id ""
                                                                                                               :original_attribute_name ""
                                                                                                               :value ""
                                                                                                               :value_type_id ""
                                                                                                               :attribute_source ""
                                                                                                               :value_url ""
                                                                                                               :description ""
                                                                                                               :attributes []}]}]
                                                                                     :id ""
                                                                                     :description ""
                                                                                     :essence ""
                                                                                     :essence_category ""
                                                                                     :row_data []
                                                                                     :score ""
                                                                                     :score_name ""
                                                                                     :score_direction ""
                                                                                     :confidence ""
                                                                                     :result_group 0
                                                                                     :result_group_similarity_score ""
                                                                                     :resource_id ""}]
                                                                          :query_graph ""
                                                                          :knowledge_graph ""
                                                                          :auxiliary_graphs {}}
                                                                :log_level ""
                                                                :workflow []
                                                                :submitter ""
                                                                :bypass_cache false
                                                                :stream_progress false
                                                                :enforce_edge_directionality false
                                                                :return_minimal_metadata false
                                                                :max_results 0
                                                                :page_size 0
                                                                :page_number 0
                                                                :operations ""}})
require "http/client"

url = "{{baseUrl}}/query"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/query"),
    Content = new StringContent("{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/query");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/query"

	payload := strings.NewReader("{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/query HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1340

{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/query")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/query"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/query")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/query")
  .header("content-type", "application/json")
  .body("{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  message: {
    results: [
      {
        node_bindings: {},
        analyses: [
          {
            resource_id: '',
            score: '',
            edge_bindings: {},
            support_graphs: [],
            scoring_method: '',
            attributes: [
              {
                attribute_type_id: '',
                original_attribute_name: '',
                value: '',
                value_type_id: '',
                attribute_source: '',
                value_url: '',
                description: '',
                attributes: []
              }
            ]
          }
        ],
        id: '',
        description: '',
        essence: '',
        essence_category: '',
        row_data: [],
        score: '',
        score_name: '',
        score_direction: '',
        confidence: '',
        result_group: 0,
        result_group_similarity_score: '',
        resource_id: ''
      }
    ],
    query_graph: '',
    knowledge_graph: '',
    auxiliary_graphs: {}
  },
  log_level: '',
  workflow: [],
  submitter: '',
  bypass_cache: false,
  stream_progress: false,
  enforce_edge_directionality: false,
  return_minimal_metadata: false,
  max_results: 0,
  page_size: 0,
  page_number: 0,
  operations: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/query');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/query',
  headers: {'content-type': 'application/json'},
  data: {
    message: {
      results: [
        {
          node_bindings: {},
          analyses: [
            {
              resource_id: '',
              score: '',
              edge_bindings: {},
              support_graphs: [],
              scoring_method: '',
              attributes: [
                {
                  attribute_type_id: '',
                  original_attribute_name: '',
                  value: '',
                  value_type_id: '',
                  attribute_source: '',
                  value_url: '',
                  description: '',
                  attributes: []
                }
              ]
            }
          ],
          id: '',
          description: '',
          essence: '',
          essence_category: '',
          row_data: [],
          score: '',
          score_name: '',
          score_direction: '',
          confidence: '',
          result_group: 0,
          result_group_similarity_score: '',
          resource_id: ''
        }
      ],
      query_graph: '',
      knowledge_graph: '',
      auxiliary_graphs: {}
    },
    log_level: '',
    workflow: [],
    submitter: '',
    bypass_cache: false,
    stream_progress: false,
    enforce_edge_directionality: false,
    return_minimal_metadata: false,
    max_results: 0,
    page_size: 0,
    page_number: 0,
    operations: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/query';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"message":{"results":[{"node_bindings":{},"analyses":[{"resource_id":"","score":"","edge_bindings":{},"support_graphs":[],"scoring_method":"","attributes":[{"attribute_type_id":"","original_attribute_name":"","value":"","value_type_id":"","attribute_source":"","value_url":"","description":"","attributes":[]}]}],"id":"","description":"","essence":"","essence_category":"","row_data":[],"score":"","score_name":"","score_direction":"","confidence":"","result_group":0,"result_group_similarity_score":"","resource_id":""}],"query_graph":"","knowledge_graph":"","auxiliary_graphs":{}},"log_level":"","workflow":[],"submitter":"","bypass_cache":false,"stream_progress":false,"enforce_edge_directionality":false,"return_minimal_metadata":false,"max_results":0,"page_size":0,"page_number":0,"operations":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/query',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "message": {\n    "results": [\n      {\n        "node_bindings": {},\n        "analyses": [\n          {\n            "resource_id": "",\n            "score": "",\n            "edge_bindings": {},\n            "support_graphs": [],\n            "scoring_method": "",\n            "attributes": [\n              {\n                "attribute_type_id": "",\n                "original_attribute_name": "",\n                "value": "",\n                "value_type_id": "",\n                "attribute_source": "",\n                "value_url": "",\n                "description": "",\n                "attributes": []\n              }\n            ]\n          }\n        ],\n        "id": "",\n        "description": "",\n        "essence": "",\n        "essence_category": "",\n        "row_data": [],\n        "score": "",\n        "score_name": "",\n        "score_direction": "",\n        "confidence": "",\n        "result_group": 0,\n        "result_group_similarity_score": "",\n        "resource_id": ""\n      }\n    ],\n    "query_graph": "",\n    "knowledge_graph": "",\n    "auxiliary_graphs": {}\n  },\n  "log_level": "",\n  "workflow": [],\n  "submitter": "",\n  "bypass_cache": false,\n  "stream_progress": false,\n  "enforce_edge_directionality": false,\n  "return_minimal_metadata": false,\n  "max_results": 0,\n  "page_size": 0,\n  "page_number": 0,\n  "operations": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/query")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/query',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  message: {
    results: [
      {
        node_bindings: {},
        analyses: [
          {
            resource_id: '',
            score: '',
            edge_bindings: {},
            support_graphs: [],
            scoring_method: '',
            attributes: [
              {
                attribute_type_id: '',
                original_attribute_name: '',
                value: '',
                value_type_id: '',
                attribute_source: '',
                value_url: '',
                description: '',
                attributes: []
              }
            ]
          }
        ],
        id: '',
        description: '',
        essence: '',
        essence_category: '',
        row_data: [],
        score: '',
        score_name: '',
        score_direction: '',
        confidence: '',
        result_group: 0,
        result_group_similarity_score: '',
        resource_id: ''
      }
    ],
    query_graph: '',
    knowledge_graph: '',
    auxiliary_graphs: {}
  },
  log_level: '',
  workflow: [],
  submitter: '',
  bypass_cache: false,
  stream_progress: false,
  enforce_edge_directionality: false,
  return_minimal_metadata: false,
  max_results: 0,
  page_size: 0,
  page_number: 0,
  operations: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/query',
  headers: {'content-type': 'application/json'},
  body: {
    message: {
      results: [
        {
          node_bindings: {},
          analyses: [
            {
              resource_id: '',
              score: '',
              edge_bindings: {},
              support_graphs: [],
              scoring_method: '',
              attributes: [
                {
                  attribute_type_id: '',
                  original_attribute_name: '',
                  value: '',
                  value_type_id: '',
                  attribute_source: '',
                  value_url: '',
                  description: '',
                  attributes: []
                }
              ]
            }
          ],
          id: '',
          description: '',
          essence: '',
          essence_category: '',
          row_data: [],
          score: '',
          score_name: '',
          score_direction: '',
          confidence: '',
          result_group: 0,
          result_group_similarity_score: '',
          resource_id: ''
        }
      ],
      query_graph: '',
      knowledge_graph: '',
      auxiliary_graphs: {}
    },
    log_level: '',
    workflow: [],
    submitter: '',
    bypass_cache: false,
    stream_progress: false,
    enforce_edge_directionality: false,
    return_minimal_metadata: false,
    max_results: 0,
    page_size: 0,
    page_number: 0,
    operations: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/query');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  message: {
    results: [
      {
        node_bindings: {},
        analyses: [
          {
            resource_id: '',
            score: '',
            edge_bindings: {},
            support_graphs: [],
            scoring_method: '',
            attributes: [
              {
                attribute_type_id: '',
                original_attribute_name: '',
                value: '',
                value_type_id: '',
                attribute_source: '',
                value_url: '',
                description: '',
                attributes: []
              }
            ]
          }
        ],
        id: '',
        description: '',
        essence: '',
        essence_category: '',
        row_data: [],
        score: '',
        score_name: '',
        score_direction: '',
        confidence: '',
        result_group: 0,
        result_group_similarity_score: '',
        resource_id: ''
      }
    ],
    query_graph: '',
    knowledge_graph: '',
    auxiliary_graphs: {}
  },
  log_level: '',
  workflow: [],
  submitter: '',
  bypass_cache: false,
  stream_progress: false,
  enforce_edge_directionality: false,
  return_minimal_metadata: false,
  max_results: 0,
  page_size: 0,
  page_number: 0,
  operations: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/query',
  headers: {'content-type': 'application/json'},
  data: {
    message: {
      results: [
        {
          node_bindings: {},
          analyses: [
            {
              resource_id: '',
              score: '',
              edge_bindings: {},
              support_graphs: [],
              scoring_method: '',
              attributes: [
                {
                  attribute_type_id: '',
                  original_attribute_name: '',
                  value: '',
                  value_type_id: '',
                  attribute_source: '',
                  value_url: '',
                  description: '',
                  attributes: []
                }
              ]
            }
          ],
          id: '',
          description: '',
          essence: '',
          essence_category: '',
          row_data: [],
          score: '',
          score_name: '',
          score_direction: '',
          confidence: '',
          result_group: 0,
          result_group_similarity_score: '',
          resource_id: ''
        }
      ],
      query_graph: '',
      knowledge_graph: '',
      auxiliary_graphs: {}
    },
    log_level: '',
    workflow: [],
    submitter: '',
    bypass_cache: false,
    stream_progress: false,
    enforce_edge_directionality: false,
    return_minimal_metadata: false,
    max_results: 0,
    page_size: 0,
    page_number: 0,
    operations: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/query';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"message":{"results":[{"node_bindings":{},"analyses":[{"resource_id":"","score":"","edge_bindings":{},"support_graphs":[],"scoring_method":"","attributes":[{"attribute_type_id":"","original_attribute_name":"","value":"","value_type_id":"","attribute_source":"","value_url":"","description":"","attributes":[]}]}],"id":"","description":"","essence":"","essence_category":"","row_data":[],"score":"","score_name":"","score_direction":"","confidence":"","result_group":0,"result_group_similarity_score":"","resource_id":""}],"query_graph":"","knowledge_graph":"","auxiliary_graphs":{}},"log_level":"","workflow":[],"submitter":"","bypass_cache":false,"stream_progress":false,"enforce_edge_directionality":false,"return_minimal_metadata":false,"max_results":0,"page_size":0,"page_number":0,"operations":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"message": @{ @"results": @[ @{ @"node_bindings": @{  }, @"analyses": @[ @{ @"resource_id": @"", @"score": @"", @"edge_bindings": @{  }, @"support_graphs": @[  ], @"scoring_method": @"", @"attributes": @[ @{ @"attribute_type_id": @"", @"original_attribute_name": @"", @"value": @"", @"value_type_id": @"", @"attribute_source": @"", @"value_url": @"", @"description": @"", @"attributes": @[  ] } ] } ], @"id": @"", @"description": @"", @"essence": @"", @"essence_category": @"", @"row_data": @[  ], @"score": @"", @"score_name": @"", @"score_direction": @"", @"confidence": @"", @"result_group": @0, @"result_group_similarity_score": @"", @"resource_id": @"" } ], @"query_graph": @"", @"knowledge_graph": @"", @"auxiliary_graphs": @{  } },
                              @"log_level": @"",
                              @"workflow": @[  ],
                              @"submitter": @"",
                              @"bypass_cache": @NO,
                              @"stream_progress": @NO,
                              @"enforce_edge_directionality": @NO,
                              @"return_minimal_metadata": @NO,
                              @"max_results": @0,
                              @"page_size": @0,
                              @"page_number": @0,
                              @"operations": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/query"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/query" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/query",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'message' => [
        'results' => [
                [
                                'node_bindings' => [
                                                                
                                ],
                                'analyses' => [
                                                                [
                                                                                                                                'resource_id' => '',
                                                                                                                                'score' => '',
                                                                                                                                'edge_bindings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'support_graphs' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scoring_method' => '',
                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attribute_type_id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'original_attribute_name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value_type_id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attribute_source' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value_url' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'id' => '',
                                'description' => '',
                                'essence' => '',
                                'essence_category' => '',
                                'row_data' => [
                                                                
                                ],
                                'score' => '',
                                'score_name' => '',
                                'score_direction' => '',
                                'confidence' => '',
                                'result_group' => 0,
                                'result_group_similarity_score' => '',
                                'resource_id' => ''
                ]
        ],
        'query_graph' => '',
        'knowledge_graph' => '',
        'auxiliary_graphs' => [
                
        ]
    ],
    'log_level' => '',
    'workflow' => [
        
    ],
    'submitter' => '',
    'bypass_cache' => null,
    'stream_progress' => null,
    'enforce_edge_directionality' => null,
    'return_minimal_metadata' => null,
    'max_results' => 0,
    'page_size' => 0,
    'page_number' => 0,
    'operations' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/query', [
  'body' => '{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/query');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'message' => [
    'results' => [
        [
                'node_bindings' => [
                                
                ],
                'analyses' => [
                                [
                                                                'resource_id' => '',
                                                                'score' => '',
                                                                'edge_bindings' => [
                                                                                                                                
                                                                ],
                                                                'support_graphs' => [
                                                                                                                                
                                                                ],
                                                                'scoring_method' => '',
                                                                'attributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attribute_type_id' => '',
                                                                                                                                                                                                                                                                'original_attribute_name' => '',
                                                                                                                                                                                                                                                                'value' => '',
                                                                                                                                                                                                                                                                'value_type_id' => '',
                                                                                                                                                                                                                                                                'attribute_source' => '',
                                                                                                                                                                                                                                                                'value_url' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'id' => '',
                'description' => '',
                'essence' => '',
                'essence_category' => '',
                'row_data' => [
                                
                ],
                'score' => '',
                'score_name' => '',
                'score_direction' => '',
                'confidence' => '',
                'result_group' => 0,
                'result_group_similarity_score' => '',
                'resource_id' => ''
        ]
    ],
    'query_graph' => '',
    'knowledge_graph' => '',
    'auxiliary_graphs' => [
        
    ]
  ],
  'log_level' => '',
  'workflow' => [
    
  ],
  'submitter' => '',
  'bypass_cache' => null,
  'stream_progress' => null,
  'enforce_edge_directionality' => null,
  'return_minimal_metadata' => null,
  'max_results' => 0,
  'page_size' => 0,
  'page_number' => 0,
  'operations' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'message' => [
    'results' => [
        [
                'node_bindings' => [
                                
                ],
                'analyses' => [
                                [
                                                                'resource_id' => '',
                                                                'score' => '',
                                                                'edge_bindings' => [
                                                                                                                                
                                                                ],
                                                                'support_graphs' => [
                                                                                                                                
                                                                ],
                                                                'scoring_method' => '',
                                                                'attributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attribute_type_id' => '',
                                                                                                                                                                                                                                                                'original_attribute_name' => '',
                                                                                                                                                                                                                                                                'value' => '',
                                                                                                                                                                                                                                                                'value_type_id' => '',
                                                                                                                                                                                                                                                                'attribute_source' => '',
                                                                                                                                                                                                                                                                'value_url' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'id' => '',
                'description' => '',
                'essence' => '',
                'essence_category' => '',
                'row_data' => [
                                
                ],
                'score' => '',
                'score_name' => '',
                'score_direction' => '',
                'confidence' => '',
                'result_group' => 0,
                'result_group_similarity_score' => '',
                'resource_id' => ''
        ]
    ],
    'query_graph' => '',
    'knowledge_graph' => '',
    'auxiliary_graphs' => [
        
    ]
  ],
  'log_level' => '',
  'workflow' => [
    
  ],
  'submitter' => '',
  'bypass_cache' => null,
  'stream_progress' => null,
  'enforce_edge_directionality' => null,
  'return_minimal_metadata' => null,
  'max_results' => 0,
  'page_size' => 0,
  'page_number' => 0,
  'operations' => ''
]));
$request->setRequestUrl('{{baseUrl}}/query');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/query", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/query"

payload = {
    "message": {
        "results": [
            {
                "node_bindings": {},
                "analyses": [
                    {
                        "resource_id": "",
                        "score": "",
                        "edge_bindings": {},
                        "support_graphs": [],
                        "scoring_method": "",
                        "attributes": [
                            {
                                "attribute_type_id": "",
                                "original_attribute_name": "",
                                "value": "",
                                "value_type_id": "",
                                "attribute_source": "",
                                "value_url": "",
                                "description": "",
                                "attributes": []
                            }
                        ]
                    }
                ],
                "id": "",
                "description": "",
                "essence": "",
                "essence_category": "",
                "row_data": [],
                "score": "",
                "score_name": "",
                "score_direction": "",
                "confidence": "",
                "result_group": 0,
                "result_group_similarity_score": "",
                "resource_id": ""
            }
        ],
        "query_graph": "",
        "knowledge_graph": "",
        "auxiliary_graphs": {}
    },
    "log_level": "",
    "workflow": [],
    "submitter": "",
    "bypass_cache": False,
    "stream_progress": False,
    "enforce_edge_directionality": False,
    "return_minimal_metadata": False,
    "max_results": 0,
    "page_size": 0,
    "page_number": 0,
    "operations": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/query"

payload <- "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/query")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/query') do |req|
  req.body = "{\n  \"message\": {\n    \"results\": [\n      {\n        \"node_bindings\": {},\n        \"analyses\": [\n          {\n            \"resource_id\": \"\",\n            \"score\": \"\",\n            \"edge_bindings\": {},\n            \"support_graphs\": [],\n            \"scoring_method\": \"\",\n            \"attributes\": [\n              {\n                \"attribute_type_id\": \"\",\n                \"original_attribute_name\": \"\",\n                \"value\": \"\",\n                \"value_type_id\": \"\",\n                \"attribute_source\": \"\",\n                \"value_url\": \"\",\n                \"description\": \"\",\n                \"attributes\": []\n              }\n            ]\n          }\n        ],\n        \"id\": \"\",\n        \"description\": \"\",\n        \"essence\": \"\",\n        \"essence_category\": \"\",\n        \"row_data\": [],\n        \"score\": \"\",\n        \"score_name\": \"\",\n        \"score_direction\": \"\",\n        \"confidence\": \"\",\n        \"result_group\": 0,\n        \"result_group_similarity_score\": \"\",\n        \"resource_id\": \"\"\n      }\n    ],\n    \"query_graph\": \"\",\n    \"knowledge_graph\": \"\",\n    \"auxiliary_graphs\": {}\n  },\n  \"log_level\": \"\",\n  \"workflow\": [],\n  \"submitter\": \"\",\n  \"bypass_cache\": false,\n  \"stream_progress\": false,\n  \"enforce_edge_directionality\": false,\n  \"return_minimal_metadata\": false,\n  \"max_results\": 0,\n  \"page_size\": 0,\n  \"page_number\": 0,\n  \"operations\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/query";

    let payload = json!({
        "message": json!({
            "results": (
                json!({
                    "node_bindings": json!({}),
                    "analyses": (
                        json!({
                            "resource_id": "",
                            "score": "",
                            "edge_bindings": json!({}),
                            "support_graphs": (),
                            "scoring_method": "",
                            "attributes": (
                                json!({
                                    "attribute_type_id": "",
                                    "original_attribute_name": "",
                                    "value": "",
                                    "value_type_id": "",
                                    "attribute_source": "",
                                    "value_url": "",
                                    "description": "",
                                    "attributes": ()
                                })
                            )
                        })
                    ),
                    "id": "",
                    "description": "",
                    "essence": "",
                    "essence_category": "",
                    "row_data": (),
                    "score": "",
                    "score_name": "",
                    "score_direction": "",
                    "confidence": "",
                    "result_group": 0,
                    "result_group_similarity_score": "",
                    "resource_id": ""
                })
            ),
            "query_graph": "",
            "knowledge_graph": "",
            "auxiliary_graphs": json!({})
        }),
        "log_level": "",
        "workflow": (),
        "submitter": "",
        "bypass_cache": false,
        "stream_progress": false,
        "enforce_edge_directionality": false,
        "return_minimal_metadata": false,
        "max_results": 0,
        "page_size": 0,
        "page_number": 0,
        "operations": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/query \
  --header 'content-type: application/json' \
  --data '{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}'
echo '{
  "message": {
    "results": [
      {
        "node_bindings": {},
        "analyses": [
          {
            "resource_id": "",
            "score": "",
            "edge_bindings": {},
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              {
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              }
            ]
          }
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      }
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": {}
  },
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
}' |  \
  http POST {{baseUrl}}/query \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "message": {\n    "results": [\n      {\n        "node_bindings": {},\n        "analyses": [\n          {\n            "resource_id": "",\n            "score": "",\n            "edge_bindings": {},\n            "support_graphs": [],\n            "scoring_method": "",\n            "attributes": [\n              {\n                "attribute_type_id": "",\n                "original_attribute_name": "",\n                "value": "",\n                "value_type_id": "",\n                "attribute_source": "",\n                "value_url": "",\n                "description": "",\n                "attributes": []\n              }\n            ]\n          }\n        ],\n        "id": "",\n        "description": "",\n        "essence": "",\n        "essence_category": "",\n        "row_data": [],\n        "score": "",\n        "score_name": "",\n        "score_direction": "",\n        "confidence": "",\n        "result_group": 0,\n        "result_group_similarity_score": "",\n        "resource_id": ""\n      }\n    ],\n    "query_graph": "",\n    "knowledge_graph": "",\n    "auxiliary_graphs": {}\n  },\n  "log_level": "",\n  "workflow": [],\n  "submitter": "",\n  "bypass_cache": false,\n  "stream_progress": false,\n  "enforce_edge_directionality": false,\n  "return_minimal_metadata": false,\n  "max_results": 0,\n  "page_size": 0,\n  "page_number": 0,\n  "operations": ""\n}' \
  --output-document \
  - {{baseUrl}}/query
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "message": [
    "results": [
      [
        "node_bindings": [],
        "analyses": [
          [
            "resource_id": "",
            "score": "",
            "edge_bindings": [],
            "support_graphs": [],
            "scoring_method": "",
            "attributes": [
              [
                "attribute_type_id": "",
                "original_attribute_name": "",
                "value": "",
                "value_type_id": "",
                "attribute_source": "",
                "value_url": "",
                "description": "",
                "attributes": []
              ]
            ]
          ]
        ],
        "id": "",
        "description": "",
        "essence": "",
        "essence_category": "",
        "row_data": [],
        "score": "",
        "score_name": "",
        "score_direction": "",
        "confidence": "",
        "result_group": 0,
        "result_group_similarity_score": "",
        "resource_id": ""
      ]
    ],
    "query_graph": "",
    "knowledge_graph": "",
    "auxiliary_graphs": []
  ],
  "log_level": "",
  "workflow": [],
  "submitter": "",
  "bypass_cache": false,
  "stream_progress": false,
  "enforce_edge_directionality": false,
  "return_minimal_metadata": false,
  "max_results": 0,
  "page_size": 0,
  "page_number": 0,
  "operations": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/query")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "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-09T12:34:45.000Z",
  "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:49.000Z"
    },
    {
      "code": "code",
      "level": "",
      "message": "message",
      "timestamp": "2020-09-03T18:13:49.000Z"
    }
  ],
  "status": "Success",
  "info": "info"
}
GET Get log information from the server
{{baseUrl}}/status/logs
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/status/logs");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/status/logs")
require "http/client"

url = "{{baseUrl}}/status/logs"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/status/logs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/status/logs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/status/logs"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/status/logs HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/status/logs")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/status/logs"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/status/logs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/status/logs")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/status/logs');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/status/logs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/status/logs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/status/logs',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/status/logs")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/status/logs',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/status/logs'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/status/logs');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/status/logs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/status/logs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/status/logs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/status/logs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/status/logs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/status/logs');

echo $response->getBody();
setUrl('{{baseUrl}}/status/logs');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/status/logs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/status/logs' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/status/logs' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/status/logs")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/status/logs"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/status/logs"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/status/logs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/status/logs') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/status/logs";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/status/logs
http GET {{baseUrl}}/status/logs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/status/logs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/status/logs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Obtain status information about the endpoint
{{baseUrl}}/status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/status");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/status")
require "http/client"

url = "{{baseUrl}}/status"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/status"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/status HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/status")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/status"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/status")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/status")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/status');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/status'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/status',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/status")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/status',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/status'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/status');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/status'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/status" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/status');

echo $response->getBody();
setUrl('{{baseUrl}}/status');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/status' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/status' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/status")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/status"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/status"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/status') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/status";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/status
http GET {{baseUrl}}/status
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/status
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()