aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2026-01-23 19:44:07 +0300
committerMunyoki Kilyungi2026-01-23 19:44:07 +0300
commita9f6bc3bc0ebe5a8cdcc4c9b3f20a6a722a55dd0 (patch)
tree1216332510575494998e5df806793c9263ff4b97 /examples
parent68e3fbce7c128708474199d1e181593834615b39 (diff)
downloadgn-transform-databases-a9f6bc3bc0ebe5a8cdcc4c9b3f20a6a722a55dd0.tar.gz
Update Mapping/Averaging methods ontology.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/strains.scm20
1 files changed, 12 insertions, 8 deletions
diff --git a/examples/strains.scm b/examples/strains.scm
index cb4978f..3e86361 100755
--- a/examples/strains.scm
+++ b/examples/strains.scm
@@ -77,23 +77,27 @@ At this point it is not very clear how Name, Name2, Symbol and Alias are used.
(define-transformer mapping-method
(tables (MappingMethod))
(schema-triples
- (gnc:mapping_method a skos:Concept)
- (gnc:mapping_method skos:definition "Terms that decribe mapping methods used on this resource"))
+ (gnc:mapping_method a skos:ConceptScheme)
+ (gnc:mapping_method skos:prefLabel "Mapping Method Vocabulary")
+ (gnc:mapping_method skos:definition "Controlled vocabulary describing statistical/computational methods used for mapping in GeneNetwork."))
(triples
(string->identifier "mapping_method" (field MappingMethod Name) #:separator "_")
- (set rdf:type 'gnc:mapping_method)
- (set rdfs:label (field MappingMethod Name))))
+ (set a 'skos:Concept)
+ (set skos:inScheme 'gnc:mapping_method)
+ (set skos:prefLabel (field MappingMethod Name))))
(define-transformer avg-method
;; The Name and Normalization fields seem to be the same. Dump only
;; the Name field.
(tables (AvgMethod))
(schema-triples
- (gnc:avg_method a skos:Concept)
- (gnc:avg_method skos:definition "Terms that decribe normalization methods used on this resource"))
+ (gnc:avg_method a skos:ConceptScheme)
+ (gnc:avg_method skos:prefLabel "Normalization and Averaging Method Vocabulary" ;)
+ (gnc:avg_method skos:definition "Controlled vocabulary describing normalization, transformation, and summarization methods applied in GeneNetwork."))
(triples (string->identifier "avg_method" (field AvgMethod Name AvgMethodName) #:separator "_")
- (set rdf:type 'gnc:avg_method)
- (set rdfs:label (field AvgMethod Normalization))))
+ (set a skos:Concept)
+ (set skos:inScheme gnc:avg_method)
+ (set prefLabel (field AvgMethod Normalization))))