This file contains 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
// 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: |
This file contains 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
// 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 |