pub struct PartialUnionGraph<D: Dataset, M: GraphNameMatcher> { /* private fields */ }
Expand description
I wrap a Dataset
as a Graph
corresponding to the union of a subset of its graphs,
determined by a GraphNameMatcher
.
Implementations§
Trait Implementations§
Source§impl<D: Clone + Dataset, M: Clone + GraphNameMatcher> Clone for PartialUnionGraph<D, M>
impl<D: Clone + Dataset, M: Clone + GraphNameMatcher> Clone for PartialUnionGraph<D, M>
Source§fn clone(&self) -> PartialUnionGraph<D, M>
fn clone(&self) -> PartialUnionGraph<D, M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<D: Debug + Dataset, M: Debug + GraphNameMatcher> Debug for PartialUnionGraph<D, M>
impl<D: Debug + Dataset, M: Debug + GraphNameMatcher> Debug for PartialUnionGraph<D, M>
Source§impl<D: Dataset, M: GraphNameMatcher + Copy> Graph for PartialUnionGraph<D, M>
impl<D: Dataset, M: GraphNameMatcher + Copy> Graph for PartialUnionGraph<D, M>
Source§type Triple<'x> = [<<D as Dataset>::Quad<'x> as Quad>::Term; 3]
where
Self: 'x
type Triple<'x> = [<<D as Dataset>::Quad<'x> as Quad>::Term; 3] where Self: 'x
Determine the type of
Triple
s
that the methods of this graph will yield.Source§fn triples(&self) -> GTripleSource<'_, Self>
fn triples(&self) -> GTripleSource<'_, Self>
An iterator visiting all triples of this graph in arbitrary order. Read more
Source§fn triples_matching<'s, S, P, O>(
&'s self,
sm: S,
pm: P,
om: O,
) -> GTripleSource<'s, Self>
fn triples_matching<'s, S, P, O>( &'s self, sm: S, pm: P, om: O, ) -> GTripleSource<'s, Self>
An iterator visiting all triples matching the given subject, predicate and object.
See
crate::term::matcher
. Read moreSource§fn contains<TS, TP, TO>(&self, s: TS, p: TP, o: TO) -> GResult<Self, bool>
fn contains<TS, TP, TO>(&self, s: TS, p: TP, o: TO) -> GResult<Self, bool>
Return
true
if this graph contains the given triple.Source§fn subjects(&self) -> GTermSource<'_, Self>
fn subjects(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the terms used as subject in this Graph. Read more
Source§fn predicates(&self) -> GTermSource<'_, Self>
fn predicates(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the terms used as predicate in this Graph. Read more
Source§fn objects(&self) -> GTermSource<'_, Self>
fn objects(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the terms used as object in this Graph. Read more
Source§fn iris(&self) -> GTermSource<'_, Self>
fn iris(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the IRIs used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn blank_nodes(&self) -> GTermSource<'_, Self>
fn blank_nodes(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the blank nodes used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn literals(&self) -> GTermSource<'_, Self>
fn literals(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the literals used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn quoted_triples<'s>(&'s self) -> GTermSource<'s, Self>
fn quoted_triples<'s>(&'s self) -> GTermSource<'s, Self>
Build a fallible iterator of all the quoted triples used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn variables(&self) -> GTermSource<'_, Self>
fn variables(&self) -> GTermSource<'_, Self>
Build a fallible iterator of all the variables used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn as_dataset(&self) -> GraphAsDataset<&Self>
fn as_dataset(&self) -> GraphAsDataset<&Self>
Dataset
adapter borrowing this graphSource§fn as_dataset_mut(&mut self) -> GraphAsDataset<&mut Self>
fn as_dataset_mut(&mut self) -> GraphAsDataset<&mut Self>
Dataset
adapter borrowing this graph mutablySource§fn into_dataset(self) -> GraphAsDataset<Self>where
Self: Sized,
fn into_dataset(self) -> GraphAsDataset<Self>where
Self: Sized,
Dataset
adapter taking ownership of this graphimpl<D: Copy + Dataset, M: Copy + GraphNameMatcher> Copy for PartialUnionGraph<D, M>
Auto Trait Implementations§
impl<D, M> Freeze for PartialUnionGraph<D, M>
impl<D, M> RefUnwindSafe for PartialUnionGraph<D, M>where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<D, M> Send for PartialUnionGraph<D, M>
impl<D, M> Sync for PartialUnionGraph<D, M>
impl<D, M> Unpin for PartialUnionGraph<D, M>
impl<D, M> UnwindSafe for PartialUnionGraph<D, M>where
D: UnwindSafe,
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more