Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suryatejreddy/sparql-endpoint
A simple and lightweight flask app to host your RDF graphs over a SPARQL Endpoint.
https://github.com/suryatejreddy/sparql-endpoint
rdf rdf-graphs semantic-web sparql
Last synced: 1 day ago
JSON representation
A simple and lightweight flask app to host your RDF graphs over a SPARQL Endpoint.
- Host: GitHub
- URL: https://github.com/suryatejreddy/sparql-endpoint
- Owner: suryatejreddy
- License: other
- Created: 2020-05-28T21:00:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:03:22.000Z (about 2 years ago)
- Last Synced: 2023-03-09T12:50:58.755Z (almost 2 years ago)
- Topics: rdf, rdf-graphs, semantic-web, sparql
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SPARQL-Endpoint
A simple and lightweight flask app to host your RDF graphs over a SPARQL Endpoint inspired from [rdflib-web](http://https://github.com/RDFLib/rdflib-web.com)
- Any input format of graph supported (see below)
- Tried and Tested with popular sparqlclients
- [SPARQL-wrapper (python)](https://github.com/RDFLib/sparqlwrapper)
- [Apache JENA Fuseki (ruby)](https://jena.apache.org/documentation/fuseki2/soh.html)
- Run natively or using docker
- Works for python3## Graph Formats
The following graph formats are supported: `html`, `hturtle`, `mdata`, `microdata`, `n3`, `nquads`, `nt`, `rdfa`, `rdfa1.0`, `trix`, `turtle/ttl`, `xml`.## Starting the Server
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.### Running Natively
You will have to set two environment variables:
- `GRAPH_FILE` as path to your rdf file.
- `GRAPH_FORMAT` as format of your rdf file.Then run the following commands.
```bash
pip install -r requirement.txt
python3 graph.py
```### Running using Docker
```bash
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
```