Expand description
SQLite extension entry point using sqlite-loadable
This module provides the SQLite loadable extension interface.
Functions§
- _sqlite3_
sqlite_ knowledge_ graph_ init - Extension entry point
- kg_bfs
- kg_bfs() - BFS traversal from a starting entity Parameters: start_id (INTEGER), max_depth (INTEGER, default 3) Returns JSON array of {entity_id, depth} objects
- kg_
connected_ components - kg_connected_components() - Find connected components in the graph Returns JSON with component information
- kg_
louvain - kg_louvain() - Detect communities using Louvain algorithm Returns JSON with community memberships and modularity score
- kg_
pagerank - kg_pagerank() - Compute PageRank scores for all entities Parameters: damping (REAL, default 0.85), max_iterations (INTEGER, default 100), tolerance (REAL, default 1e-6) Returns JSON with algorithm info
- kg_
shortest_ path - kg_shortest_path() - Find shortest path between two entities Parameters: from_id (INTEGER), to_id (INTEGER), max_depth (INTEGER, default 10) Returns JSON array of entity IDs representing the path
- kg_
stats - kg_stats() - Returns graph statistics as JSON
- kg_
version - kg_version() - Returns the extension version
- sqlite3_
sqlite_ ⚠knowledge_ graph_ init - Safety