Trait rdftk_core::data_set::DataSetFactory[][src]

pub trait DataSetFactory {
    fn new_data_set(&self, default_graph: Option<GraphRef>) -> DataSetRef;

    fn data_set_from(
        &self,
        default_graph: Option<GraphRef>,
        graphs: HashMap<GraphNameRef, GraphRef>
    ) -> DataSetRef { ... } }
Expand description

A data set factory provides an interface to create a new data set. This allows for implementations where underlying shared resources are required and so may be owned by the factory.

Required methods

fn new_data_set(&self, default_graph: Option<GraphRef>) -> DataSetRef[src]

Create a new graph instance.

Provided methods

fn data_set_from(
    &self,
    default_graph: Option<GraphRef>,
    graphs: HashMap<GraphNameRef, GraphRef>
) -> DataSetRef
[src]

Create a new graph instance from the given statements and prefix mappings.

Implementors