[][src]Trait grdf::SizedDataset

pub trait SizedDataset<T = Term>: Dataset<T> + Sized where
    Self::Graph: SizedGraph<T>, 
{ type IntoGraphs: Iterator<Item = (Option<T>, Self::Graph)>; type IntoQuads: Iterator<Item = Quad<T>>; pub fn into_graph(self, id: Option<&T>) -> Option<Self::Graph>;
pub fn into_graphs(self) -> Self::IntoGraphs;
pub fn into_quads(self) -> Self::IntoQuads; pub fn into_default_graph(self) -> Self::Graph { ... }
pub fn subjects(
        self,
        id: Option<&T>
    ) -> Option<<Self::Graph as SizedGraph<T>>::IntoSubjects> { ... }
pub fn predicates(
        self,
        id: Option<&T>,
        subject: &T
    ) -> Option<<Self::Graph as SizedGraph<T>>::IntoPredicates> { ... }
pub fn objects(
        self,
        id: Option<&T>,
        subject: &T,
        predicate: &T
    ) -> Option<<Self::Graph as SizedGraph<T>>::IntoObjects> { ... } }

Sized gRDF dataset that can be converted into iterators.

Associated Types

type IntoGraphs: Iterator<Item = (Option<T>, Self::Graph)>[src]

Consuming graphs iterator.

type IntoQuads: Iterator<Item = Quad<T>>[src]

Consuming quads iterator.

Loading content...

Required methods

pub fn into_graph(self, id: Option<&T>) -> Option<Self::Graph>[src]

Consumes the dataset and returns the given graph.

pub fn into_graphs(self) -> Self::IntoGraphs[src]

Consumes the dataset and returns an iterator over its graphs.

pub fn into_quads(self) -> Self::IntoQuads[src]

Consumes the dataset and returns an iterator over its quads.

Loading content...

Provided methods

pub fn into_default_graph(self) -> Self::Graph[src]

Consumes the dataset and returns the default graph.

pub fn subjects(
    self,
    id: Option<&T>
) -> Option<<Self::Graph as SizedGraph<T>>::IntoSubjects>
[src]

Consumes the dataset and returns an iterator over the subjects of the given graph.

pub fn predicates(
    self,
    id: Option<&T>,
    subject: &T
) -> Option<<Self::Graph as SizedGraph<T>>::IntoPredicates>
[src]

Consumes the dataset and returns an iterator over the predicates of the given subject of the given graph.

pub fn objects(
    self,
    id: Option<&T>,
    subject: &T,
    predicate: &T
) -> Option<<Self::Graph as SizedGraph<T>>::IntoObjects>
[src]

Consumes the dataset and returns an iterator over the objects of the given subject and predicate of the given graph.

Loading content...

Implementors

impl<T: 'static + Clone + Hash + Eq> SizedDataset<T> for HashDataset<T>[src]

type IntoGraphs = IntoGraphs<T>

type IntoQuads = IntoQuads<T>

Loading content...