aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-08-21 16:03:57 +0300
committerMunyoki Kilyungi2023-08-21 17:52:08 +0300
commitb4acc5bce12a308141b9f1fd235e0a19bf100bc1 (patch)
treed9f7465770d51e8a5208a6e9fdbdb8eaf93659d5 /examples
parent9c75479ce8b23b6f951a2f37a695e805db858cc5 (diff)
downloadgn-transform-databases-b4acc5bce12a308141b9f1fd235e0a19bf100bc1.tar.gz
Replace gnt:traitName with rdfs:label
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/phenotype.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/phenotype.scm b/examples/phenotype.scm
index 772c2bc..42396af 100755
--- a/examples/phenotype.scm
+++ b/examples/phenotype.scm
@@ -26,9 +26,6 @@
(gnt:abbreviation a owl:ObjectProperty)
(gnt:abbreviation rdfs:domain gnc:phenotype)
(gnt:abbreviation skos:definition "The abbreviation used for this resource")
- (gnt:traitName a owl:ObjectProperty)
- (gnt:traitName rdfs:domain gnc:phenotype)
- (gnt:traitName skos:definition "The trait Name of this resource")
(gnt:labCode a owl:ObjectProperty)
(gnt:labCode rdfs:domain gnc:phenotype)
(gnt:submitter a owl:ObjectProperty)
@@ -54,12 +51,13 @@
"set" (field InbredSet Name)
#:separator ""
#:proc string-capitalize-first))
- (set gnt:traitName
+ ;; This is the trait's name
+ (set rdfs:label
(let ((trait-id (field PublishXRef Id)))
(if (number? trait-id)
(number->string trait-id)
trait-id)))
- (set rdfs:label
+ (set skos:altLabel
(field ("CONCAT(IFNULL(InbredSet.Name, PublishXRef.InbredSetId), '_', PublishXRef.Id)"
Phenotype)))
;; All phenotypes have a post-publication description