diff options
author | Munyoki Kilyungi | 2023-06-26 11:03:57 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2023-06-26 11:03:57 +0300 |
commit | 94816f83eb2e3c15a5099e773548cd6f5000d210 (patch) | |
tree | 316ce82c0486ac05cde7f1d403ce691d6341b844 | |
parent | ce06a0515957e15f49be2f9187440576a02689c2 (diff) | |
download | gn-transform-databases-94816f83eb2e3c15a5099e773548cd6f5000d210.tar.gz |
Add "-m manifest.scm" flag to guix shell commands
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -12,7 +12,7 @@ relational database to plain text. Drop into a development environment with ``` shell -$ guix shell +$ guix shell -m manifest.scm ``` Build the sources. @@ -77,7 +77,7 @@ Here's a sample *conn.scm*. Then, to dump the database to \~/data/dump, run ``` shell -$ ./pre-inst-env ./dump.scm conn.scm ~/data/dump +$ guix shell -m manifest.scm -- ./pre-inst-env ./examples/dump-dataset-metadata.scm conn.scm ~/data/dump-data/ ``` Make sure there is enough free space! It\'s best to dump the database on @@ -92,8 +92,8 @@ virtuoso. This will load the dumped RDF into the in that graph. ``` shell -$ rapper --input turtle --count ~/data/dump/dump.ttl -$ ./pre-inst-env ./load-rdf.scm conn.scm ~/data/dump/dump.ttl +$ guix shell -m manifest.scm -- rapper --input turtle --count ~/data/dump/dump.ttl +$ guix shell -m manifest.scm -- ./pre-inst-env ./load-rdf.scm conn.scm ~/data/dump/dump.ttl ``` ## Visualize schema @@ -101,7 +101,7 @@ $ ./pre-inst-env ./load-rdf.scm conn.scm ~/data/dump/dump.ttl Now, you may query virtuoso to visualize the SQL and RDF schema. ``` shell -$ ./pre-inst-env ./visualize-schema.scm conn.scm +$ guix shell -m manifest.scm -- ./pre-inst-env ./visualize-schema.scm conn.scm ``` This will output graphviz dot files `sql.dot` and `rdf.dot` describing |