Trait sophia_api::quad::Quad[][src]

pub trait Quad {
    type Term: TTerm + ?Sized;
    fn s(&self) -> &Self::Term;
fn p(&self) -> &Self::Term;
fn o(&self) -> &Self::Term;
fn g(&self) -> Option<&Self::Term>; fn wrap_as_triple(self) -> QuadAsTriple<Self>
    where
        Self: Sized
, { ... }
fn as_triple(self) -> QuadAsTriple<Self>
    where
        Self: Sized
, { ... }
fn components(&self) -> QuadIter<'_, Self>
Notable traits for QuadIter<'a, Q>
impl<'a, Q> Iterator for QuadIter<'a, Q> where
    Q: Quad + ?Sized
type Item = &'a Q::Term;
{ ... } }
Expand description

This trait represents an abstract RDF quad, and provides convenient methods for working with quads.

Associated Types

Required methods

The subject of this quad.

The predicate of this quad.

The object of this quad.

The (optional) graph name

Provided methods

Triple adapter owning this quad.

👎 Deprecated since 0.6.3:

Has been renamed to wrap_as_triple

Iterator over the components of this triple

Implementations on Foreign Types

Implementors