Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ldkit/rdf.ts>RDF.AlgebraSparqlQueryable

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
type alias RDF.AlgebraSparqlQueryable
import { type RDF } from "https://deno.land/x/ldkit@v0.6.0/rdf.ts";
const { AlgebraSparqlQueryable } = RDF;

SPARQL-constrainted query interface for queries provided as Algebra objects.

This interface guarantees that result objects are of the expected type as defined by the SPARQL spec.

Type Parameters

AlgebraType
SupportedResultType
optional
QueryAlgebraContextType extends QueryAlgebraContext = QueryAlgebraContext
definition:
& unknown
& (SupportedResultType extends BindingsResultSupport ? { queryBindings(query: AlgebraType, context?: QueryAlgebraContextType): Promise<ResultStream<Bindings>>; } : unknown)
& (SupportedResultType extends BooleanResultSupport ? { queryBoolean(query: AlgebraType, context?: QueryAlgebraContextType): Promise<boolean>; } : unknown)
& (SupportedResultType extends QuadsResultSupport ? { queryQuads(query: AlgebraType, context?: QueryAlgebraContextType): Promise<ResultStream<RDF.Quad>>; } : unknown)
& (SupportedResultType extends VoidResultSupport ? { queryVoid(query: AlgebraType, context?: QueryAlgebraContextType): Promise<void>; } : unknown)