A dockerized blazegraph instance certified for sdaas.
By default quadstore, text index and geo spatial features are enabled in the default namespace.
The sdaas-rdfstore requires docker
docker compose up -d --build
sleep 3
curl -X POST --data-binary "ASK {}" --header "Content-Type: application/sparql-query" http://localhost/sdaas/sparql
# should result true
curl -X POST --data-binary "LOAD <http://lp/data/milan.ttl>" --header "Content-Type: application/sparql-update" http://localhost/sdaas/sparql
# should result in mutationCount=28036
Test workbench:
- point browser to http://localhost/sdaas to see workbench interface
- in the UPDATE tab, tray executing:
DROP ALL; LOAD <http://lp/data/lecco.ttl> INTO GRAPH <urn:graph:test>
. You should readmutationCount=29241
- in the QUERY tab, tray executing:
SELECT (COUNT(*) as ?n) {?s?p?o}
. You should read1205
for "n" variable - free docker resource typing
docker compose down
To print sdaas-start usage: docker run --rm -t sdaas-rdfstore --help
Smart Data as a Service (SDaaS) knowledge graph engine
Copyright (C) 2018-2024 http://linkeddata.center/
startup options:
-d, --background
execute the platform as a daemon
--readonly
disallow mutations in graph database
--size micro|small|medium|large|xlarge|xxlarge|custom
memory footprints and performances related to size:
size value | required RAM | edges (triples) |
---|---|---|
micro (default) | 512M | <200K |
small | 2GB | <5M |
medium | 4GB | <10M |
large | 8GB | <50M |
xlarge | 16GB | <100M |
xxlarge | 32GB | <500M |
custom | depends |
The micro size is suitable for test and development environment.
The custom size let to you setting up proper configurations, see https://github.com/blazegraph/database/wiki/Hardware_Configuration
To persist data and improve performances, you should mount as a fast volume the directory /var/lib/rdfStore
To push a new docker image to docker hub:
# docker login
# docker buildx create --name multi-arch-builder
NAME="linkeddatacenter/sdaas-rdfstore" MAJOR="2" MINOR="2" PATCH="1"
docker buildx build --builder multi-arch-builder --platform linux/arm64,linux/amd64 --build-arg MODE=prod --push -t $NAME:$MAJOR.$MINOR.$PATCH .
Copyright (C) 2018-2024 LinkedData.Center SRL
- All Rights Reserved
Permission to copy and modify is granted under the MIT license