Benchable Graph

class benchable_graph.BenchableGraph(store, graph_id, store_config, graph_create=False)[source]

Provides a convenient way to use a graph for benchmarks.

connect()[source]

Connect to the store.

Note

For some configurations, RDFlib will postpone the actual connection to the store until needed (when doing a graph.query() or graph.add()).

This behaviour comes from RDFbib implementation of graph.open().

close(commit_pending_transaction=True)[source]

Close a connection to a store.

Parameters:commit_pending_transaction (bool) – True if to commit pending transaction before closing, False otherwise.

Note

The graph.close() method is not implemented for SPARQL Store in RDFLib