Trait sophia_api::triple::Triple [−][src]
pub trait Triple {
type Term: TTerm + ?Sized;
fn s(&self) -> &Self::Term;
fn p(&self) -> &Self::Term;
fn o(&self) -> &Self::Term;
fn wrap_as_quad(self) -> TripleAsQuad<Self>
where
Self: Sized,
{ ... }
fn as_quad(self) -> TripleAsQuad<Self>
where
Self: Sized,
Self::Term: Sized,
{ ... }
fn wrap_as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self>
where
Self: Sized,
Self::Term: Sized,
{ ... }
fn as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self>
where
Self: Sized,
Self::Term: Sized,
{ ... }
fn components(&self) -> TripleIter<'_, Self>ⓘNotable traits for TripleIter<'a, T>impl<'a, T> Iterator for TripleIter<'a, T> where
T: Triple + ?Sized, type Item = &'a T::Term;
{ ... }
}
Expand description
This trait represents an abstract RDF triple, and provide convenient methods for working with triples.
Associated Types
Required methods
Provided methods
fn wrap_as_quad(self) -> TripleAsQuad<Self> where
Self: Sized,
fn wrap_as_quad(self) -> TripleAsQuad<Self> where
Self: Sized,
Quad
adapter owning this triple,
pretending to belong to the default graph.
👎 Deprecated since 0.6.3:
has been renamed to wrap_as_quad
fn wrap_as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self> where
Self: Sized,
Self::Term: Sized,
fn wrap_as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self> where
Self: Sized,
Self::Term: Sized,
Quad
adapter owning this triple,
pretending to belong to a named graph with the given name.
fn as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self> where
Self: Sized,
Self::Term: Sized,
fn as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self> where
Self: Sized,
Self::Term: Sized,
👎 Deprecated since 0.6.3:
has been renamed to wrap_as_quad_from
fn components(&self) -> TripleIter<'_, Self>ⓘNotable traits for TripleIter<'a, T>impl<'a, T> Iterator for TripleIter<'a, T> where
T: Triple + ?Sized, type Item = &'a T::Term;
fn components(&self) -> TripleIter<'_, Self>ⓘNotable traits for TripleIter<'a, T>impl<'a, T> Iterator for TripleIter<'a, T> where
T: Triple + ?Sized, type Item = &'a T::Term;
Notable traits for TripleIter<'a, T>
impl<'a, T> Iterator for TripleIter<'a, T> where
T: Triple + ?Sized, type Item = &'a T::Term;
Iterator over the components of this triple