aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-05-15 00:31:24 +0300
committerMunyoki Kilyungi2024-05-15 00:31:24 +0300
commiteed289041e3508199c9ba607eab9197d90a99221 (patch)
treee51335f5af08cc10862dde6987966905ea894dc4 /examples
parentd6b5d93e9b7fdb4d07a2ed7e7651bcdadb7c940c (diff)
downloadgn-transform-databases-eed289041e3508199c9ba607eab9197d90a99221.tar.gz
Replace rdfs:label with gnt:traitId for Phenotypes.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/phenotype.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/phenotype.scm b/examples/phenotype.scm
index a0b04bf..fd5ed85 100755
--- a/examples/phenotype.scm
+++ b/examples/phenotype.scm
@@ -20,6 +20,9 @@
(left-join Publication "ON Publication.Id = PublishXRef.PublicationId")
(left-join Phenotype "ON Phenotype.Id = PublishXRef.PhenotypeId")))
(schema-triples
+ (gnt:traitId a owl:ObjectProperty)
+ (gnt:traitId rdfs:domain gnc:Phenotype)
+ (gnt:traitId skos:definition "This is the unique trait id assigned from GeneNetwork")
(gnt:abbreviation a owl:ObjectProperty)
(gnt:abbreviation rdfs:domain gnc:Phenotype)
(gnt:abbreviation skos:definition "The abbreviation used for this resource")
@@ -60,7 +63,7 @@
#:separator ""
#:proc string-capitalize-first))
;; This is the trait's name
- (set rdfs:label
+ (set gnt:traitId
(let ((trait-id (field PublishXRef Id)))
(if (number? trait-id)
(number->string trait-id)