Trait rdftk_core::data_set::MutableDataSet[][src]

pub trait MutableDataSet<'a, G: 'a>: DataSet<'a, G> where
    G: Graph<'a>, 
{ fn set_default_graph(&mut self, graph: G);
fn unset_default_graph(&mut self);
fn insert(&mut self, name: GraphNameRef, graph: G);
fn remove(&mut self, name: &GraphNameRef);
fn clear(&mut self); }
Expand description

This trait provides the set of common mutation operations on a data set.

Required methods

fn set_default_graph(&mut self, graph: G)[src]

Expand description

Set the provided graph as the default, unnamed graph, for this data set. Only one graph may be the default.

fn unset_default_graph(&mut self)[src]

Expand description

Remove any graph that may be set as the current default. This operation has no effect if no default graph is present.

fn insert(&mut self, name: GraphNameRef, graph: G)[src]

Expand description

Insert a new graph with it’s associated name into the data set.

fn remove(&mut self, name: &GraphNameRef)[src]

Expand description

Remove the graph with the provided name from this data set. This operation has no effect if no such graph is present.

fn clear(&mut self)[src]

Expand description

Remove all graphs from this data set.

Loading content...

Implementors

Loading content...