aboutsummaryrefslogtreecommitdiff
path: root/examples/dump-dataset-metadata.scm
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-08-15 18:26:34 +0300
committerMunyoki Kilyungi2023-08-15 19:32:48 +0300
commite1f390b7fab33d33fa3d813a74ae8b7d935c929b (patch)
tree8b5b072d1ba92ae8fb136562c58f4a7b43095e19 /examples/dump-dataset-metadata.scm
parentcfd8100788158f0c421a43b4c2d8281a3992b1e3 (diff)
downloadgn-transform-databases-e1f390b7fab33d33fa3d813a74ae8b7d935c929b.tar.gz
Introduce phenotype/genotype/probeset Dataset as a category
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples/dump-dataset-metadata.scm')
-rwxr-xr-xexamples/dump-dataset-metadata.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/dump-dataset-metadata.scm b/examples/dump-dataset-metadata.scm
index 3d2e1f9..e099bac 100755
--- a/examples/dump-dataset-metadata.scm
+++ b/examples/dump-dataset-metadata.scm
@@ -73,8 +73,9 @@
"WHERE GN_AccesionId IS NOT NULL")
(schema-triples
(gnc:dataset rdf:type gdmt:Dataset)
- (gnc:genotype rdfs:subClassOf gnc:dataset)
- (gnc:phenotype rdfs:subClassOf gnc:dataset)
+ (gnc:genotypeDataset rdfs:subClassOf gnc:dataset)
+ (gnc:phenotypeDataset rdfs:subClassOf gnc:dataset)
+ (gnc:probesetDataset rdfs:subClassOf gnc:dataset)
(gnt:belongsToInbredSet rdfs:domain gnc:dataset)
(gnt:belongsToInbredSet a owl:ObjectProperty)
(gnt:belongsToInbredSet skos:definition "The InbredSet this resource belongs to")
@@ -124,7 +125,7 @@
#:separator ""
#:proc string-capitalize-first)
(set rdf:type (string->symbol
- (field ("IF(GenoFreeze.Id IS NOT NULL, 'gnc:genotype', IF(PublishFreeze.Id IS NOT NULL, 'gnc:phenotype', 'gnc:dataset'))"
+ (field ("IF(GenoFreeze.Id IS NOT NULL, 'gnc:genotypeDataset', IF(PublishFreeze.Id IS NOT NULL, 'gnc:phenotypeDataset', IF(ProbeSetFreeze.Name IS NOT NULL, 'gnc:probesetDataset', 'gnc:dataset')))"
rdfType))))
(set rdfs:label (regexp-substitute/global
#f "^[Nn]one$"