Skip to content

Instantly share code, notes, and snippets.

View mro's full-sized avatar
💭
Incidentally I am of the opinion that billion-portfolios must be resocialized.

Marcus Rohrmoser mro

💭
Incidentally I am of the opinion that billion-portfolios must be resocialized.
View GitHub Profile
@mro
mro / RedlandStorage.cc
Last active October 30, 2015 23:09 — forked from rtravis/build_instructions.txt
replicate cleanup issue
// Based on https://gist.github.com/rtravis/d5a6b1b15972a8ce6d87
//
// Compile:
// $ gcc -std=c99 -D DEBUG=1 -I /usr/include/raptor2 -I /usr/include/rasqal -c -o rdf_storage_sqlite_mro.o ../rdf_storage_sqlite_mro.c
// $ g++ -std=c++0x -I/usr/include/raptor2 -I/usr/include/rasqal -O0 -g3 -Wall -c -fmessage-length=0 -o RedlandStorage.o RedlandStorage.cc
//
// Link:
// $ g++ -o RedlandStorage RedlandStorage.o rdf_storage_sqlite_mro.o -lsqlite3 -lrdf
//
// Run:
@mro
mro / loader.c
Last active October 26, 2015 11:48 — forked from abargnesi/loader.c
Load an RDF file into a SQLite database without journaling.
// see https://github.com/mro/librdf.sqlite/issues/10#issuecomment-151000843
//
// Perpare (on debian wheezy):
// $ git clone https://github.com/mro/librdf.sqlite.git
// $ cd librdf.sqlite/demo
// $ sudo apt-get install gcc librdf0-dev librdf-storage-sqlite raptor2-utils
// $ rapper --output turtle --input rdfxml http://tatort.rdf.mro.name/episodes.rdf > loader.ttl
// rapper: Parsing URI http://tatort.rdf.mro.name/episodes.rdf with parser rdfxml
// rapper: Serializing with serializer turtle
// rapper: Parsing returned 100430 triples