From ac4267c8e21efb6b30f2c8c7473ab72d465e29d2 Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Mon, 24 Apr 2023 14:11:59 -0700 Subject: [PATCH 1/3] add sources field to MetaEdge so that infores identifiers are returned in the meta knowledge graph --- TranslatorReasonerAPI.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 2b4c6b68..5282c1d7 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -1313,6 +1313,17 @@ components: correctly. example: 'biolink:ChemicalToGeneAssociation' $ref: '#/components/schemas/BiolinkEntity' + sources: + type: array + description: >- + A list of RetrievalSource objects that provide information + about how a particular Information Resource served + as a source from which the knowledge expressed in an Edge, + or data used to generate this knowledge, was retrieved. + items: + $ref: '#/components/schemas/RetrievalSource' + minItems: 1 + nullable: false required: - subject - predicate From 9ffdaf3fbd3f1f26900be400d4230c313372766f Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Mon, 24 Apr 2023 14:31:51 -0700 Subject: [PATCH 2/3] added a 'MUST' statement for providing primary_knowledge_source in at least one RetrievalSource member of the sources list on both Edges and MetaEdges --- TranslatorReasonerAPI.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 5282c1d7..978c7180 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -1101,6 +1101,8 @@ components: about how a particular Information Resource served as a source from which the knowledge expressed in an Edge, or data used to generate this knowledge, was retrieved. + Every Edge must have at least one RetrievalSource object + in this sources list with resource_role = 'primary_knowledge_source'. items: $ref: '#/components/schemas/RetrievalSource' minItems: 1 @@ -1320,6 +1322,8 @@ components: about how a particular Information Resource served as a source from which the knowledge expressed in an Edge, or data used to generate this knowledge, was retrieved. + Every MetaEdge must have at least one RetrievalSource object + in this sources list with resource_role = 'primary_knowledge_source'. items: $ref: '#/components/schemas/RetrievalSource' minItems: 1 From 90c915f46ad7db30cdd1d1ca20b215c3bd13c8ba Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Thu, 27 Apr 2023 10:46:30 -0700 Subject: [PATCH 3/3] remove 'nullable:false' and 'minItems:1' --- TranslatorReasonerAPI.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 978c7180..e4fc6742 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -1326,8 +1326,7 @@ components: in this sources list with resource_role = 'primary_knowledge_source'. items: $ref: '#/components/schemas/RetrievalSource' - minItems: 1 - nullable: false + nullable: true required: - subject - predicate