Skip to content

Type Alias: SparqlBindingSet

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Sparql / SparqlBindingSet

Type Alias: SparqlBindingSet

SparqlBindingSet = Record<string, SparqlRdfTerm>

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

One SPARQL solution: the variable names bound by the solution mapped to their RDF terms.

Remarks

Keys are variable names WITHOUT the leading ?. A variable left unbound by the solution is absent from the map (SPARQL solutions are partial functions).

Example

const solution: SparqlBindingSet = {
person: { type: 'uri', value: 'http://example.org/alice' },
name: { type: 'literal', value: 'Alice' },
};