aboutsummaryrefslogtreecommitdiff
path: root/genenetwork-development.scm
diff options
context:
space:
mode:
authorArun Isaac2022-10-30 23:54:41 +0530
committerArun Isaac2022-10-30 23:54:41 +0530
commitec8978fb9c35035afde8a2f29089f90682cc3dc5 (patch)
tree3ccfe77a7810a0aaf45542cd23c7ffbf387aa2fd /genenetwork-development.scm
parent8551e00e778269b26ae417873d6deece29b1d244 (diff)
downloadgn-machines-ec8978fb9c35035afde8a2f29089f90682cc3dc5.tar.gz
Import GeneRIF into RDF.
* genenetwork-development.scm (dump-genenetwork-database): Import GeneRIF into RDF.
Diffstat (limited to 'genenetwork-development.scm')
-rw-r--r--genenetwork-development.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 8025631..b5c1cb4 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -582,6 +582,10 @@ described by CONFIG, a <genenetwork-configuration> object."
(invoke "./pre-inst-env" "./dump.scm"
connection-settings-file
dump-directory)
+ ;; Import GeneRIF into RDF.
+ (invoke "./pre-inst-env" "./import-generif.scm"
+ (string-append dump-directory "/generifs_basic.gz")
+ dump-directory)
;; Validate dumped RDF, sending the error output to
;; oblivion because we don't want to print out potentially
;; sensitive data.
@@ -592,9 +596,11 @@ described by CONFIG, a <genenetwork-configuration> object."
"--count"
(string-append dump-directory "/dump.ttl")))
;; Load RDF into virtuoso.
- (invoke "./pre-inst-env" "./load-rdf.scm"
- connection-settings-file
- (string-append dump-directory "/dump.ttl"))
+ (for-each (lambda (ttl)
+ (invoke "./pre-inst-env" "./load-rdf.scm"
+ connection-settings-file
+ (string-append dump-directory "/" ttl)))
+ (list "dump.ttl" "generif.ttl"))
;; Visualize schema and archive results.
(invoke "./pre-inst-env" "./visualize-schema.scm"
connection-settings-file)