
Data Structures | |
| struct | VOLK_DataSet |
| RDF Dataset type. More... | |
Macros | |
| #define | VOLK_data_set_new_from_store(...) |
| Non-transactional version of VOLK_data_set_new_from_store_txn(). | |
Functions | |
| VOLK_rc | VOLK_data_set_add (VOLK_DataSet *ds, const VOLK_Graph *gr) |
| Add graphs to the data set. | |
| bool | VOLK_data_set_contains (VOLK_DataSet *ds, const VOLK_Graph *gr) |
| Check if a graph is in a data set. | |
| void | VOLK_data_set_free (VOLK_DataSet *ds) |
| Free a data set handle. | |
| VOLK_DataSet * | VOLK_data_set_new (VOLK_Store *store) |
| Create an empty data set. | |
| VOLK_DataSet * | VOLK_data_set_new_copy (VOLK_DataSet *ds) |
| Duplicate a data set. | |
| VOLK_DataSet * | VOLK_data_set_new_from_store_txn (void *txn, VOLK_Store *store) |
| Create a data set populated with a whole store. | |
| VOLK_rc | VOLK_data_set_remove (VOLK_DataSet *ds, const VOLK_Graph *gr) |
| Remove graphs from the data set. | |
| size_t | VOLK_data_set_size (VOLK_DataSet *ds) |
| Number of triples in a data set. | |
A data set is a set of RDF graphs, backed by a context-aware store. All graphs in a data set belong to the same store.
The data set is not synchronized with changes in the backing store, so that if a graph contained in a data set is deleted from the store, its reference remains in the data set.
| #define VOLK_data_set_new_from_store | ( | ... | ) |
Non-transactional version of VOLK_data_set_new_from_store_txn().
Definition at line 57 of file data_set.h.
|
inline |
Add graphs to the data set.
| [in] | ds | Dataset to add to. |
| [in] | gr | Graph to add. It must be in the same store as the data set. |
Definition at line 92 of file data_set.h.
|
inline |
Check if a graph is in a data set.
| [in] | ds | Dataset to check. |
| [in] | gr | Graph to search for. |
Definition at line 132 of file data_set.h.
| void VOLK_data_set_free | ( | VOLK_DataSet * | ds | ) |
Free a data set handle.
Note that this destroys the graph hash map, but NOT the graphs, which remain in the store.
| [in] | ds | Dataset handle. |
Definition at line 77 of file data_set.c.
| VOLK_DataSet * VOLK_data_set_new | ( | VOLK_Store * | store | ) |
Create an empty data set.
| [in] | store | Store handle for the graphs in the data set. The store MUST support the VOLK_STORE_CTX feature. |
Definition at line 5 of file data_set.c.
| VOLK_DataSet * VOLK_data_set_new_copy | ( | VOLK_DataSet * | ds | ) |
Duplicate a data set.
| [in] | ds | Source data set. |
Definition at line 56 of file data_set.c.
| VOLK_DataSet * VOLK_data_set_new_from_store_txn | ( | void * | txn, |
| VOLK_Store * | store ) |
Create a data set populated with a whole store.
| [in] | txn | Open, read-write transaction handle. If NULL, a new transaction is opened and closed within the function call. |
| [in] | store | Store handle for the graphs in the data set. The store MUST support the VOLK_STORE_CTX feature. |
Definition at line 18 of file data_set.c.
|
inline |
Remove graphs from the data set.
| [in] | ds | Dataset to remove from. |
| [in] | gr | Graph to remove. |
Definition at line 111 of file data_set.h.
| size_t VOLK_data_set_size | ( | VOLK_DataSet * | ds | ) |
Number of triples in a data set.
| [in] | ds | Dataset to measure. |
Definition at line 85 of file data_set.c.