知识图谱 KG-执行知识图谱查询命令:响应示例

时间:2024-04-25 10:35:11

响应示例

状态码: 200

OK

{
  "data" : {
    "vertices" : [ {
      "id" : "9070097808196707553",
      "label" : "电影",
      "properties" : {
        "上映时间" : [ "1958年1月16日" ],
        "name" : [ "保卫和平" ],
        "票房" : [ "39.04亿" ]
      }
    } ],
    "runtime" : 0.02850004
  }
}

状态码: 400

Bad Request

{
  "error_code" : "KGP.2003",
  "error_msg" : "Gremlin query return error"
}

状态码: 403

Forbidden

{
  "error_code" : "KGP.0004",
  "error_msg" : "Auth failed"
}

状态码: 500

Internal Server Error

{
  "error_code" : "KGP.9001",
  "error_msg" : "Internal server error."
}
support.huaweicloud.com/api-kg/kg_03_0014.html