From 4480184dcf1264ade02d9930f6d34b36a7f2a58c Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 9 Jun 2023 15:09:11 +0300 Subject: Annotate a phenotype dataset with 'dataset: Signed-off-by: Munyoki Kilyungi --- examples/dump-phenotype.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/dump-phenotype.scm b/examples/dump-phenotype.scm index 7582d94..5b05a79 100755 --- a/examples/dump-phenotype.scm +++ b/examples/dump-phenotype.scm @@ -36,7 +36,11 @@ (gn:shortName rdfs:range rdfs:Literal) (gn:createTime rdfs:range rdfs:Literal) (gn:phenotypeDataset rdf:subClassOf gn:dataset)) - (triples (string->identifier "dataset" (field PublishFreeze Name)) + (triples + (ontology 'dataset: + (regexp-substitute/global #f "[^A-Za-z0-9:]" + (field PublishFreeze Name) + 'pre "_" 'post)) (set rdf:type 'gn:phenotypeDataset) (set gn:name (field PublishFreeze Name)) (set gn:fullName (field PublishFreeze FullName)) -- cgit v1.2.3