diff options
| author | Munyoki Kilyungi | 2026-01-27 16:42:43 +0300 |
|---|---|---|
| committer | Munyoki Kilyungi | 2026-01-27 16:42:43 +0300 |
| commit | 63c1af8d4e855979bec53e716dd046df44c956bc (patch) | |
| tree | f1d48a08d19909b5d21afd70f76d1deb67994422 /examples/tissue.scm | |
| parent | 509485bf2db7ffd9367626f11617ae7d443cde04 (diff) | |
| download | gn-transform-databases-63c1af8d4e855979bec53e716dd046df44c956bc.tar.gz | |
Rename tissue.scm -> molecular-traits.scm.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples/tissue.scm')
| -rwxr-xr-x | examples/tissue.scm | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/examples/tissue.scm b/examples/tissue.scm deleted file mode 100755 index 82cc226..0000000 --- a/examples/tissue.scm +++ /dev/null @@ -1,56 +0,0 @@ -#! /usr/bin/env guile -!# - -(use-modules (srfi srfi-1) - (srfi srfi-26) - (ice-9 getopt-long) - (ice-9 match) - (ice-9 regex) - (transform strings) - (transform sql) - (transform triples) - (transform special-forms)) - - -(define-transformer tissue - ;; The Name and TissueName fields seem to be identical. BIRN_lex_ID - ;; and BIRN_lex_Name are mostly NULL. - (tables (Tissue)) - (schema-triples - (gnc:tissue a skos:Concept)) - ;; Hopefully the Short_Name field is distinct and can be used as an - ;; identifier. - (triples (string->identifier "tissue" (field Tissue Short_Name) - #:separator "_") - (set rdf:type 'gnc:tissue) - (set rdfs:label (field Tissue Name)))) - - - -(let* ((option-spec - '((settings (single-char #\s) (value #t)) - (output (single-char #\o) (value #t)) - (documentation (single-char #\d) (value #t)))) - (options (getopt-long (command-line) option-spec)) - (settings (option-ref options 'settings #f)) - (output (option-ref options 'output #f)) - (documentation (option-ref options 'documentation #f)) - (%connection-settings - (call-with-input-file settings - read))) - (with-documentation - (name "Tissue Metadata") - (connection %connection-settings) - (table-metadata? #f) - (prefixes - '(("gn:" "<http://rdf.genenetwork.org/v1/id/>") - ("gnt:" "<http://rdf.genenetwork.org/v1/term/>") - ("skos:" "<http://www.w3.org/2004/02/skos/core#>") - ("gnc:" "<http://rdf.genenetwork.org/v1/category/>") - ("rdf:" "<http://www.w3.org/1999/02/22-rdf-syntax-ns#>") - ("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>"))) - (inputs - (list tissue)) - (outputs - `(#:documentation ,documentation - #:rdf ,output)))) |
