Interface: SparqlPlanNode
@kortexya/reasoninglayer / SparqlPlanNode
Interface: SparqlPlanNode
Section titled “Interface: SparqlPlanNode”Defined in: src/types/sparql.ts:335
One node of the translated SPARQL algebra plan.
Remarks
Section titled “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 an OSFQL statement (a plan fragment
unless SparqlTranslation.complete).
Example
Section titled “Example”const plan: SparqlPlanNode = { op: 'join', attrs: {}, sorts: [], children: [{ op: 'bgp', attrs: {}, osfql: 'MATCH ?s : thing();', sorts: [], children: [] }],};Properties
Section titled “Properties”attrs:
Record<string,string>
Defined in: src/types/sparql.ts:339
Op-specific human-readable detail (rendered expressions, variables, modifiers).
children
Section titled “children”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, …).
osfql?
Section titled “osfql?”
optionalosfql?: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.