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§
source§impl<'a> From<NamedNode<'a>> for GeneralizedTerm<'a>
impl<'a> From<NamedNode<'a>> for GeneralizedTerm<'a>
source§fn from(other: NamedNode<'a>) -> GeneralizedTerm<'a>
fn from(other: NamedNode<'a>) -> GeneralizedTerm<'a>
Converts to this type from the input type.
source§impl<'a> Ord for NamedNode<'a>
impl<'a> Ord for NamedNode<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<NamedNode<'a>> for NamedNode<'a>
impl<'a> PartialEq<NamedNode<'a>> for NamedNode<'a>
source§impl<'a> PartialOrd<NamedNode<'a>> for NamedNode<'a>
impl<'a> PartialOrd<NamedNode<'a>> for NamedNode<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> TryFrom<GeneralizedTerm<'a>> for NamedNode<'a>
impl<'a> TryFrom<GeneralizedTerm<'a>> for NamedNode<'a>
§type Error = StrictRdfError
type Error = StrictRdfError
The type returned in the event of a conversion error.
source§fn try_from(other: GeneralizedTerm<'a>) -> Result<NamedNode<'a>, StrictRdfError>
fn try_from(other: GeneralizedTerm<'a>) -> Result<NamedNode<'a>, StrictRdfError>
Performs the conversion.