[−][src]Struct sophia::dataset::adapter::DatasetGraph
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]
D: Dataset<'a>,
E: Borrow<D>,
M: GraphNameMatcher,
type Triple = QuadAsTriple<D::Quad>
The type of Triple
s 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 triples(&'a self) -> GTripleSource<'a, Self>
[src]
fn triples_with_s<T>(&'a self, s: &'a Term<T>) -> GTripleSource<'a, Self> where
T: TermData,
[src]
T: TermData,
fn triples_with_p<T>(&'a self, p: &'a Term<T>) -> GTripleSource<'a, Self> where
T: TermData,
[src]
T: TermData,
fn triples_with_o<T>(&'a self, o: &'a Term<T>) -> GTripleSource<'a, Self> where
T: TermData,
[src]
T: TermData,
fn triples_with_sp<T, U>(
&'a self,
s: &'a Term<T>,
p: &'a Term<U>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
[src]
&'a self,
s: &'a Term<T>,
p: &'a Term<U>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
fn triples_with_so<T, U>(
&'a self,
s: &'a Term<T>,
o: &'a Term<U>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
[src]
&'a self,
s: &'a Term<T>,
o: &'a Term<U>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
fn triples_with_po<T, U>(
&'a self,
p: &'a Term<T>,
o: &'a Term<U>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
[src]
&'a self,
p: &'a Term<T>,
o: &'a Term<U>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
fn triples_with_spo<T, U, V>(
&'a self,
s: &'a Term<T>,
p: &'a Term<U>,
o: &'a Term<V>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
V: TermData,
[src]
&'a self,
s: &'a Term<T>,
p: &'a Term<U>,
o: &'a Term<V>
) -> GTripleSource<'a, Self> where
T: TermData,
U: TermData,
V: TermData,
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]
&'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,
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]
&'a self,
ms: &'a S,
mp: &'a P,
mo: &'a O
) -> GTripleSource<'a, Self> where
S: TermMatcher,
P: TermMatcher,
O: TermMatcher,
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]
Self: Sized,
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]
D: MutableDataset,
E: BorrowMut<D>,
F: TermData,
type MutationError = D::MutationError
The error type that this graph may raise during mutations. Read more
fn insert<T, U, V>(
&mut self,
s: &Term<T>,
p: &Term<U>,
o: &Term<V>
) -> MGResult<Self, bool> where
T: TermData,
U: TermData,
V: TermData,
[src]
&mut self,
s: &Term<T>,
p: &Term<U>,
o: &Term<V>
) -> MGResult<Self, bool> where
T: TermData,
U: TermData,
V: TermData,
fn remove<T, U, V>(
&mut self,
s: &Term<T>,
p: &Term<U>,
o: &Term<V>
) -> MGResult<Self, bool> where
T: TermData,
U: TermData,
V: TermData,
[src]
&mut self,
s: &Term<T>,
p: &Term<U>,
o: &Term<V>
) -> MGResult<Self, bool> where
T: TermData,
U: TermData,
V: TermData,
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]
&mut self,
src: &mut TS
) -> CoercedResult<usize, TS::Error, Self::MutationError> where
TS: TripleSource<'a>,
TS::Error: CoercibleWith<Self::MutationError>,
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]
&mut self,
src: &mut TS
) -> CoercedResult<usize, TS::Error, Self::MutationError> where
TS: TripleSource<'a>,
TS::Error: CoercibleWith<Self::MutationError>,
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]
&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>>,
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]
&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>>,
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]
D: SetDataset,
E: Borrow<D>,
F: TermData,
Auto Trait Implementations
impl<D: ?Sized, E, M> Sync for DatasetGraph<D, E, M> where
D: Sync,
E: Sync,
M: Sync,
D: Sync,
E: Sync,
M: Sync,
impl<D: ?Sized, E, M> Send for DatasetGraph<D, E, M> where
D: Send,
E: Send,
M: Send,
D: Send,
E: Send,
M: Send,
impl<D: ?Sized, E, M> Unpin for DatasetGraph<D, E, M> where
D: Unpin,
E: Unpin,
M: Unpin,
D: Unpin,
E: Unpin,
M: Unpin,
impl<D: ?Sized, E, M> RefUnwindSafe for DatasetGraph<D, E, M> where
D: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<D: ?Sized, E, M> UnwindSafe for DatasetGraph<D, E, M> where
D: UnwindSafe,
E: UnwindSafe,
M: UnwindSafe,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,