Skip to content

Instantly share code, notes, and snippets.

@Industrial
Created October 29, 2013 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Industrial/48fdc4cc10617586a850 to your computer and use it in GitHub Desktop.
Save Industrial/48fdc4cc10617586a850 to your computer and use it in GitHub Desktop.
What should go into <triple> ?
GET /api/rdf/:graph
Response:
[
{
subject: 'http://my.org/herp/123',
predicate: 'http://my.org/derp/merp',
object: true
},
...
], 200
POST /api/rdf/:graph
Request:
{
subject: 'http://my.org/herp/123',
predicate: 'http://my.org/derp/merp',
object: true
}
Response:
{
subject: 'http://my.org/herp/123',
predicate: 'http://my.org/derp/merp',
object: true
}, 201
GET /api/rdf/:graph/<triple>
Response:
{
subject: 'http://my.org/herp/123',
predicate: 'http://my.org/derp/merp',
object: true
}, 200
PUT /api/rdf/:graph/<triple>
Request:
{
subject: 'http://my.org/herp/123',
predicate: 'http://my.org/derp/merp',
object: false
}
Response:
null, 204
DELETE /api/rdf/:graph/<triple>
Response:
null, 204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment