Expand description
Host functions: user code callable from SPARQL, Cypher and Datalog.
A host function maps RDF terms to an optional RDF term, the signature of spareval’s custom
functions: None is an evaluation error, which SPARQL turns into an unbound value. Functions
are registered on a store under an IRI (plus an optional Cypher name) and are never
persisted: they are code, not data. Each frontend decides where the call runs — SPARQL and
Cypher through the fallback evaluator, Datalog in a Rust pass over a rule’s rows — and every
part of a query that does not call one still compiles to SQL.
Structs§
- Function
Registry - The host functions of a store, by IRI.
- Functions
- A shared, possibly absent registry: what stores hand to
QueryOptionsand the frontends’ options. Two handles are equal when they share one registry. - Host
Function - A function implemented by the application.
Functions§
- local_
name - The part of an IRI after its last
#or/.
Type Aliases§
- HostFn
- The callable of a host function.