Skip to content

Interface: SparqlPlanNode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SparqlPlanNode

Defined in: src/types/sparql.ts:335

One node of the translated SPARQL algebra plan.

A recursive tree. op is the algebra operation (bgp, union, left_join, filter, …); attrs carries op-specific rendered detail; osfql and sorts are populated only on the leaves that carry an OSFQL statement (a plan fragment unless SparqlTranslation.complete).

const plan: SparqlPlanNode = {
op: 'join',
attrs: {},
sorts: [],
children: [{ op: 'bgp', attrs: {}, osfql: 'MATCH ?s : thing();', sorts: [], children: [] }],
};

attrs: Record<string, string>

Defined in: src/types/sparql.ts:339

Op-specific human-readable detail (rendered expressions, variables, modifiers).


children: SparqlPlanNode[]

Defined in: src/types/sparql.ts:345

Child plans, in evaluation order.


op: string

Defined in: src/types/sparql.ts:337

The algebra operation (bgp, union, left_join, filter, …).


optional osfql?: string

Defined in: src/types/sparql.ts:341

The OSFQL statement, on the leaves that carry one.


sorts: string[]

Defined in: src/types/sparql.ts:343

rdf:type sort names, on the leaves that carry them.