Interface: GraphSparqlResults
@kortexya/reasoninglayer / Sparql / GraphSparqlResults
Interface: GraphSparqlResults
Defined in: src/types/sparql.ts:257
SELECT results from the scalable co-located Psi-term store, with backend diagnostics.
Remarks
The co-located store answers SELECT only (no ASK), and its bindings carry IRIs
and plain literals — never blank nodes, triple terms, datatypes or language tags.
The backend / rows / stale / elapsedMs diagnostics are the SDK-side names of
the _-prefixed diagnostic fields the endpoint adds to the results document.
Example
const results = await client.sparql.executeGraphQuery({ query: 'SELECT ?s WHERE { ?s ?p ?o }' });console.log(results.rows, results.stale, results.elapsedMs);Properties
backend
backend:
string
Defined in: src/types/sparql.ts:263
The backend that answered the query (e.g. "osf-colocated").
bindings
bindings:
SparqlBindingSet[]
Defined in: src/types/sparql.ts:261
One binding set per solution, in result order.
elapsedMs
elapsedMs:
number
Defined in: src/types/sparql.ts:269
Server-side evaluation time, in milliseconds.
rows
rows:
number
Defined in: src/types/sparql.ts:265
Number of solutions returned.
stale
stale:
boolean
Defined in: src/types/sparql.ts:267
Whether the co-located projection was stale relative to the authoritative store.
vars
vars:
string[]
Defined in: src/types/sparql.ts:259
Projected variable names (without the leading ?).