[][src]Struct sophia::dataset::adapter::DatasetGraph

pub struct DatasetGraph<D: ?Sized, E, M: GraphNameMatcher> { /* fields omitted */ }

The adapter returned by Dataset::union_graph

Trait Implementations

impl<'a, D: ?Sized, E, M> Graph<'a> for DatasetGraph<D, E, M> where
    D: Dataset<'a>,
    E: Borrow<D>,
    M: GraphNameMatcher
[src]

type Triple = QuadAsTriple<D::Quad>

The type of Triples that the methods of this graph will yield. Read more

type Error = D::Error

The error type that this graph may raise. Read more

fn contains<T, U, V>(
    &'a self,
    s: &'a Term<T>,
    p: &'a Term<U>,
    o: &'a Term<V>
) -> GResult<'a, Self, bool> where
    T: TermData,
    U: TermData,
    V: TermData
[src]

Return true if this graph contains the given triple.

fn triples_matching<S: ?Sized, P: ?Sized, O: ?Sized>(
    &'a self,
    ms: &'a S,
    mp: &'a P,
    mo: &'a O
) -> GTripleSource<'a, Self> where
    S: TermMatcher,
    P: TermMatcher,
    O: TermMatcher
[src]

An iterator visiting all triples matching the given subject, predicate and object. Read more

fn subjects(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the terms used as subject in this Graph.

fn predicates(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the terms used as predicate in this Graph.

fn objects(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the terms used as object in this Graph.

fn iris(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the IRIs used in this Graph.

fn bnodes(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the BNodes used in this Graph.

fn literals(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the Literals used in this Graph.

fn variables(&'a self) -> GResultTermSet<'a, Self>[src]

Build a Hashset of all the variables used in this Graph.

fn borrow_as_dataset(&self) -> GraphAsDataset<Self, &Self>[src]

Dataset adapter borrowing this graph

fn borrow_mut_as_dataset(&mut self) -> GraphAsDataset<Self, &mut Self>[src]

Dataset adapter borrowing this graph mutably

fn as_dataset(self) -> GraphAsDataset<Self, Self> where
    Self: Sized
[src]

Dataset adapter taking ownership of this graph

impl<D, E, F> MutableGraph for DatasetGraph<D, E, Option<Term<F>>> where
    D: MutableDataset,
    E: BorrowMut<D>,
    F: TermData
[src]

type MutationError = D::MutationError

The error type that this graph may raise during mutations. Read more

fn inserter(&mut self) -> Inserter<Self>[src]

Return a TripleSink that will insert into this graph all the triples it receives. Read more

fn insert_all<'a, TS>(
    &mut self,
    src: &mut TS
) -> CoercedResult<usize, TS::Error, Self::MutationError> where
    TS: TripleSource<'a>,
    TS::Error: CoercibleWith<Self::MutationError>, 
[src]

Insert into this graph all triples from the given source.

fn remover(&mut self) -> Remover<Self>[src]

Return a TripleSink that will remove from this graph all the triples it receives. Read more

fn remove_all<'a, TS>(
    &mut self,
    src: &mut TS
) -> CoercedResult<usize, TS::Error, Self::MutationError> where
    TS: TripleSource<'a>,
    TS::Error: CoercibleWith<Self::MutationError>, 
[src]

Remove from this graph all triples from the given source.

fn remove_matching<S: ?Sized, P: ?Sized, O: ?Sized>(
    &mut self,
    ms: &S,
    mp: &P,
    mo: &O
) -> MGResult<Self, usize> where
    S: TermMatcher,
    P: TermMatcher,
    O: TermMatcher,
    Self::Error: Into<Self::MutationError>,
    Never: CoercibleWith<Self::MutationError>,
    Self::MutationError: From<CoercedError<Never, Self::MutationError>>, 
[src]

Remove all triples matching the given matchers. Read more

fn retain<S: ?Sized, P: ?Sized, O: ?Sized>(
    &mut self,
    ms: &S,
    mp: &P,
    mo: &O
) -> MGResult<Self, ()> where
    S: TermMatcher,
    P: TermMatcher,
    O: TermMatcher,
    Self::Error: Into<Self::MutationError>,
    Never: CoercibleWith<Self::MutationError>,
    Self::MutationError: From<CoercedError<Never, Self::MutationError>>, 
[src]

Keep only the triples matching the given matchers. Read more

impl<D, E, F> SetGraph for DatasetGraph<D, E, Option<Term<F>>> where
    D: SetDataset,
    E: Borrow<D>,
    F: TermData
[src]

Auto Trait Implementations

impl<D: ?Sized, E, M> Sync for DatasetGraph<D, E, M> where
    D: Sync,
    E: Sync,
    M: Sync

impl<D: ?Sized, E, M> Send for DatasetGraph<D, E, M> where
    D: Send,
    E: Send,
    M: Send

impl<D: ?Sized, E, M> Unpin for DatasetGraph<D, E, M> where
    D: Unpin,
    E: Unpin,
    M: Unpin

impl<D: ?Sized, E, M> RefUnwindSafe for DatasetGraph<D, E, M> where
    D: RefUnwindSafe,
    E: RefUnwindSafe,
    M: RefUnwindSafe

impl<D: ?Sized, E, M> UnwindSafe for DatasetGraph<D, E, M> where
    D: UnwindSafe,
    E: UnwindSafe,
    M: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]