Skip to content

Interface: SparqlPlanNode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Sparql / SparqlPlanNode

Interface: SparqlPlanNode

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

One node of the translated SPARQL algebra plan.

Remarks

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 a runnable statement.

Example

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

Properties

attrs

attrs: Record<string, string>

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

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


children

children: SparqlPlanNode[]

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

Child plans, in evaluation order.


op

op: string

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

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


osfql?

optional osfql: string

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

The OSFQL statement, on the leaves that carry one.


sorts

sorts: string[]

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

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