paths: /query: post: responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/TRAPIResponse' default: description: '' content: text/plain: schema: type: string summary: Submit a TRAPI question graph and retrieve matching solutions parameters: - schema: type: integer example: 10 name: limit required: false in: query requestBody: content: application/json: schema: $ref: '#/components/schemas/TRAPIQuery' example: message: query_graph: nodes: n0: categories: - biolink:BiologicalProcess is_set: false n1: categories: - biolink:BiologicalProcess is_set: false edges: e0: predicates: - biolink:part_of subject: n1 object: n0 required: true operationId: postQuery /meta_knowledge_graph: get: summary: Meta knowledge graph representation of this TRAPI web service. operationId: getMeta_knowledge_graph responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/MetaKnowledgeGraph' default: description: '' content: text/plain: schema: type: string components: schemas: TRAPIKnowledgeGraph: required: - edges type: object properties: nodes: type: array items: $ref: '#/components/schemas/TRAPINode' edges: $ref: '#/components/schemas/Map_TRAPIEdge' TRAPIQualifierConstraint: type: object properties: qualifier_set: type: array items: $ref: '#/components/schemas/TRAPIQualifier' Map_List_TRAPIEdgeBinding: type: object additionalProperties: type: array items: $ref: '#/components/schemas/TRAPIEdgeBinding' TRAPIMessage: type: object properties: query_graph: $ref: '#/components/schemas/TRAPIQueryGraph' knowledge_graph: $ref: '#/components/schemas/TRAPIKnowledgeGraph' results: type: array items: $ref: '#/components/schemas/TRAPIResult' TRAPINodeBinding: required: - id type: object properties: id: $ref: '#/components/schemas/IRI' query_id: $ref: '#/components/schemas/IRI' attributes: type: array items: $ref: '#/components/schemas/TRAPIAttribute' TRAPINode: type: object properties: name: type: string categories: type: array items: $ref: '#/components/schemas/BiolinkTerm' attributes: type: array items: $ref: '#/components/schemas/TRAPIAttribute' Map_TRAPIEdge: type: object additionalProperties: $ref: '#/components/schemas/TRAPIEdge' Map_TRAPIQueryNode: type: object additionalProperties: $ref: '#/components/schemas/TRAPIQueryNode' TRAPIQueryNode: type: object properties: categories: type: array items: $ref: '#/components/schemas/BiolinkTerm' ids: type: array items: $ref: '#/components/schemas/IRI' is_set: type: boolean constraints: type: array items: $ref: '#/components/schemas/TRAPIAttributeConstraint' MetaAttribute: required: - attribute_type_id type: object properties: original_attribute_names: type: array items: type: string constraint_use: type: boolean attribute_type_id: $ref: '#/components/schemas/IRI' constraint_name: type: string attribute_source: type: string Map_TRAPIQueryEdge: type: object additionalProperties: $ref: '#/components/schemas/TRAPIQueryEdge' IRI: required: - value type: object properties: value: type: string TRAPIQueryGraph: required: - nodes - edges type: object properties: nodes: $ref: '#/components/schemas/Map_TRAPIQueryNode' edges: $ref: '#/components/schemas/Map_TRAPIQueryEdge' TRAPIQueryEdge: required: - subject - object type: object properties: knowledge_type: type: string subject: type: string object: type: string predicates: type: array items: $ref: '#/components/schemas/BiolinkTerm' qualifier_constraints: type: array items: $ref: '#/components/schemas/TRAPIQualifierConstraint' attribute_constraints: type: array items: $ref: '#/components/schemas/TRAPIAttributeConstraint' MetaNode: type: object properties: id_prefixes: type: array items: type: string TRAPIAttributeConstraint: required: - id - name - operator - value type: object properties: name: type: string unit_id: $ref: '#/components/schemas/IRI' id: $ref: '#/components/schemas/IRI' operator: type: string value: type: string not: type: boolean unit_name: type: string TRAPIQualifier: required: - qualifier_type_id - qualifier_value type: object properties: qualifier_type_id: type: string qualifier_value: type: string TRAPIResponse: required: - message type: object properties: message: $ref: '#/components/schemas/TRAPIMessage' MetaKnowledgeGraph: type: object properties: nodes: type: array items: $ref: '#/components/schemas/MetaNode' edges: type: array items: $ref: '#/components/schemas/MetaEdge' TRAPIEdge: required: - subject - object type: object properties: predicate: $ref: '#/components/schemas/BiolinkTerm' subject: $ref: '#/components/schemas/IRI' object: $ref: '#/components/schemas/IRI' attributes: type: array items: $ref: '#/components/schemas/TRAPIAttribute' BiolinkTerm: required: - shorthand - iri type: object properties: shorthand: type: string iri: $ref: '#/components/schemas/IRI' TRAPIResult: required: - node_bindings - edge_bindings type: object properties: node_bindings: $ref: '#/components/schemas/Map_List_TRAPINodeBinding' edge_bindings: $ref: '#/components/schemas/Map_List_TRAPIEdgeBinding' MetaEdge: required: - subject - predicate - object type: object properties: predicate: $ref: '#/components/schemas/BiolinkTerm' attributes: type: array items: $ref: '#/components/schemas/MetaAttribute' object: $ref: '#/components/schemas/BiolinkTerm' subject: $ref: '#/components/schemas/BiolinkTerm' knowledge_types: type: array items: type: string TRAPIQuery: required: - message type: object properties: message: $ref: '#/components/schemas/TRAPIMessage' log_level: type: string submitter: type: string Map_List_TRAPINodeBinding: type: object additionalProperties: type: array items: $ref: '#/components/schemas/TRAPINodeBinding' TRAPIAttribute: required: - attribute_type_id - value type: object properties: value: type: string value_url: type: string description: type: string attribute_type_id: $ref: '#/components/schemas/IRI' attributes: type: array items: $ref: '#/components/schemas/TRAPIAttribute' original_attribute_name: type: string value_type_id: $ref: '#/components/schemas/IRI' attribute_source: type: string TRAPIEdgeBinding: required: - id type: object properties: id: type: string servers: - url: https://ontology-kp.apps.renci.org description: Default server x-maturity: production x-location: RENCI openapi: 3.0.1 info: x-translator: infores: infores:sri-ontology component: KP team: - Standards Reference Implementation Team biolink-version: 2.2.4 version: '0.1' termsOfService: https://opensource.org/licenses/MIT contact: name: Jim Balhoff email: balhoff@renci.org license: name: MIT License url: https://opensource.org/licenses/MIT x-trapi: version: 1.3.0 operations: - lookup description: TRAPI interface to integrated ontology knowledgebase title: Ontology-KP API tags: - name: translator - name: trapi