pub enum Subject<'a> {
NamedNode(NamedNode<'a>),
BlankNode(BlankNode<'a>),
Triple(&'a Triple<'a>),
}
Expand description
A restriction of Term that can be used as the subject of an RDF triple.
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>
Triple(&'a Triple<'a>)
Tuple Fields
0: &'a Triple<'a>
Rio does support RDF-star, which allows triples to be the subject of other triples.
Trait Implementations
Performs the conversion.
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
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
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
All terms are absolute, except for: Read more
type Error = StrictRdfError
type Error = StrictRdfError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Subject<'a>
impl<'a> UnwindSafe for Subject<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Try to copy this IRI into another type.