UNPKG

meta-log-db

Version:

Native database package for Meta-Log (ProLog, DataLog, R5RS)

63 lines 1.36 kB
import { SparqlQuery } from './sparql-parser.js'; import { RdfTriple } from '../types/index.js'; /** * Enhanced SPARQL Query Executor * Executes parsed SPARQL queries with full feature support */ export declare class SparqlExecutor { private triples; constructor(triples: RdfTriple[]); /** * Execute SPARQL query */ execute(query: SparqlQuery): Promise<any>; /** * Execute triple patterns */ private executePatterns; /** * Match a pattern against triples with existing bindings */ private matchPattern; /** * Resolve variable or literal value */ private resolveValue; /** * Query triples by pattern */ private queryTriples; /** * Apply OPTIONAL patterns */ private applyOptional; /** * Apply FILTER expressions */ private applyFilters; /** * Evaluate a filter expression */ private evaluateFilter; /** * Apply DISTINCT */ private applyDistinct; /** * Apply ORDER BY */ private applyOrderBy; /** * Project variables (SELECT clause) */ private projectVariables; /** * Format binding for output */ private formatBinding; /** * Infer RDF type from value */ private inferType; } //# sourceMappingURL=sparql-executor.d.ts.map