summaryrefslogtreecommitdiff
path: root/topics/systems
diff options
context:
space:
mode:
authorPjotr Prins2022-12-07 15:54:14 -0600
committerPjotr Prins2022-12-07 15:54:14 -0600
commitb7c5f2aed32a7edc19fbe716f3415e86c39705af (patch)
treeef6bd813a848adab78217326ed4b24037140c9df /topics/systems
parent3529f493850b56576f07a3b0b980978e3be03cb2 (diff)
downloadgn-gemtext-b7c5f2aed32a7edc19fbe716f3415e86c39705af.tar.gz
Virtuoso updates
Diffstat (limited to 'topics/systems')
-rw-r--r--topics/systems/update-production-tux01.gmi51
-rw-r--r--topics/systems/virtuoso.gmi2
2 files changed, 52 insertions, 1 deletions
diff --git a/topics/systems/update-production-tux01.gmi b/topics/systems/update-production-tux01.gmi
new file mode 100644
index 0000000..ea99527
--- /dev/null
+++ b/topics/systems/update-production-tux01.gmi
@@ -0,0 +1,51 @@
+# Update production
+
+In this document we describe the specific steps required to update production.
+
+# Virtuoso RDF
+
+Once we have an RDF dump of the database in a file 'data.ttl' we can test it for correctness with:
+
+```
+tux01:~$ rapper --input turtle --count dump.ttl
+rapper: Parsing URI file:///home/wrk/dump.ttl with parser turtle
+rapper: Parsing returned 652395 triples
+```
+
+Test the virtuoso endpoint with
+
+```
+curl http://localhost:8892/sparql
+```
+
+Then, upload it to a virtuoso SPARQL endpoint running at port 8892
+
+```
+curl -v -X PUT --digest -u dba:password -T data.ttl -G http://localhost:8892/sparql-graph-crud-auth --data-urlencode graph=http://genenetwork.org
+```
+
+To test
+
+```
+curl "http://localhost:8892/sparql?default-graph-uri=&query=prefix+gn%3A+%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E+%0D%0A%0D%0ASELECT+distinct+*+WHERE+%7B%3Fu++gn%3AbinomialName+%3Fo%7D&format=application%2Fsparql-results%2Bjson&timeout=0&signal_void=on"
+```
+
+and you should see the data:
+
+```js
+ {
+ "u": {
+ "type": "uri",
+ "value": "http://genenetwork.org/inbredSet_srxshrspf2"
+ },
+ "o": {
+ "type": "literal",
+ "value": "UIOWA SRxSHRSP F2"
+ }
+ },
+ ...
+```
+
+For more information see
+
+=> ./virtuoso.gmi Virtuoso setup documentation
diff --git a/topics/systems/virtuoso.gmi b/topics/systems/virtuoso.gmi
index 3f608b5..bdfd14e 100644
--- a/topics/systems/virtuoso.gmi
+++ b/topics/systems/virtuoso.gmi
@@ -134,7 +134,7 @@ We recap the same here.
When uploading data, the virtuoso server often does not report errors properly. It simply freezes up. So, it is very helpful to validate your RDF before uploading. For this, use rapper from the raptor2 package. To validate data.ttl, a turtle file, run
```
rapper --input turtle --count data.ttl
-rapper: Parsing URI file:///home/wrk/dump.ttl with parser turtle
+rapper: Parsing URI file: data.ttl with parser turtle
rapper: Parsing returned 652395 triples
```
Then, upload it to a virtuoso SPARQL endpoint running at port 8892