Skip to main content

evaluate_graph

Function evaluate_graph 

Source
pub fn evaluate_graph(
    profile: &dyn Profile,
    graph: &StructuredDataGraph,
    vocab_diagnostics: &[ValidationDiagnostic],
) -> ProfileResult
Expand description

Evaluates a graph against a single profile.

For each node in the graph, checks if its types match the profile’s supported_types() (including subtypes via inheritance). If so, evaluates the node and collects results.