Skip to content

Instantly share code, notes, and snippets.

{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_3/users/1/todos/1",
"title": "Test",
"description": "Test TODO",
"user": { "@id": "http://todosapp.com/api/version_3/users/1" }
}
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_4/users/1#self",
"name": "John Doo",
"email": "[email protected]",
"todos": {
"@id": "http://todosapp.com/api/version_4/todos#self",
"operations": [
{
"method": "GET",
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_4/users/1#self",
"name": "John Doo",
"email": "[email protected]",
"todos": {
"@id": "http://todosapp.com/api/version_4/todos#self",
"operations": [
{
"method": "GET",
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_3
mediaType: [ application/ld+json, application/json, application/xml ]
types:
URI: string
Link:
properties:
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_2
mediaType: [ application/json, application/xml ]
types:
User:
properties:
id: string
#%RAML 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_1
mediaType: [ application/json, application/xml ]
types:
User:
properties:
id: string
#%raml 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_0
mediaType: application/json
/usersServiceCreate:
description: Creates a users
post:
body:
var fs = require('fs');
var rdfstore = require('rdfstore');
// NOTE: rdfstore-js doesn't support RDF/XML parsing at the moment
rdfstore.create(function (err, store) {
if (err) { /* error handling */ }
var rdfEnv = store.rdf;
RDFInterfaces = require('./src/rdf_model');
var RdfstoreStore = function (options) {
if (options == null) {
options = {};
}
var self = this;
this.graph = function (iri, callback) {
self.graph = new RDFInterfaces.Graph();
RDFInterfaces = require('./src/rdf_model');
var RdfstoreStore = function (options) {
if (options == null) {
options = {};
}
var self = this;
this.graph = function (iri, callback) {
self.graph = new RDFInterfaces.Graph();