QueryServiceApi

All URIs are relative to {INTERACTIVE_ENDPOINT}

Method

HTTP request

Description

procCall

POST /v1/graph/{graph_id}/query

run queries on graph

procCall

String procCall(graphId, body)

run queries on graph

After the procedure is created, user can use this API to run the procedure. TODO: a full example cypher->plan->json. TODO: make sure typeinfo can be passed.

Example

// Import classes:
import com.alibaba.graphscope.interactive.openapi.ApiClient;
import com.alibaba.graphscope.interactive.openapi.ApiException;
import com.alibaba.graphscope.interactive.openapi.Configuration;
import com.alibaba.graphscope.interactive.openapi.models.*;
import com.alibaba.graphscope.interactive.openapi.api.QueryServiceApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("{INTERACTIVE_ENDPOINT}");

    QueryServiceApi apiInstance = new QueryServiceApi(defaultClient);
    String graphId = "graphId_example"; // String | 
    String body = "body_example"; // String | 
    try {
      String result = apiInstance.procCall(graphId, body);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling QueryServiceApi#procCall");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name

Type

Description

Notes

graphId

String

body

String

[optional]

Return type

String

Authorization

No authorization required

HTTP request headers

  • Content-Type: text/plain

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

Successfully runned. Empty if failed?

-

500

Server internal error

-