From 667f816a2fa642ada976676738a9e11c0187db6a Mon Sep 17 00:00:00 2001 From: Eric Deutsch Date: Wed, 22 Jun 2022 23:20:45 -0700 Subject: [PATCH 1/2] Proposal for adding knowledge_types support to /meta_knowledge_graph Do we want to expand the MetaEdge class so that servers can advertise that they support knowledge_type=inferred for certain edges? --- TranslatorReasonerAPI.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 5aec0209..fbc2a887 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -893,6 +893,16 @@ components: description: >- Object node category of this relationship edge. example: biolink:Protein + knowledge_types: + description: >- + A list of knowledge_types that are supported by the service. + If the knowledge_types is null, this means that only 'lookup' + is supported. Currently allowed values are 'lookup' or 'inferred'. + items: + string + minItems: 1 + nullable: true + type: array attributes: type: array description: >- From fba44d3ed5422a94bba41eb7cb00233503931681 Mon Sep 17 00:00:00 2001 From: Eric Deutsch Date: Mon, 27 Jun 2022 20:05:58 -0700 Subject: [PATCH 2/2] error fix: add missing "type:" for items --- TranslatorReasonerAPI.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index fbc2a887..b6c0d541 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -899,7 +899,7 @@ components: If the knowledge_types is null, this means that only 'lookup' is supported. Currently allowed values are 'lookup' or 'inferred'. items: - string + type: string minItems: 1 nullable: true type: array