RdfTerm

Trait RdfTerm 

Source
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§

Source

fn as_str(&self) -> &str

Returns the string representation of this term

Provided Methods§

Source

fn is_named_node(&self) -> bool

Returns true if this is a named node (IRI)

Source

fn is_blank_node(&self) -> bool

Returns true if this is a blank node

Source

fn is_literal(&self) -> bool

Returns true if this is a literal

Source

fn is_variable(&self) -> bool

Returns true if this is a variable

Source

fn is_quoted_triple(&self) -> bool

Returns true if this is a quoted triple (RDF-star)

Implementors§