A simple and lightweight flask app to host your RDF graphs over a SPARQL Endpoint inspired from rdflib-web
- Any input format of graph supported (see below)
- Tried and Tested with popular sparqlclients
- Run natively or using docker
- Works for python3
The following graph formats are supported: html, hturtle, mdata, microdata, n3, nquads, nt, rdfa, rdfa1.0, trix, turtle/ttl, xml.
Once you start your server using the below methods, your sparql endpoint will be available at http:127.0.01:5001/sparql and also your host address.
You will have to set two environment variables:
GRAPH_FILEas path to your rdf file.GRAPH_FORMATas format of your rdf file.
Then run the following commands.
pip install -r requirement.txt
python3 graph.py docker build -t sparqlserver .
docker run -d -p 5001:5001 -e GRAPH_FILE=`path_to_your_rdf_file` -e GRAPH_FORMAT=`format_of_rdf_file` sparqlserver