@ -921,6 +921,23 @@ impl From<BlankNodeRef<'_>> for GraphName {
}
}
implFrom<NamedOrBlankNode>forGraphName{
#[inline]
fnfrom(node: NamedOrBlankNode)-> Self{
matchnode{
NamedOrBlankNode::NamedNode(node)=>node.into(),
NamedOrBlankNode::BlankNode(node)=>node.into(),
}
}
}
implFrom<NamedOrBlankNodeRef<'_>>forGraphName{
#[inline]
fnfrom(node: NamedOrBlankNodeRef<'_>)-> Self{
node.into_owned().into()
}
}
/// A possible borrowed graph name.
/// It is the union of [IRIs](https://www.w3.org/TR/rdf11-concepts/#dfn-iri), [blank nodes](https://www.w3.org/TR/rdf11-concepts/#dfn-blank-node), and the [default graph name](https://www.w3.org/TR/rdf11-concepts/#dfn-default-graph).