owmeta_core.agg_store module

exception owmeta_core.agg_store.UnsupportedAggregateOperation[source]

Bases: Exception

Thrown for operations which modify a graph and hence are inappropriate for AggregateStore

class owmeta_core.agg_store.AggregateStore(configuration=None, identifier=None, graph_aware=None)[source]

Bases: Store

A read-only aggregate of RDFLib stores

open(configuration, create=True)[source]

Creates and opens all of the stores specified in the configuration

Also checks for all aggregated stores to be context_aware

context_aware = True

Specified by RDFLib. Required to be True for ConjunctiveGraph stores.

Aggregated stores MUST be context-aware. This is enforced by open().

graph_aware = True

Specified by RDFLib. Required to be True for Dataset stores.

The first store must be graph-aware. This is enforced by open().