Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
store_htable.h File Reference

Simple in-memory triple store back end based on hash tables. More...

#include "hashmap.h"
#include "volksdata/store_interface.h"
Include dependency graph for store_htable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const VOLK_StoreInt htstore_int

Detailed Description

Simple in-memory triple store back end based on hash tables.

This is the simplest choice to do in-memory manipulation of RDF graphs and it has some limitations: most notably, it only supports triples without context (one graph per store) and it is not indexed. This means that it is optimized for fast writes and sequential lookups (iteration). Lookups on arbitrary terms are supported but require iterating over all the triples. This implementation is most convenient for graphs where retrieval is done via iteration.

Also, as it may be obvious, this store is not persistent.

For faster random lookups and persistence, the MDB backend is preferred. If persistence is not required (e.g. ingesting and manipulating a very large graph and outputting some results on a file) an ad-hoc MDB store located in RAM disk can be used, which is much faster.

Definition in file store_htable.h.

Variable Documentation

◆ htstore_int

const VOLK_StoreInt htstore_int
extern

Definition at line 454 of file store_htable.c.