GraphQueryExecutor

org.llm4s.knowledgegraph.query.GraphQueryExecutor
class GraphQueryExecutor(graphStore: GraphStore)

Executes GraphQuery operations against a GraphStore.

This component bridges the structured query ADT with the engine-agnostic storage layer, translating each query variant into the appropriate GraphStore and GraphEngine calls.

Value parameters

graphStore

The graph store to query against

Attributes

Example
val executor = new GraphQueryExecutor(graphStore)
val query = GraphQuery.FindNodes(label = Some("Person"))
val result = executor.execute(query)
// result: Right(GraphQueryResult(nodes = Seq(...), edges = Seq(...)))
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Executes a graph query and returns the result.

Executes a graph query and returns the result.

Value parameters

query

The structured graph query to execute

Attributes

Returns

Right(result) on success, Left(error) on failure