[−][src]Trait grdf::SizedDataset
Sized gRDF dataset that can be converted into iterators.
Associated Types
type IntoGraphs: Iterator<Item = (Option<T>, Self::Graph)>
Consuming graphs iterator.
type IntoQuads: Iterator<Item = Quad<T>>
Consuming quads iterator.
Required methods
fn into_graph(self, id: Option<&T>) -> Option<Self::Graph>
Consumes the dataset and returns the given graph.
fn into_graphs(self) -> Self::IntoGraphs
Consumes the dataset and returns an iterator over its graphs.
fn into_quads(self) -> Self::IntoQuads
Consumes the dataset and returns an iterator over its quads.
Provided methods
fn into_default_graph(self) -> Self::Graph
Consumes the dataset and returns the default graph.
fn subjects(
self,
id: Option<&T>
) -> Option<<Self::Graph as SizedGraph<T>>::IntoSubjects>
self,
id: Option<&T>
) -> Option<<Self::Graph as SizedGraph<T>>::IntoSubjects>
Consumes the dataset and returns an iterator over the subjects of the given graph.
fn predicates(
self,
id: Option<&T>,
subject: &T
) -> Option<<Self::Graph as SizedGraph<T>>::IntoPredicates>
self,
id: Option<&T>,
subject: &T
) -> Option<<Self::Graph as SizedGraph<T>>::IntoPredicates>
Consumes the dataset and returns an iterator over the predicates of the given subject of the given graph.
fn objects(
self,
id: Option<&T>,
subject: &T,
predicate: &T
) -> Option<<Self::Graph as SizedGraph<T>>::IntoObjects>
self,
id: Option<&T>,
subject: &T,
predicate: &T
) -> Option<<Self::Graph as SizedGraph<T>>::IntoObjects>
Consumes the dataset and returns an iterator over the objects of the given subject and predicate of the given graph.