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
jQuery(document).ready(function(){ | |
rdfstore.create({"communication": { | |
"parsers": { | |
"text/html" : DBWidgets.RDFaParser, | |
"application/rdf+xml": DBWidgets.RDFParser | |
}, | |
"precedences": ["text/n3", "text/turtle", "application/rdf+xml", "text/html", "application/json"] } | |
}, | |
function(store) { |
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
“Mario, what do you get when you cross an insomniac, an unwilling agnostic and a dyslexic?" | |
"I give." | |
"You get someone who stays up all night torturing himself mentally over the question of whether or not there's a dog.” |
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
*** RESULTS (150 runs, 10MBs input data, 103030 triples): | |
* n3 avg: 3202.9066666666668, stdev: 177.66340797259988 | |
* rvn3 avg: 1241.44, stdev: 35.52718592285794 | |
=> 61.24020681214564 % improvement |
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(); |
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
#%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
#%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_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_3 | |
mediaType: [ application/ld+json, application/json, application/xml ] | |
types: | |
URI: string | |
Link: | |
properties: |