Skip to main content

NodeExprGraph

Trait NodeExprGraph 

Source
pub trait NodeExprGraph {
    // Required methods
    fn objects(&self, subject: &NodeTerm, predicate: &str) -> Vec<NodeTerm>;
    fn subjects(&self, predicate: &str, object: &NodeTerm) -> Vec<NodeTerm>;
    fn conforms_to_shape(&self, node: &NodeTerm, shape_iri: &str) -> bool;
    fn all_triples(&self) -> Vec<Triple>;
}
Expand description

A minimal graph interface for evaluating node expressions.

Required Methods§

Source

fn objects(&self, subject: &NodeTerm, predicate: &str) -> Vec<NodeTerm>

Get all objects for a given subject and predicate.

Source

fn subjects(&self, predicate: &str, object: &NodeTerm) -> Vec<NodeTerm>

Get all subjects for a given predicate and object.

Source

fn conforms_to_shape(&self, node: &NodeTerm, shape_iri: &str) -> bool

Check if a node conforms to a shape (by IRI).

Source

fn all_triples(&self) -> Vec<Triple>

Get all triples in the graph.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§