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