From 2c12281596c34e6e2776f619ce901a162203755b Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Thu, 16 Mar 2023 09:51:02 -0700 Subject: [PATCH 1/3] tweak regexes to fit in the line length specified by tox. --- TranslatorReasonerAPI.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 122adc58..47045ca8 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -1103,7 +1103,7 @@ components: CURIE for a Biolink 'qualifier' association slot, generally taken from Biolink association slots designated for this purpose (that is, association slots with names ending in 'qualifier') - e.g. biolink:subject_aspect_qualifier, + e.g. biolink:subject_aspect_qualifier, biolink:subject_direction_qualifier, biolink:object_aspect_qualifier, etc. Such qualifiers are used to elaborate a second layer of meaning of a knowledge graph edge. @@ -1181,9 +1181,16 @@ components: by a colon, such as UniProtKB:P00738. Via an external context definition, the CURIE prefix and colon may be replaced by a URI prefix, such as http://identifiers.org/uniprot/, to form a full - URI. + URI. Conforms to https://www.w3.org/TR/curie/ externalDocs: url: https://www.w3.org/TR/2010/NOTE-curie-20101216/ + pattern: ^\S+:\S+$ + URI: + type: string + description: >- + externalDocs: + url: https://www.ietf.org/rfc/rfc3987.txt + pattern: (http(s)?:\/\/.)?(www\.)?\S+$ MetaKnowledgeGraph: type: object description: >- From 2a48936973847b500d45400aac187aa4c19afb49 Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Thu, 16 Mar 2023 09:52:09 -0700 Subject: [PATCH 2/3] change name of parameter to reflect ticket --- TranslatorReasonerAPI.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 47045ca8..362aec9b 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -1185,12 +1185,12 @@ components: externalDocs: url: https://www.w3.org/TR/2010/NOTE-curie-20101216/ pattern: ^\S+:\S+$ - URI: + URL: type: string description: >- externalDocs: url: https://www.ietf.org/rfc/rfc3987.txt - pattern: (http(s)?:\/\/.)?(www\.)?\S+$ + pattern: ^(http(s)?:\/\/.)?(www\.)?\S+$ MetaKnowledgeGraph: type: object description: >- From dff281b73f8e2bf94c7dfdd3c0447a9b283c8db1 Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Tue, 21 Mar 2023 08:00:05 -0700 Subject: [PATCH 3/3] fix description --- TranslatorReasonerAPI.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 362aec9b..f9d208f6 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -1188,8 +1188,7 @@ components: URL: type: string description: >- - externalDocs: - url: https://www.ietf.org/rfc/rfc3987.txt + A Uniform Resource Locator, such as https://www.example.com. pattern: ^(http(s)?:\/\/.)?(www\.)?\S+$ MetaKnowledgeGraph: type: object