Interface: SparqlSelectResults
@kortexya/reasoninglayer / SparqlSelectResults
Interface: SparqlSelectResults
Section titled “Interface: SparqlSelectResults”Defined in: src/types/sparql.ts:136
Results of a SPARQL SELECT query.
Remarks
Section titled “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
Section titled “Example”const results: SparqlSelectResults = { resultType: 'select', vars: ['person'], bindings: [{ person: { type: 'uri', value: 'http://example.org/alice' } }],};Properties
Section titled “Properties”bindings
Section titled “bindings”bindings:
SparqlBindingSet[]
Defined in: src/types/sparql.ts:142
One binding set per solution, in result order.
resultType
Section titled “resultType”resultType:
"select"
Defined in: src/types/sparql.ts:138
Discriminant: this document holds SELECT bindings.
vars:
string[]
Defined in: src/types/sparql.ts:140
Projected variable names (without the leading ?), in projection order.