@jahed/sparql-engine
Version:
SPARQL query engine for servers and web browsers.
15 lines (14 loc) • 694 B
TypeScript
import type { EngineTriple, EngineVariable } from "../types.ts";
/**
* Get the set of SPARQL variables in a triple pattern
* @param pattern - Triple Pattern
* @return The set of SPARQL variables in the triple pattern
*/
export declare function variablesFromPattern(pattern: EngineTriple): EngineVariable[];
/**
* Perform a join ordering of a set of triple pattern, i.e., a BGP.
* Sort pattern such as they creates a valid left linear tree without cartesian products (unless it's required to evaluate the BGP)
* @param patterns - Set of triple pattern
* @return Order set of triple patterns
*/
export declare function leftLinearJoinOrdering(patterns: EngineTriple[]): EngineTriple[];