Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ReST API for a Jena SPARQL Store
Java

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
src
.classpath
.hgignore
.hgtags
.project
README.markdown
config.ini
example.ini
license.txt
pom.xml

README.markdown

Tenuki

A SPARQL 1.1 Uniform HTTP Protocol for Managing RDF Graphs server.

Usage

Graph listing

> GET /graphs HTTP/1.1
> Host: localhost:6060
> Accept: text/uri-list
> 
< HTTP/1.1 200 OK
< Content-Type: text/uri-list
example

Graph Manipulation

GET

> GET /graphs/example HTTP/1.1
> Host: localhost:6060
> Accept: text/turtle, text/plain, text/rdf+n3, application/rdf+xml
> 
< HTTP/1.1 200 OK
< Content-Type: text/turtle
< 
<http://example/s>
      <http://example/p> <http://example/o2> , <http://example/o> .

Or using indirect (query param)

> GET /graphs?graph=example HTTP/1.1
> Host: localhost:6060
> Accept: text/turtle, text/plain, text/rdf+n3, application/rdf+xml
> 
< HTTP/1.1 200 OK
< Content-Type: text/turtle
< 
<http://example/s>
      <http://example/p> <http://example/o2> , <http://example/o> .

Building Tenuki

Tenuki requires Apache Maven 2.x to build.

Getting SDB 1.3.3-patch-011411

If SDB has not yet had a snapshot release that contains bug fixes needed for Tenuki to run. You will need to checkout sdb-trunk, and apply the patches patch patch and build (ant jar) SDB.

Build complete jar with dependencies

mvn package

Running Tenuki

  1. Create PostgreSQL user named sdb with password changemeplease
  2. Create PostgreSQL database with name sdb_example
  3. Run: java -jar tenuki-0.4.jar --create example.ini
  4. Visit [http://localhost:6060/] with your browser
Something went wrong with that request. Please try again.