Interface: GraphSparqlResults
@kortexya/reasoninglayer / GraphSparqlResults
Interface: GraphSparqlResults
Section titled “Interface: GraphSparqlResults”Defined in: src/types/sparql.ts:257
SELECT results from the scalable co-located Psi-term store, with backend diagnostics.
Remarks
Section titled “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
Section titled “Example”const results = await client.sparql.executeGraphQuery({ query: 'SELECT ?s WHERE { ?s ?p ?o }' });console.log(results.rows, results.stale, results.elapsedMs);Properties
Section titled “Properties”backend
Section titled “backend”backend:
string
Defined in: src/types/sparql.ts:263
The backend that answered the query (e.g. "osf-colocated").
bindings
Section titled “bindings”bindings:
SparqlBindingSet[]
Defined in: src/types/sparql.ts:261
One binding set per solution, in result order.
elapsedMs
Section titled “elapsedMs”elapsedMs:
number
Defined in: src/types/sparql.ts:269
Server-side evaluation time, in milliseconds.
rows:
number
Defined in: src/types/sparql.ts:265
Number of solutions returned.
stale:
boolean
Defined in: src/types/sparql.ts:267
Whether the co-located projection was stale relative to the authoritative store.
vars:
string[]
Defined in: src/types/sparql.ts:259
Projected variable names (without the leading ?).