Struct rdftk_memgraph::data_set::MemDataSet [−][src]
pub struct MemDataSet { /* fields omitted */ }
Expand description
This implementation of the core DataSet
and MutableDataSet
traits is a simple in-memory hash
from graph name to a MemGraph
implementation.
Trait Implementations
impl DataSet for MemDataSet
[src]
impl DataSet for MemDataSet
[src]fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
[src]Returns true
if there are no graphs in this data set, else false
. Read more
fn has_default_graph(&self) -> bool
[src]
fn has_default_graph(&self) -> bool
[src]Return true
if this data set has a default graph, else false
. Read more
fn default_graph(&self) -> Option<&GraphRef>
[src]
fn default_graph(&self) -> Option<&GraphRef>
[src]Return the default graph for this data set, if it exists. Read more
fn has_graph_named(&self, name: &GraphNameRef) -> bool
[src]
fn has_graph_named(&self, name: &GraphNameRef) -> bool
[src]Return true
if this data set has a graph with the provided name, else false
. Read more
fn graph_named(&self, name: &GraphNameRef) -> Option<&GraphRef>
[src]
fn graph_named(&self, name: &GraphNameRef) -> Option<&GraphRef>
[src]Return the graph with the provided name from this data set, if it exists. Read more
fn graphs<'a>(
&'a self
) -> Box<dyn Iterator<Item = (&'a GraphNameRef, &'a GraphRef)> + 'a>
[src]
fn graphs<'a>(
&'a self
) -> Box<dyn Iterator<Item = (&'a GraphNameRef, &'a GraphRef)> + 'a>
[src]Return an iterator over graph name/graph pairs. Read more
fn set_default_graph(&mut self, graph: GraphRef)
[src]
fn set_default_graph(&mut self, graph: GraphRef)
[src]Set the provided graph as the default, unnamed graph, for this data set. Only one graph may be the default. Read more
fn unset_default_graph(&mut self)
[src]
fn unset_default_graph(&mut self)
[src]Remove any graph that may be set as the current default. This operation has no effect if no default graph is present. Read more
fn insert(&mut self, name: GraphNameRef, graph: GraphRef)
[src]
fn insert(&mut self, name: GraphNameRef, graph: GraphRef)
[src]Insert a new graph with it’s associated name into the data set. Read more
fn remove(&mut self, name: &GraphNameRef)
[src]
fn remove(&mut self, name: &GraphNameRef)
[src]Remove the graph with the provided name from this data set. This operation has no effect if no such graph is present. Read more
fn factory(&self) -> DataSetFactoryRef
[src]
fn factory(&self) -> DataSetFactoryRef
[src]Return the factory that creates data sets of this kind. Read more
impl Featured for MemDataSet
[src]
impl Featured for MemDataSet
[src]fn supports_feature(&self, _feature: &IRIRef) -> bool
[src]
fn supports_feature(&self, _feature: &IRIRef) -> bool
[src]Return true if this instance, or factory, supports the feature identified by the IRI. Read more