This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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" } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_2 | |
mediaType: [ application/json, application/xml ] | |
types: | |
User: | |
properties: | |
id: string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_1 | |
mediaType: [ application/json, application/xml ] | |
types: | |
User: | |
properties: | |
id: string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%raml 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_0 | |
mediaType: application/json | |
/usersServiceCreate: | |
description: Creates a users | |
post: | |
body: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |