Skip to content

Simple *READ-ONLY* Sparql Endpoint Based on RDF4J, Ontop and Sparjava

License

Notifications You must be signed in to change notification settings

riccardotommasini/sse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple SPARQL Endpoint

A simple endpoint to expose RDF4J SPARQL repository without to much hustle

Usage


SSE allows you to deploy a RDF4J SPARQL repository using either native RDF data or a relational database and Ontop.

Build with maven

maven package

Native Mode

java -jar target/sse-1.0.jar file.properties

An es of properties file for the native mode is

server.name=lite
server.port=8080

base.url=http://example.org/base
file.location=src/main/resources/data.lite.ttl
file.format=ttl
named.graph=default

Virtual Mode

java -jar target/sse-1.0.jar --virtual file.properties

The virtual mode requires to point the properties file required by Ontop.

server.name=lite
server.port=8080

base.url=http://example.org/base

ontop.properties=src/main/resources/postgres.properties
ontop.owl=src/main/resources/citybench.owl
ontop.obda=src/main/resources/citybench-traffic.obda

Docker

docker build -t sse .
docker run -p —name sse-running 8080:8080 sse

Tests


I tested the service with sparql-client and SPARQLWrapper.

To run the javascript tests NPM is requried

npm install sparql-client
node app.js

To run the python test using python 3

pip install SPARQLWrapper, rdflib-jsonld
python SPARQLWrapperTestSelect.py 
python SPARQLWrapperTestConstruct.py

About

Simple *READ-ONLY* Sparql Endpoint Based on RDF4J, Ontop and Sparjava

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages