Public | Automated Build

Last pushed: 5 months ago
Short Description
blazegraph
Full Description

BlazeGraph 2.1.4 + Java 8 (1.8.0_141) JRE server + Maven 3.5.0 + Python 3.5.2

Components:

  • BlazeGraph 2.1.4 service at http://<server_ip:9999>/
  • Java 8 (1.8.0_141) JRE server + Maven 3.5.0 + Python 3.5.2
  • Other tools: git wget unzip vim python python-setuptools python-dev python-numpy

Pull the image from Docker Repository

docker pull openkbs/blazegraph

Base the image to build add-on components

FROM openkbs/blazegraph

Run the image

Then, you're ready to run :
Make sure you create your work directory, e.g., /data

mkdir ./data
docker run -d --name my-blazegraph -v $PWD/data:/data -i -t openkbs/blazegraph

Build and Run your own image

Say, you will build the image "my/blazegraph".

docker build -t my/blazegraph .

To run your own image, say, with some-blazegraph:

mkdir ./data
docker run -d --name some-blazegraph -v $PWD/data:/data -i -t my/blazegraph

Shell into the Docker instance

docker exec -it some-blazegraph /bin/bash

Run Blazegraph web, sparql, REST

For more information, please visit: https://wiki.blazegraph.com/wiki/index.php/NanoSparqlServer

Web UI:

Web UI: http://<ip_address>:9999/

For SPARQL Endpoint, see more at https://wiki.blazegraph.com/wiki/index.php/REST_API#SPARQL_End_Point

SPARQL UI: http://<ip_address>:9999/bigdata

Run Python code

To run Python code

docker run --rm openkbs/blazegraph python -c 'print("Hello World")'

or,

mkdir ./data
echo "print('Hello World')" > ./data/myPyScript.py
docker run -it --rm --name some-blazegraph -v "$PWD"/data:/data openkbs/blazegraph python myPyScript.py

or,

alias dpy='docker run --rm openkbs/blazegraph python'
dpy -c 'print("Hello World")'
Docker Pull Command
Owner
openkbs
Source Repository