pub enum GraphName {
NamedNode(NamedNode),
BlankNode(BlankNode),
DefaultGraph,
}
Expand description
A possible owned graph name. It is the union of IRIs, blank nodes, and the default graph name.
Variants§
Implementations§
source§impl GraphName
impl GraphName
pub fn is_named_node(&self) -> bool
pub fn is_blank_node(&self) -> bool
pub fn is_default_graph(&self) -> bool
pub fn as_ref(&self) -> GraphNameRef<'_>
Trait Implementations§
source§impl<'a> From<&'a GraphName> for GraphNameRef<'a>
impl<'a> From<&'a GraphName> for GraphNameRef<'a>
source§impl From<BlankNodeRef<'_>> for GraphName
impl From<BlankNodeRef<'_>> for GraphName
source§fn from(node: BlankNodeRef<'_>) -> Self
fn from(node: BlankNodeRef<'_>) -> Self
Converts to this type from the input type.
source§impl<'a> From<GraphNameRef<'a>> for GraphName
impl<'a> From<GraphNameRef<'a>> for GraphName
source§fn from(node: GraphNameRef<'a>) -> Self
fn from(node: GraphNameRef<'a>) -> Self
Converts to this type from the input type.
source§impl From<NamedNodeRef<'_>> for GraphName
impl From<NamedNodeRef<'_>> for GraphName
source§fn from(node: NamedNodeRef<'_>) -> Self
fn from(node: NamedNodeRef<'_>) -> Self
Converts to this type from the input type.
source§impl From<NamedOrBlankNode> for GraphName
impl From<NamedOrBlankNode> for GraphName
source§fn from(node: NamedOrBlankNode) -> Self
fn from(node: NamedOrBlankNode) -> Self
Converts to this type from the input type.
source§impl From<NamedOrBlankNodeRef<'_>> for GraphName
impl From<NamedOrBlankNodeRef<'_>> for GraphName
source§fn from(node: NamedOrBlankNodeRef<'_>) -> Self
fn from(node: NamedOrBlankNodeRef<'_>) -> Self
Converts to this type from the input type.