RTXteam / RTX

Software repo for Team Expander Agent (Oregon State U., Institute for Systems Biology, and Penn State U.)
https://arax.ncats.io/
MIT License
33 stars 20 forks source link

KG2 API swagger /query example doesn't work #1852

Open amykglen opened 2 years ago

amykglen commented 2 years ago

the example in the swagger documentation for the KG2 /query endpoint here:

https://arax.ncats.io/beta/api/rtxkg2/v1.2/ui/#/query/query

seems to give an OperationsNotSupported error

this is the query:

{
  "bypass_cache": false,
  "enforce_edge_directionality": false,
  "log_level": "DEBUG",
  "max_results": 100,
  "message": {
    "query_graph": {
      "edges": {
        "e00": {
          "object": "n01",
          "predicates": [
            "biolink:physically_interacts_with"
          ],
          "subject": "n00"
        }
      },
      "nodes": {
        "n00": {
          "ids": [
            "CHEMBL.COMPOUND:CHEMBL112"
          ]
        },
        "n01": {
          "categories": [
            "biolink:Protein"
          ]
        }
      }
    }
  },
  "operations": {
    "actions": [
      "add_qnode(name=acetaminophen, key=n00)",
      "add_qnode(category=biolink:Protein, key=n01)",
      "add_qedge(subject=n01, object=n00, key=e00)",
      "expand(edge_key=e00)",
      "resultify()",
      "filter_results(action=limit_number_of_results, max_results=10)"
    ],
    "message_uris": [
      "https://arax.ncats.io/beta/api/arax/v1.2/response/38"
    ],
    "messages": [
      {
        "query_graph": {
          "edges": {
            "e00": {
              "object": "n01",
              "predicates": [
                "biolink:physically_interacts_with"
              ],
              "subject": "n00"
            }
          },
          "nodes": {
            "n00": {
              "ids": [
                "CHEMBL.COMPOUND:CHEMBL112"
              ]
            },
            "n01": {
              "categories": [
                "biolink:Protein"
              ]
            }
          }
        }
      }
    ],
    "options": {
      "halt_on_warning": false
    },
    "additionalProp1": {}
  },
  "page_number": 1,
  "page_size": 100,
  "return_minimal_metadata": false,
  "stream_progress": false,
  "submitter": "string",
  "workflow": [
    {
      "id": "lookup",
      "parameters": "string"
    }
  ],
  "additionalProp1": {}
}
amykglen commented 1 year ago

this is still an issue for v1.3: https://arax.ncats.io/beta/api/rtxkg2/v1.3/ui/#/query/query