diff options
author | Munyoki Kilyungi | 2023-08-21 14:54:21 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2023-08-21 14:56:57 +0300 |
commit | 51b3c0548c98e0bc05e11a89cbf6b75d31b9f8d5 (patch) | |
tree | ab3d7c6f589ed8480f0a9d451566681bcfd8eaaf /examples/dump-tissue.scm | |
parent | 849874fdfe11003f05abe5f82efde974a8c8a388 (diff) | |
download | gn-transform-databases-51b3c0548c98e0bc05e11a89cbf6b75d31b9f8d5.tar.gz |
Remove "dump-" prefix
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples/dump-tissue.scm')
-rwxr-xr-x | examples/dump-tissue.scm | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/examples/dump-tissue.scm b/examples/dump-tissue.scm deleted file mode 100755 index 3658a26..0000000 --- a/examples/dump-tissue.scm +++ /dev/null @@ -1,50 +0,0 @@ -#! /usr/bin/env guile -!# - -(use-modules (srfi srfi-1) - (srfi srfi-26) - (ice-9 match) - (ice-9 regex) - (dump strings) - (dump sql) - (dump triples) - (dump special-forms)) - - - -(define %connection-settings - (call-with-input-file (list-ref (command-line) 1) - read)) - - - -(define-transformer dump-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)) - (set rdf:type 'gnc:tissue) - (set rdfs:label (field Tissue Name)))) - - - -(dump-with-documentation - (name "Tissue Metadata") - (connection %connection-settings) - (table-metadata? #f) - (prefixes - '(("gn:" "<http://genenetwork.org/id/>") - ("gnt:" "<http://genenetwork.org/terms/>") - ("skos:" "<http://www.w3.org/2004/02/skos/core#>") - ("gnc:" "<http://genenetwork.org/category/>") - ("rdf:" "<http://www.w3.org/1999/02/22-rdf-syntax-ns#>") - ("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>"))) - (inputs - (list dump-tissue)) - (outputs - '(#:documentation "./docs/dump-tissue.md" - #:rdf "./verified-data/dump-tissue.ttl"))) |