Skip to main content

match_triples

Function match_triples 

Source
pub fn match_triples(
    graph: &SqliteGraph,
    pattern: &PatternTriple,
) -> Result<Vec<TripleMatch>, SqliteGraphError>
Expand description

Execute a lightweight triple pattern match.

This function provides a simple, deterministic way to match single-hop patterns using the existing SQLite indexes for optimal performance.

§Arguments

  • graph - The SQLiteGraph instance
  • pattern - The pattern triple to match

§Returns

A vector of triple matches in deterministic order