pub trait RdfTerm {
// Required method
fn as_str(&self) -> &str;
// Provided methods
fn is_named_node(&self) -> bool { ... }
fn is_blank_node(&self) -> bool { ... }
fn is_literal(&self) -> bool { ... }
fn is_variable(&self) -> bool { ... }
fn is_quoted_triple(&self) -> bool { ... }
}
Expand description
A trait for all RDF terms
Required Methods§
Provided Methods§
Sourcefn is_named_node(&self) -> bool
fn is_named_node(&self) -> bool
Returns true if this is a named node (IRI)
Sourcefn is_blank_node(&self) -> bool
fn is_blank_node(&self) -> bool
Returns true if this is a blank node
Sourcefn is_literal(&self) -> bool
fn is_literal(&self) -> bool
Returns true if this is a literal
Sourcefn is_variable(&self) -> bool
fn is_variable(&self) -> bool
Returns true if this is a variable
Sourcefn is_quoted_triple(&self) -> bool
fn is_quoted_triple(&self) -> bool
Returns true if this is a quoted triple (RDF-star)