about summary refs log tree commit diff
path: root/examples/dataset-metadata.scm
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-11-17 11:26:54 +0300
committerMunyoki Kilyungi2023-11-17 11:26:54 +0300
commit13ee5888fddba915d1b101aa403b7393c2ccb3ba (patch)
treef9c508ac387a3d580d0a7485a3948cd61893a219 /examples/dataset-metadata.scm
parent2df9eb5a6adf15ddb19d4f00f1bc5a1c35f492c7 (diff)
downloadgn-transform-databases-13ee5888fddba915d1b101aa403b7393c2ccb3ba.tar.gz
Capitalize InbredSetName id's consistently.
Diffstat (limited to 'examples/dataset-metadata.scm')
-rwxr-xr-xexamples/dataset-metadata.scm14
1 files changed, 10 insertions, 4 deletions
diff --git a/examples/dataset-metadata.scm b/examples/dataset-metadata.scm
index 26ca7f2..2dba37f 100755
--- a/examples/dataset-metadata.scm
+++ b/examples/dataset-metadata.scm
@@ -257,7 +257,7 @@
                                  'pre "_" 'post))
     (set rdf:type 'dcat:Dataset)
     (set xkos:classifiedUnder 'gnc:Phenotype)
-    (set dct:title  (field PublishFreeze FullName))
+    (set dct:title (field PublishFreeze FullName))
     (set rdfs:label (field PublishFreeze Name))
     (set skos:altLabel (field PublishFreeze ShortName))
     (set dct:created (annotate-field
@@ -265,7 +265,9 @@
                       '^^xsd:date))
     (set xkos:classifiedUnder
          (string->identifier
-          "set" (field InbredSet Name InbredSetName)))))
+          "set" (field InbredSet Name InbredSetName)
+          #:separator ""
+          #:proc string-capitalize-first))))
 
 (define-transformer genofreeze
   (tables (GenoFreeze
@@ -292,7 +294,9 @@
                       '^^xsd:date))
     (set xkos:classifiedUnder
          (string->identifier
-            "set" (field InbredSet Name InbredSetName)))))
+          "set" (field InbredSet Name InbredSetName)
+          #:separator ""
+          #:proc string-capitalize-first))))
 
 ;; Molecular Traits are also referred to as ProbeSets
 (define-transformer probesetfreeze
@@ -336,7 +340,9 @@
           (field Tissue Short_Name)))
     (set xkos:classifiedUnder
          (string->identifier
-          "set" (field InbredSet Name InbredSetName)))))
+          "set" (field InbredSet Name InbredSetName)
+          #:separator ""
+          #:proc string-capitalize-first))))