pub enum GraphName<'a> {
NamedNode(NamedNode<'a>),
BlankNode(BlankNode<'a>),
}
Expand description
A restriction of Term that can be used in the graph name position.
The default string formatter is returning an N-Triples, Turtle and SPARQL compatible representation.
Variants§
Trait Implementations§
source§impl<'a> From<GraphName<'a>> for GeneralizedTerm<'a>
impl<'a> From<GraphName<'a>> for GeneralizedTerm<'a>
source§fn from(other: GraphName<'a>) -> GeneralizedTerm<'a>
fn from(other: GraphName<'a>) -> GeneralizedTerm<'a>
Converts to this type from the input type.
source§impl<'a> PartialEq<GraphName<'a>> for GraphName<'a>
impl<'a> PartialEq<GraphName<'a>> for GraphName<'a>
source§impl<'a> TryFrom<GeneralizedTerm<'a>> for GraphName<'a>
impl<'a> TryFrom<GeneralizedTerm<'a>> for GraphName<'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<GraphName<'a>, StrictRdfError>
fn try_from(other: GeneralizedTerm<'a>) -> Result<GraphName<'a>, StrictRdfError>
Performs the conversion.