{"_id":"c64d583402f21cc85810d33befe49c86","_version":1107,"_status":{"uptime_status":"pass","uptime_msg":["🟢 200: (/meta_knowledge_graph) All good!","🟢 200: (/sri_testing_data) All good!","🟢 200: (/metadata) All good!","🟠 /query: (skipped) Missing Required Params/Body","🟠 /asyncquery: (skipped) Missing Required Params/Body"],"uptime_ts":"2026-04-04T07:31:55.277180+00:00","refresh_status":200,"refresh_ts":"2026-04-04T07:04:07+00:00"},"_meta":{"url":"https://trapi-openapi.apps.renci.org/trapi/infores:automat-icees-kg/1.5.0","username":"EvanDietzMorris","date_created":"2024-04-24T03:43:40.217814+00:00","last_updated":"2026-04-03T07:02:10.564865+00:00","slug":null,"has_metakg":true},"openapi":"3.0.0","info":{"title":"Automat-icees-kg(Trapi v1.5.0)","version":"0.3.2","x-translator":{"biolink-version":"4.2.1","component":"KP","team":["DOGSLED"],"infores":"infores:automat-icees-kg"},"x-trapi":{"version":"1.5.0","operations":["lookup"]},"contact":{"email":"max@covar.com","name":"Max Wang","x-id":"https://github.com/maximusunc","x-role":"responsible developer"},"description":"<img src=\"/static/gandalf.png\" width=\"200px\"><br /><br />GANDALF: Graph Analysis Navigator for Discovery And Link Finding"},"servers":[{"description":"Default server","url":"https://automat.ci.transltr.io/icees-kg/","x-maturity":"staging","x-location":"ITRB"},{"description":"Default server","url":"https://automat.renci.org/icees-kg","x-maturity":"development","x-location":"RENCI","x-trapi":"1.5","x-translator":{"biolink-version":"4.2.1","test-data-location":"https://automat.renci.org/icees-kg/sri_testing_data"}},{"description":"Default server","url":"https://automat.test.transltr.io/icees-kg/","x-maturity":"testing","x-location":"ITRB"},{"description":"Default server","url":"https://automat.transltr.io/icees-kg/","x-maturity":"production","x-location":"ITRB"}],"tags":[{"name":"translator"},{"name":"KP"},{"name":"trapi"}],"paths":{"/meta_knowledge_graph":{"get":{"summary":"Meta Knowledge Graph","description":"Return the meta knowledge graph.\n\nReturns the union of the most specific categories and predicates\npresent in the knowledge graph, with edge counts.","operationId":"meta_knowledge_graph_meta_knowledge_graph_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sri_testing_data":{"get":{"summary":"Sri Testing Data","description":"Return representative example edges for the SRI Testing Harness.","operationId":"sri_testing_data_sri_testing_data_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metadata":{"get":{"summary":"Metadata","description":"Return knowledge graph metadata and statistics.","operationId":"metadata_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataResponse"}}}}}}},"/query":{"post":{"summary":"Sync Lookup","description":"Execute a TRAPI query against the knowledge graph.\n\nSupports the 'lookup' workflow operation.","operationId":"sync_lookup_query_post","parameters":[{"name":"subclass","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Enable biolink subclass inference","title":"Subclass"},"description":"Enable biolink subclass inference"},{"name":"dehydrated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Return a dehydrated response (skip edge attribute enrichment)","title":"Dehydrated"},"description":"Return a dehydrated response (skip edge attribute enrichment)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TRAPIQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TRAPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asyncquery":{"post":{"summary":"Async Query","description":"Handle asynchronous query.","operationId":"async_query_asyncquery_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncTRAPIQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AsyncTRAPIQuery":{"properties":{"callback":{"type":"string","title":"Callback","description":"URL to POST results to when the query completes"},"message":{"$ref":"#/components/schemas/Message","description":"TRAPI message containing the query graph"},"workflow":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowStep"},"type":"array"},{"type":"null"}],"title":"Workflow","description":"Workflow operations (defaults to [{'id': 'lookup'}])"},"set_interpretation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Interpretation","description":"Set interpretation mode (only 'BATCH' is supported)"},"log_level":{"anyOf":[{"type":"string","enum":["DEBUG","INFO","WARNING","ERROR","CRITICAL"]},{"type":"null"}],"title":"Log Level","description":"Set logging level for this request (e.g. 'DEBUG' to see detailed query processing)"}},"additionalProperties":true,"type":"object","required":["callback","message"],"title":"AsyncTRAPIQuery","description":"Request body for ``POST /asyncquery``.\n\nContains a callback URL, a TRAPI message, and an optional workflow\nspecification.","examples":[{"callback":"https://example.com/callback","message":{"query_graph":{"edges":{"e0":{"object":"n1","predicates":["biolink:affects"],"subject":"n0"}},"nodes":{"n0":{"ids":["CHEBI:6801"]},"n1":{"categories":["biolink:Gene"]}}}},"workflow":[{"id":"lookup"}]}]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Message":{"properties":{"query_graph":{"$ref":"#/components/schemas/QueryGraph","description":"The query graph specifying the pattern to match"},"results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Results","description":"Result bindings (populated in responses)"},"knowledge_graph":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Knowledge Graph","description":"Knowledge graph subgraph (populated in responses)"}},"additionalProperties":true,"type":"object","required":["query_graph"],"title":"Message","description":"TRAPI message containing the query graph and optional results."},"MetadataResponse":{"properties":{"node_count":{"type":"integer","title":"Node Count","description":"Total number of nodes"},"edge_count":{"type":"integer","title":"Edge Count","description":"Total number of edges"},"predicate_count":{"type":"integer","title":"Predicate Count","description":"Number of unique predicates"},"category_count":{"type":"integer","title":"Category Count","description":"Number of unique categories"},"predicates":{"additionalProperties":{"type":"integer"},"type":"object","title":"Predicates","description":"Predicate → edge count mapping"},"categories":{"additionalProperties":{"type":"integer"},"type":"object","title":"Categories","description":"Category → node count mapping"}},"type":"object","required":["node_count","edge_count","predicate_count","category_count","predicates","categories"],"title":"MetadataResponse","description":"Response from ``GET /metadata``."},"QEdge":{"properties":{"subject":{"type":"string","title":"Subject","description":"Key of the subject node in the query graph"},"object":{"type":"string","title":"Object","description":"Key of the object node in the query graph"},"predicates":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Predicates","description":"Biolink predicates to filter edges (e.g. 'biolink:treats')"},"qualifier_constraints":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Qualifier Constraints","description":"Qualifier constraints for edge filtering"},"attribute_constraints":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Attribute Constraints","description":"Attribute constraints for edge filtering"}},"additionalProperties":true,"type":"object","required":["subject","object"],"title":"QEdge","description":"An edge in the TRAPI query graph.\n\nConnects two nodes (``subject`` → ``object``) with optional predicate\nand qualifier filters."},"QNode":{"properties":{"ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ids","description":"CURIE identifiers to pin this node to specific entities"},"categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Categories","description":"Biolink categories to restrict the node type (e.g. 'biolink:Gene')"},"constraints":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Constraints","description":"Attribute constraints for filtering nodes"},"is_set":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Set","description":"Whether this node represents a set of entities"}},"additionalProperties":true,"type":"object","title":"QNode","description":"A node in the TRAPI query graph.\n\nAt least one of ``ids`` or ``categories`` should typically be provided.\nA node with ``ids`` is \"pinned\" to specific entities; one with only\n``categories`` matches any entity of that type."},"QueryGraph":{"properties":{"nodes":{"additionalProperties":{"$ref":"#/components/schemas/QNode"},"type":"object","title":"Nodes","description":"Named query nodes keyed by identifier (e.g. 'n0', 'n1')"},"edges":{"additionalProperties":{"$ref":"#/components/schemas/QEdge"},"type":"object","title":"Edges","description":"Named query edges keyed by identifier (e.g. 'e0', 'e1')"}},"type":"object","required":["nodes","edges"],"title":"QueryGraph","description":"TRAPI query graph containing nodes and edges to match."},"TRAPIQuery":{"properties":{"message":{"$ref":"#/components/schemas/Message","description":"TRAPI message containing the query graph"},"subclass":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subclass","description":"Enable biolink subclass inference (overridden by query parameter if provided)"},"subclass_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subclass Depth","description":"Maximum subclass_of hops to traverse (default 1)"},"log_level":{"anyOf":[{"type":"string","enum":["DEBUG","INFO","WARNING","ERROR","CRITICAL"]},{"type":"null"}],"title":"Log Level","description":"Set logging level for this request (e.g. 'DEBUG' to see serialization timings)"},"dehydrated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dehydrated","description":"Return a dehydrated response (skip edge attribute enrichment). Automatically enabled when path count exceeds the large result threshold (overridden by query parameter if provided)"}},"additionalProperties":true,"type":"object","required":["message"],"title":"TRAPIQuery","description":"Request body for ``POST /query``.\n\nContains a TRAPI message with a query graph specifying the pattern\nto match against the knowledge graph.\n\nExamples:\n    One-hop query (drug → gene)::\n\n        {\n            \"message\": {\n                \"query_graph\": {\n                    \"nodes\": {\n                        \"n0\": {\"ids\": [\"CHEBI:6801\"]},\n                        \"n1\": {\"categories\": [\"biolink:Gene\"]}\n                    },\n                    \"edges\": {\n                        \"e0\": {\n                            \"subject\": \"n0\",\n                            \"object\": \"n1\",\n                            \"predicates\": [\"biolink:affects\"]\n                        }\n                    }\n                }\n            }\n        }","examples":[{"message":{"query_graph":{"edges":{"e0":{"object":"n1","predicates":["biolink:affects"],"subject":"n0"}},"nodes":{"n0":{"ids":["CHEBI:6801"]},"n1":{"categories":["biolink:Gene"]}}}}},{"message":{"query_graph":{"edges":{"e0":{"object":"n1","predicates":["biolink:affects"],"subject":"n0"},"e1":{"object":"n2","predicates":["biolink:gene_associated_with_condition"],"subject":"n1"}},"nodes":{"n0":{"ids":["CHEBI:6801"]},"n1":{"categories":["biolink:Gene"]},"n2":{"categories":["biolink:Disease"]}}}}},{"message":{"query_graph":{"edges":{"e0":{"object":"n1","predicates":["biolink:affects"],"qualifier_constraints":[{"qualifier_set":[{"qualifier_type_id":"biolink:object_aspect_qualifier","qualifier_value":"activity"}]}],"subject":"n0"}},"nodes":{"n0":{"ids":["CHEBI:6801"]},"n1":{"categories":["biolink:Gene"]}}}}}]},"TRAPIResponse":{"properties":{"message":{"additionalProperties":true,"type":"object","title":"Message","description":"TRAPI message with query_graph, knowledge_graph, and results"}},"additionalProperties":true,"type":"object","required":["message"],"title":"TRAPIResponse","description":"Response from ``POST /query``.\n\nContains the original query graph, a knowledge graph subgraph with\nmatching nodes and edges, and result bindings."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkflowStep":{"properties":{"id":{"type":"string","title":"Id","description":"Workflow operation identifier (e.g. 'lookup')"},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters","description":"Operation-specific parameters"}},"type":"object","required":["id"],"title":"WorkflowStep","description":"A single TRAPI workflow operation."}}}}