summaryrefslogtreecommitdiff
path: root/topics/systems/update-production-tux01.gmi
blob: 729ff8a04dfd96c5f18f548184e77bf52e53a544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Update production

In this document we describe the specific steps required to update production.

See also

=> gn-services.gmi

# 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