Trait sophia::triple::Triple

source ·
pub trait Triple {
    type Holder: Borrow<str>;

    fn s(&self) -> &Term<Self::Holder>;
    fn p(&self) -> &Term<Self::Holder>;
    fn o(&self) -> &Term<Self::Holder>;
}
Expand description

This trait represents an abstract RDF triple, and provide convenient methods for working with triples.

Required Associated Types

Required Methods

The subject of this triple.

The predicate of this triple.

The object of this triple.

Implementations on Foreign Types

Implementors