Interface: SparqlSelectResults
@kortexya/reasoninglayer / Sparql / SparqlSelectResults
Interface: SparqlSelectResults
Defined in: src/types/sparql.ts:136
Results of a SPARQL SELECT query.
Remarks
The resultType discriminant is synthesized by the SDK from the wire document’s
shape ({head:{vars},results:{bindings}} for SELECT, {head:{},boolean} for
ASK) — the W3C results format carries no discriminator field of its own.
Example
const results: SparqlSelectResults = { resultType: 'select', vars: ['person'], bindings: [{ person: { type: 'uri', value: 'http://example.org/alice' } }],};Properties
bindings
bindings:
SparqlBindingSet[]
Defined in: src/types/sparql.ts:142
One binding set per solution, in result order.
resultType
resultType:
"select"
Defined in: src/types/sparql.ts:138
Discriminant: this document holds SELECT bindings.
vars
vars:
string[]
Defined in: src/types/sparql.ts:140
Projected variable names (without the leading ?), in projection order.