Type Alias sophia_term::RcTerm

source ·
pub type RcTerm = GenericTerm<Rc<str>>;
Expand description

A Term implementation using Rc<str> as the underlying text, making it cheap to clone.

See also RcStrStash.

Aliased Type§

enum RcTerm {
    Iri(IriRef<Rc<str>>),
    BlankNode(BnodeId<Rc<str>>),
    Literal(GenericLiteral<Rc<str>>),
    Triple(Box<[GenericTerm<Rc<str>>; 3]>),
    Variable(VarName<Rc<str>>),
}

Variants§

§

Iri(IriRef<Rc<str>>)

A straighforward implementation of Term as an enum. An RDF IRI

§

BlankNode(BnodeId<Rc<str>>)

An RDF blank node

§

Literal(GenericLiteral<Rc<str>>)

An RDF literal

§

Triple(Box<[GenericTerm<Rc<str>>; 3]>)

An RDF-star quoted triple

§

Variable(VarName<Rc<str>>)

A SPARQL or Notation3 variable