Sunday, December 4, 2011

New access methog for triple tables

int local_handler(TRIPLE t) {
sprintf(buffer + strlen(buffer)," %s ,",t.key);
}
extern PGRAPH schema_graph;
int bind_schema(sqlite3_stmt *stmt,TRIPLE top) {
PGRAPH g = some_graph;
g->row = g->start;
index = 0;
statue = triple(g->pop_triple,local_handler);
}

I can call the machine to pop triples until the end of the segment, and my local handler will get them all. Helps out in managing a confluencs of triple streams.

No comments: