From e425c701e747fbc7a91c1a8d814fe31f97e2d37c Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 5 May 2022 15:33:28 +0530 Subject: Validate dumped RDF using rapper. * manifest.scm: Import raptor2 from (gnu packages rdf). Add raptor2 to manifest. * README.md (Using): Document validation using rapper. --- README.md | 8 +++++--- manifest.scm | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 264e886..a44b07f 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,13 @@ Make sure there is enough free space! It\'s best to dump the database on penguin2 where disk space and bandwidth are not significant constraints. -Then, load the dumped RDF into virtuoso. This will load the dumped RDF -into the `http://genenetwork.org` graph, and will delete all -pre-existing data in that graph. +Then, validate the dumped RDF using `rapper` and load it into +virtuoso. This will load the dumped RDF into the +`http://genenetwork.org` graph, and will delete all pre-existing data +in that graph. ``` shell +$ rapper --input turtle --count ~/data/dump/dump.ttl $ ./pre-inst-env ./load-rdf.scm conn.scm ~/data/dump/dump.ttl ``` diff --git a/manifest.scm b/manifest.scm index 1b6dc43..99c83f3 100644 --- a/manifest.scm +++ b/manifest.scm @@ -11,6 +11,7 @@ (gnu packages guile) ((gnu packages guile-xyz) #:select (guile-sparql) #:prefix guix:) ((gnu packages guile-xyz) #:select (guile-dbd-mysql guile-dbi guile-hashing guile-libyaml)) + ((gnu packages rdf) #:select (raptor2)) (guix build-system gnu) (guix git-download) ((guix licenses) #:prefix license:) @@ -73,4 +74,4 @@ ;; We abuse (ccwl graphviz) as a library to visualize the database ;; schema. Hence we need ccwl and guile-libyaml. ccwl graphviz guile-hashing guile-libyaml guile-sparql - run64 virtuoso-ose)) + raptor2 run64 virtuoso-ose)) -- cgit v1.2.3