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
(gdb) r | |
Starting program: /home/***/work/RedlandStorage/Debug/RedlandStorage -q query.rq | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
s,p | |
librdf info - Created SQL statement #160 -- result columns must match as in enum idx_triple_column_t | |
SELECT | |
-- all *_id (hashes): | |
id | |
,s_uri_id |
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
Compile: | |
g++ -std=c++0x -I/usr/include/raptor2 -I/usr/include/rasqal -O0 -g3 -Wall -c -fmessage-length=0 -o "main.o" "../main.cpp" | |
Link: | |
g++ -o "RedlandStorage" ... main.o ... obj files ... -lsqlite3 -lrdf -lpthread | |
Run: | |
./RedlandStorage -q query.rq |
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
/* | |
* test-sparql1.c - run SPARQL query against a librdf.sqlite model | |
* | |
* created for librdf.sqlite issue #17, https://github.com/mro/librdf.sqlite/issues/17 | |
* | |
* compile: | |
* gcc -I/usr/include/raptor2 -I/usr/include/rasqal -lrdf -lsqlite3 -o "test-sparql1" "test-sparql1.c" | |
*/ | |
#include <stdio.h> | |
#include "rdf_storage_sqlite_mro.c" |