diff options
| author | Munyoki Kilyungi | 2026-01-23 23:07:53 +0300 |
|---|---|---|
| committer | Munyoki Kilyungi | 2026-01-23 23:07:53 +0300 |
| commit | faf9e054a82d2337a4e415f2b75236f62f7cd813 (patch) | |
| tree | 6f98f5f5164da4b43e12653f07b441156b9162e3 /examples | |
| parent | 61f71f94f359236f5dbbe448a3fb90e62273dd74 (diff) | |
| download | gn-transform-databases-faf9e054a82d2337a4e415f2b75236f62f7cd813.tar.gz | |
Add fan outs for mapping/avg methods in GN.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/strains.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/strains.scm b/examples/strains.scm index 2d0f144..1619876 100755 --- a/examples/strains.scm +++ b/examples/strains.scm @@ -86,6 +86,18 @@ At this point it is not very clear how Name, Name2, Symbol and Alias are used. (set skos:inScheme 'gnc:mapping_method) (set skos:prefLabel (field MappingMethod Name)))) +(define-transformer mapping-method-fan-out + (tables (MappingMethod)) + (triples + 'gnc:mapping_method + (set skos:member (string->identifier "mapping_method" (field MappingMethod Name) #:separator "_")))) + +(define-transformer avg-method-fan-out + (tables (AvgMethod)) + (triples + 'gnc:avg_method + (set skos:member (string->identifier "avg_method" (field AvgMethod Name AvgMethodName) #:separator "_")))) + (define-transformer avg-method ;; The Name and Normalization fields seem to be the same. Dump only ;; the Name field. @@ -128,7 +140,7 @@ At this point it is not very clear how Name, Name2, Symbol and Alias are used. ("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>") ("taxon:" "<http://purl.uniprot.org/taxonomy/>"))) (inputs - (list strain mapping-method avg-method)) + (list strain mapping-method avg-method mapping-method-fan-out avg-method-fan-out)) (outputs `(#:documentation ,documentation #:rdf ,output)))) |
