|
1 | 1 |  |
2 | 2 |
|
3 | 3 | # sdaas-rdfstore |
4 | | -A dockerized blazegraph instance certified for sdaas |
5 | | - |
6 | | -The sdaas-rdfstore requires [docker](https://www.docker.com/) |
| 4 | +A dockerized blazegraph instance certified for sdaas. |
7 | 5 |
|
| 6 | +By default quadstore, text index and geo spatial features are enabled in the default namespace. |
8 | 7 |
|
9 | | -## Build local image |
| 8 | +The sdaas-rdfstore requires [docker](https://www.docker.com/) |
10 | 9 |
|
11 | | - docker build -t sdaas-rdfstore . |
12 | 10 |
|
13 | | -## Smoke tests |
| 11 | +### 🚀 Quickstart |
14 | 12 |
|
15 | | -*Note on windows user: define `export MSYS_NO_PATHCONV=1` to avoid unwanted path conversion [see this note](https://stackoverflow.com/questions/7250130/how-to-stop-mingw-and-msys-from-mangling-path-names-given-at-the-command-line#34386471)* |
16 | | - |
17 | | -```bash |
18 | | -docker run -d --name rdfstore -p 8080:8080 sdaas-rdfstore |
19 | | -sleep 10;docker exec rdfstore test -f /var/lib/rdfStore/rdfStore.jnl || echo KO |
20 | | -curl -X POST \ |
21 | | - --data-binary "LOAD <http://wifo5-03.informatik.uni-mannheim.de/benchmarks-200801/homepages-fixed.nt.gz>" \ |
22 | | - --header "Content-Type: application/sparql-update" \ |
23 | | - http://localhost:8080/sdaas/sparql || echo KO |
| 13 | +``` |
| 14 | +docker compose up -d --build |
| 15 | +sleep 3 |
| 16 | +curl -X POST --data-binary "ASK {}" --header "Content-Type: application/sparql-query" http://localhost/sdaas/sparql |
| 17 | +# should result true |
| 18 | +curl -X POST --data-binary "LOAD <http://lp/data/milan.ttl>" --header "Content-Type: application/sparql-update" http://localhost/sdaas/sparql |
| 19 | +# should result in mutationCount=28036 |
24 | 20 | ``` |
25 | 21 |
|
| 22 | + |
26 | 23 | Test workbench: |
27 | 24 |
|
28 | | -- point browser to http://localhost:8080/sdaas to see workbench interface |
29 | | -- in the UPDATE tab, tray executing: `DROP ALL; LOAD <http://wifo5-03.informatik.uni-mannheim.de/benchmarks-200801/homepages-fixed.nt.gz>` |
30 | | -- free docker resource typing `docker rm -f rdfstore` |
| 25 | +- point browser to http://localhost/sdaas to see workbench interface |
| 26 | +- in the UPDATE tab, tray executing: `DROP ALL; LOAD <http://lp/data/lecco.ttl> INTO GRAPH <urn:graph:test>`. You should read `mutationCount=29241` |
| 27 | +- in the QUERY tab, tray executing: `SELECT (COUNT(*) as ?n) {?s?p?o}`. You should read `1205` for "n" variable |
| 28 | +- free docker resource typing `docker compose down` |
31 | 29 |
|
32 | 30 | ## sdaas-start options |
33 | 31 |
|
34 | 32 | To print sdaas-start usage: `docker run --rm -t sdaas-rdfstore --help` |
35 | 33 |
|
36 | 34 | Smart Data as a Service (SDaaS) knowledge graph engine |
37 | | - Copyright (C) 2018-2020 http://linkeddata.center/ |
| 35 | + Copyright (C) 2018-2024 http://linkeddata.center/ |
38 | 36 |
|
39 | 37 | startup options: |
40 | 38 |
|
@@ -72,11 +70,15 @@ To persist data and improve performances, you should mount as a fast volume the |
72 | 70 |
|
73 | 71 | To push a new docker image to docker hub: |
74 | 72 |
|
75 | | -```bash |
76 | | -docker login |
77 | | -docker build -t linkeddatacenter/sdaas-rdfstore . |
78 | | -docker tag linkeddatacenter/sdaas-rdfstore linkeddatacenter/sdaas-rdfstore:2.1.5 |
79 | | -docker push linkeddatacenter/sdaas-rdfstore |
80 | | -docker push linkeddatacenter/sdaas-rdfstore:2.1.5 |
81 | 73 | ``` |
82 | | - |
| 74 | +docker login |
| 75 | +NAME="linkeddatacenter/sdaas-rdfstore" MAJOR="2" MINOR="2" PATCH="0" |
| 76 | +docker build -t $NAME:$MAJOR.$MINOR.$PATCH . |
| 77 | +docker tag $NAME:$MAJOR.$MINOR.$PATCH $NAME:$MAJOR.$MINOR |
| 78 | +docker tag $NAME:$MAJOR.$MINOR.$PATCH $NAME:$MAJOR |
| 79 | +docker tag $NAME:$MAJOR.$MINOR.$PATCH $NAME:latest |
| 80 | +docker push $NAME:$MAJOR.$MINOR.$PATCH |
| 81 | +docker push $NAME:$MAJOR.$MINOR |
| 82 | +docker push $NAME:$MAJOR |
| 83 | +docker push $NAME:latest |
| 84 | +``` |
0 commit comments