pub enum Term<'a> {
    NamedNode(NamedNode<'a>),
    BlankNode(BlankNode<'a>),
    Literal(Literal<'a>),
    Triple(&'a Triple<'a>),
}
Expand description

An RDF term.

It is the union of IRIs, blank nodes and literals.

The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation.

Variants

NamedNode(NamedNode<'a>)

Tuple Fields

0: NamedNode<'a>

BlankNode(BlankNode<'a>)

Tuple Fields

0: BlankNode<'a>

Literal(Literal<'a>)

Tuple Fields

0: Literal<'a>

Triple(&'a Triple<'a>)

Tuple Fields

0: &'a Triple<'a>

Rio does support RDF-star, which allows triples to be terms inside of other triples.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Returns the kind of this term (IRI, literal, blank node, variable).

Return the “value” of this term, possibly split in two substrings. The second part might only be non-empty if this term is an IRI reference. Read more

Return the datatype IRI of this term if it is a literal. Read more

Return the language tag of this term if it is a language-tagged literal. Read more

This method ensures that all implementations of TTerm can be turned into a trait object. Read more

Return the “value” of this term, which depends on its kind: Read more

All terms are absolute, except for: Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Copy this IRI into another type.

Try to copy this IRI into another type.

Performs the conversion.

Performs the conversion.

Type of TTerm used internally by this matcher.

If this matcher matches only one term, return this term, else None.

Check whether this matcher matches t.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.