pub struct NamedNode<'a> {
pub iri: &'a str,
}
Expand description
An RDF IRI.
The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation.
use rio_api::model::NamedNode;
assert_eq!(
"<http://example.com/foo>",
NamedNode { iri: "http://example.com/foo" }.to_string()
)
Fields
iri: &'a str
The IRI itself.
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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 NamedNode<'a>
impl<'a> UnwindSafe for NamedNode<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Try to copy this IRI into another type.