Skip to content

Instantly share code, notes, and snippets.

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) {
“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.”
*** 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
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();
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;
#%raml 1.0
title: Todos Service
baseUri: http://todosapp.com/api/version_0
mediaType: application/json
/usersServiceCreate:
description: Creates a users
post:
body:
#%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_2
mediaType: [ application/json, application/xml ]
types:
User:
properties:
id: string
#%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: