From ec8978fb9c35035afde8a2f29089f90682cc3dc5 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 30 Oct 2022 23:54:41 +0530 Subject: Import GeneRIF into RDF. * genenetwork-development.scm (dump-genenetwork-database): Import GeneRIF into RDF. --- genenetwork-development.scm | 12 +++++++++--- 1 file 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 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 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) -- cgit v1.2.3