From 7b2a0e1be7d8455c6b7430210d1c873f53f3eca6 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 30 Nov 2023 17:32:11 +0300 Subject: Trim the contributor's name when transforming phenotype metadata. Signed-off-by: Munyoki Kilyungi --- examples/phenotype.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/phenotype.scm b/examples/phenotype.scm index c485658..8049265 100755 --- a/examples/phenotype.scm +++ b/examples/phenotype.scm @@ -78,9 +78,10 @@ (set gnt:submitter (sanitize-rdf-string (field Phenotype Submitter))) (multiset dct:contributor - (string-split - (sanitize-rdf-string (field Phenotype Owner)) - #\,)) + (map string-trim-both + (string-split + (sanitize-rdf-string (field Phenotype Owner)) + #\,))) (set gnt:mean (annotate-field (field ("IFNULL(PublishXRef.mean, '')" mean)) '^^xsd:double)) (set gnt:locus -- cgit v1.2.3