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
optional
QueryAlgebraContextType extends QueryAlgebraContext = QueryAlgebraContextdefinition:
& 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)