aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-05-05 15:33:28 +0530
committerArun Isaac2022-05-05 15:33:28 +0530
commite425c701e747fbc7a91c1a8d814fe31f97e2d37c (patch)
tree5c86e489d2e80ec9178997cabc52fd569e047373
parentbc3305ebe75bc9bd2ba446591b5d4594ee29dea4 (diff)
downloadgn-transform-databases-e425c701e747fbc7a91c1a8d814fe31f97e2d37c.tar.gz
Validate dumped RDF using rapper.
* manifest.scm: Import raptor2 from (gnu packages rdf). Add raptor2 to manifest. * README.md (Using): Document validation using rapper.
-rw-r--r--README.md8
-rw-r--r--manifest.scm3
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))