Struct rdf::triple::TripleStore
[−]
[src]
pub struct TripleStore { /* fields omitted */ }
Storage for triples.
Methods
impl TripleStore
[src]
pub fn new() -> TripleStore
[src]
Constructs a new triple store.
pub fn count(&self) -> usize
[src]
Returns the number of triples that are stored.
pub fn is_empty(&self) -> bool
[src]
Checks if the triple store is empty.
pub fn add_triple(&mut self, triple: &Triple)
[src]
Adds a new triple to the store.
pub fn remove_triple(&mut self, triple: &Triple)
[src]
Deletes the triple from the store.
pub fn get_triples_with_subject(&self, node: &Node) -> Vec<&Triple>
[src]
Returns all triples where the subject node matches the provided node.
pub fn get_triples_with_predicate(&self, node: &Node) -> Vec<&Triple>
[src]
Returns all triples where the predicate node matches the provided node.
pub fn get_triples_with_object(&self, node: &Node) -> Vec<&Triple>
[src]
Returns all triples where the object node matches the provided node.
pub fn get_triples_with_subject_and_object(
&self,
subject_node: &Node,
object_node: &Node
) -> Vec<&Triple>
[src]
&self,
subject_node: &Node,
object_node: &Node
) -> Vec<&Triple>
Returns all triples where the subject and object nodes match the provided nodes.
pub fn get_triples_with_subject_and_predicate(
&self,
subject_node: &Node,
predicate_node: &Node
) -> Vec<&Triple>
[src]
&self,
subject_node: &Node,
predicate_node: &Node
) -> Vec<&Triple>
Returns all triples where the subject and predicate nodes match the provided nodes.
pub fn get_triples_with_predicate_and_object(
&self,
predicate_node: &Node,
object_node: &Node
) -> Vec<&Triple>
[src]
&self,
predicate_node: &Node,
object_node: &Node
) -> Vec<&Triple>
Returns all triples where the predicate and object nodes match the provided nodes.
pub fn get_blank_nodes(&self) -> Vec<&Node>
[src]
Returns all blank nodes of the store.
pub fn into_vec(self) -> Vec<Triple>
[src]
Returns the stored triples as vector.
pub fn iter(&self) -> Iter<Triple>
[src]
Returns an iterator over the stored triples.
Trait Implementations
impl Debug for TripleStore
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for TripleStore
[src]
fn default() -> TripleStore
[src]
Returns the "default value" for a type. Read more